Skip to content

Commit

Permalink
dartfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Mar 10, 2016
1 parent 7bdc9e0 commit 54d6522
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
13 changes: 5 additions & 8 deletions test/generate/build_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ main() {
{
'a|lib/a.txt': 'a',
'a|lib/a.txt.copy': 'a',
'a|$assetGraphPath':
JSON.encode(emptyGraph.serialize()),
'a|$assetGraphPath': JSON.encode(emptyGraph.serialize()),
},
status: BuildStatus.Failure,
exceptionMatcher: invalidOutputException);
Expand Down Expand Up @@ -269,8 +268,7 @@ main() {
'a|lib/a.txt.copy.clone': 'a',
'a|lib/b.txt.copy': 'b',
'a|lib/b.txt.copy.clone': 'b',
'a|$assetGraphPath':
JSON.encode(graph.serialize()),
'a|$assetGraphPath': JSON.encode(graph.serialize()),
},
outputs: {'a|lib/a.txt.copy': 'b', 'a|lib/a.txt.copy.clone': 'b',},
writer: writer);
Expand Down Expand Up @@ -299,15 +297,14 @@ main() {
{
'a|lib/a.txt.copy': 'a',
'a|lib/a.txt.copy.clone': 'a',
'a|$assetGraphPath':
JSON.encode(graph.serialize()),
'a|$assetGraphPath': JSON.encode(graph.serialize()),
},
outputs: {},
writer: writer);

/// Should be deleted using the writer, and removed from the new graph.
var newGraph = new AssetGraph.deserialize(JSON.decode(writer
.assets[makeAssetId('a|$assetGraphPath')].value));
var newGraph = new AssetGraph.deserialize(
JSON.decode(writer.assets[makeAssetId('a|$assetGraphPath')].value));
expect(newGraph.contains(aNode.id), isFalse);
expect(newGraph.contains(aCopyNode.id), isFalse);
expect(newGraph.contains(aCloneNode.id), isFalse);
Expand Down
4 changes: 2 additions & 2 deletions test/generate/watch_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ main() {
result = await nextResult(results);
checkOutputs({'a|web/c.txt.copy': 'c'}, result, writer.assets);

var cachedGraph = new AssetGraph.deserialize(JSON.decode(writer
.assets[makeAssetId('a|$assetGraphPath')].value));
var cachedGraph = new AssetGraph.deserialize(
JSON.decode(writer.assets[makeAssetId('a|$assetGraphPath')].value));

var expectedGraph = new AssetGraph();
var bCopyNode = makeAssetNode('a|web/b.txt.copy');
Expand Down

0 comments on commit 54d6522

Please sign in to comment.