Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: tests/standalone/io/dependency_graph_test.dart

Issue 841193003: cleanup to tools/testing/dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: one last bit Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tests/standalone/io/skipping_dart2js_compilations_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 6
7 import '../../../tools/testing/dart/dependency_graph.dart' as graph; 7 import '../../../tools/testing/dart/lib/dependency_graph.dart' as graph;
8 8
9 main() { 9 main() {
10 var dgraph = new graph.Graph(); 10 var dgraph = new graph.Graph();
11 var numberOfEvents = 0; 11 var numberOfEvents = 0;
12 var eventAssertions = []; 12 var eventAssertions = [];
13 13
14 graph.Node newNode(int i, List deps) { 14 graph.Node newNode(int i, List deps) {
15 graph.Node node = dgraph.newNode(i, deps); 15 graph.Node node = dgraph.newNode(i, deps);
16 Expect.isTrue(node.userData == i); 16 Expect.isTrue(node.userData == i);
17 Expect.isTrue(dgraph.nodes.contains(node)); 17 Expect.isTrue(dgraph.nodes.contains(node));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 node3 = newNode(3, [node1, node2]); 53 node3 = newNode(3, [node1, node2]);
54 changeState(node2, graph.NodeState.Failed); 54 changeState(node2, graph.NodeState.Failed);
55 changeState(node3, graph.NodeState.UnableToRun); 55 changeState(node3, graph.NodeState.UnableToRun);
56 56
57 dgraph.events.take(numberOfEvents).toList().then((events) { 57 dgraph.events.take(numberOfEvents).toList().then((events) {
58 for (var i=0; i<events.length; i++) { 58 for (var i=0; i<events.length; i++) {
59 eventAssertions[i](events[i]); 59 eventAssertions[i](events[i]);
60 } 60 }
61 }); 61 });
62 } 62 }
OLDNEW
« no previous file with comments | « no previous file | tests/standalone/io/skipping_dart2js_compilations_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698