testUsingContext('One package with asset variants',()async{
testUsingContext("One asset and its variant are bundled when the package has an asset and a variant, and lists the asset in its pubspec",()async{
establishFlutterRoot();
writePubspecFile('pubspec.yaml','test');
...
...
@@ -182,11 +202,9 @@ $assetsSection
<String>['test_package'],
expectedManifest,
);
},overrides:<Type,Generator>{
FileSystem:()=>newMemoryFileSystem(),
});
},overrides:contextOverrides);
testUsingContext('One package with asset variants not specified',()async{
testUsingContext("One asset and its variant are bundled when the package has an asset and a variant, and the app lists the asset in its pubspec",()async{
establishFlutterRoot();
writePubspecFile(
...
...
@@ -211,11 +229,9 @@ $assetsSection
<String>['test_package'],
expectedManifest,
);
},overrides:<Type,Generator>{
FileSystem:()=>newMemoryFileSystem(),
});
},overrides:contextOverrides);
testUsingContext('One package with two assets',()async{
testUsingContext("Two assets are bundled when the package has and lists two assets in its pubspec",()async{
establishFlutterRoot();
writePubspecFile('pubspec.yaml','test');
...
...
@@ -238,11 +254,9 @@ $assetsSection
<String>['test_package'],
expectedAssetManifest,
);
},overrides:<Type,Generator>{
FileSystem:()=>newMemoryFileSystem(),
});
},overrides:contextOverrides);
testUsingContext('One package with two assets not specified',()async{
testUsingContext("Two assets are bundled when the package has two assets, listed in the app's pubspec",()async{
establishFlutterRoot();
finalList<String>assetEntries=<String>[
...
...
@@ -272,11 +286,9 @@ $assetsSection
<String>['test_package'],
expectedAssetManifest,
);
},overrides:<Type,Generator>{
FileSystem:()=>newMemoryFileSystem(),
});
},overrides:contextOverrides);
testUsingContext('Two packages with assets',()async{
testUsingContext("Two assets are bundled when two packages each have and list an asset their pubspec",()async{
establishFlutterRoot();
writePubspecFile(
...
...
@@ -310,11 +322,9 @@ $assetsSection
<String>['test_package','test_package2'],
expectedAssetManifest,
);
},overrides:<Type,Generator>{
FileSystem:()=>newMemoryFileSystem(),
});
},overrides:contextOverrides);
testUsingContext('Two packages with assets not specified',()async{
testUsingContext("Two assets are bundled when two packages each have an asset, listed in the app's pubspec",()async{