@@ -38,14 +38,18 @@ void main() {
3838 .listen (results.add);
3939
4040 var result = await nextResult (results);
41- checkOutputs ({'a|web/a.txt.copy' : 'a' ,}, result, writer.assets);
41+ checkOutputs ({
42+ 'a|web/a.txt.copy' : 'a' ,
43+ }, result, writer.assets);
4244
4345 await writer.writeAsString (makeAsset ('a|web/a.txt' , 'b' ));
4446 FakeWatcher .notifyWatchers (new WatchEvent (
4547 ChangeType .MODIFY , path.absolute ('a' , 'web' , 'a.txt' )));
4648
4749 result = await nextResult (results);
48- checkOutputs ({'a|web/a.txt.copy' : 'b' ,}, result, writer.assets);
50+ checkOutputs ({
51+ 'a|web/a.txt.copy' : 'b' ,
52+ }, result, writer.assets);
4953 });
5054
5155 test ('rebuilds on new files' , () async {
@@ -55,28 +59,39 @@ void main() {
5559 .listen (results.add);
5660
5761 var result = await nextResult (results);
58- checkOutputs ({'a|web/a.txt.copy' : 'a' ,}, result, writer.assets);
62+ checkOutputs ({
63+ 'a|web/a.txt.copy' : 'a' ,
64+ }, result, writer.assets);
5965
6066 await writer.writeAsString (makeAsset ('a|web/b.txt' , 'b' ));
6167 FakeWatcher .notifyWatchers (
6268 new WatchEvent (ChangeType .ADD , path.absolute ('a' , 'web' , 'b.txt' )));
6369
6470 result = await nextResult (results);
65- checkOutputs ({'a|web/b.txt.copy' : 'b' ,}, result, writer.assets);
71+ checkOutputs ({
72+ 'a|web/b.txt.copy' : 'b' ,
73+ }, result, writer.assets);
6674 // Previous outputs should still exist.
6775 expect (writer.assets[makeAssetId ('a|web/a.txt.copy' )].value, 'a' );
6876 });
6977
7078 test ('rebuilds on deleted files' , () async {
7179 var writer = new InMemoryAssetWriter ();
7280 var results = < BuildResult > [];
73- startWatch (copyAPhaseGroup, {'a|web/a.txt' : 'a' , 'a|web/b.txt' : 'b' ,},
81+ startWatch (
82+ copyAPhaseGroup,
83+ {
84+ 'a|web/a.txt' : 'a' ,
85+ 'a|web/b.txt' : 'b' ,
86+ },
7487 writer)
7588 .listen (results.add);
7689
7790 var result = await nextResult (results);
78- checkOutputs ({'a|web/a.txt.copy' : 'a' , 'a|web/b.txt.copy' : 'b' ,},
79- result, writer.assets);
91+ checkOutputs ({
92+ 'a|web/a.txt.copy' : 'a' ,
93+ 'a|web/b.txt.copy' : 'b' ,
94+ }, result, writer.assets);
8095
8196 await writer.delete (makeAssetId ('a|web/a.txt' ));
8297 FakeWatcher .notifyWatchers (new WatchEvent (
@@ -101,8 +116,10 @@ void main() {
101116 .listen (results.add);
102117
103118 var result = await nextResult (results);
104- checkOutputs ({'a|web/a.txt.copy' : 'a' , 'a|web/b.txt.copy' : 'b' ,},
105- result, writer.assets);
119+ checkOutputs ({
120+ 'a|web/a.txt.copy' : 'a' ,
121+ 'a|web/b.txt.copy' : 'b' ,
122+ }, result, writer.assets);
106123
107124 await writer.writeAsString (makeAsset ('a|web/c.txt' , 'c' ));
108125 FakeWatcher .notifyWatchers (
@@ -136,7 +153,9 @@ void main() {
136153 .listen (results.add);
137154
138155 var result = await nextResult (results);
139- checkOutputs ({'a|web/a.txt.copy' : 'a' ,}, result, writer.assets);
156+ checkOutputs ({
157+ 'a|web/a.txt.copy' : 'a' ,
158+ }, result, writer.assets);
140159
141160 /// Pretend like a part of the dart script got updated.
142161 await writer.writeAsString (makeAsset ('test|lib/test.dart' , '' ),
@@ -167,7 +186,9 @@ void main() {
167186 var result = await nextResult (results);
168187 // Should ignore the files under the `b` package, even though they
169188 // match the input set.
170- checkOutputs ({'a|web/a.txt.copy' : 'a' ,}, result, writer.assets);
189+ checkOutputs ({
190+ 'a|web/a.txt.copy' : 'a' ,
191+ }, result, writer.assets);
171192
172193 await writer.writeAsString (makeAsset ('a|web/a.txt' , 'b' ));
173194 await writer.writeAsString (makeAsset ('b|web/b.txt' , 'c' ));
@@ -179,7 +200,9 @@ void main() {
179200 result = await nextResult (results);
180201 // Ignores the modification under the `b` package, even though it
181202 // matches the input set.
182- checkOutputs ({'a|web/a.txt.copy' : 'b' ,}, result, writer.assets);
203+ checkOutputs ({
204+ 'a|web/a.txt.copy' : 'b' ,
205+ }, result, writer.assets);
183206 });
184207
185208 test ('converts packages paths to absolute ones' , () async {
@@ -189,14 +212,18 @@ void main() {
189212 .listen (results.add);
190213
191214 var result = await nextResult (results);
192- checkOutputs ({'a|lib/a.txt.copy' : 'a' ,}, result, writer.assets);
215+ checkOutputs ({
216+ 'a|lib/a.txt.copy' : 'a' ,
217+ }, result, writer.assets);
193218
194219 await writer.writeAsString (makeAsset ('a|lib/a.txt' , 'b' ));
195220 FakeWatcher .notifyWatchers (new WatchEvent (
196221 ChangeType .MODIFY , path.absolute ('a' , 'packages' , 'a' , 'a.txt' )));
197222
198223 result = await nextResult (results);
199- checkOutputs ({'a|lib/a.txt.copy' : 'b' ,}, result, writer.assets);
224+ checkOutputs ({
225+ 'a|lib/a.txt.copy' : 'b' ,
226+ }, result, writer.assets);
200227 });
201228 });
202229
@@ -296,17 +323,21 @@ void main() {
296323 startWatch (phases, {'a|web/a.txt' : 'a' }, writer).listen (results.add);
297324
298325 var result = await nextResult (results);
299- checkOutputs ({'a|web/a.txt.copy' : 'a' , 'a|web/a.txt.copy.copy' : 'a' ,},
300- result, writer.assets);
326+ checkOutputs ({
327+ 'a|web/a.txt.copy' : 'a' ,
328+ 'a|web/a.txt.copy.copy' : 'a' ,
329+ }, result, writer.assets);
301330
302331 await writer.delete (makeAssetId ('a|web/a.txt.copy' ));
303332 FakeWatcher .notifyWatchers (new WatchEvent (
304333 ChangeType .REMOVE , path.absolute ('a' , 'web' , 'a.txt.copy' )));
305334
306335 result = await nextResult (results);
307336 // Should rebuild the generated asset and its outputs.
308- checkOutputs ({'a|web/a.txt.copy' : 'a' , 'a|web/a.txt.copy.copy' : 'a' ,},
309- result, writer.assets);
337+ checkOutputs ({
338+ 'a|web/a.txt.copy' : 'a' ,
339+ 'a|web/a.txt.copy.copy' : 'a' ,
340+ }, result, writer.assets);
310341 });
311342 });
312343
0 commit comments