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

Unified Diff: runtime/observatory/test/dominator_tree_test.dart

Issue 1071363002: Relocate service library tests and hookup a working status file (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/observatory/test/debugging_test.dart ('k') | runtime/observatory/test/echo_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/test/dominator_tree_test.dart
diff --git a/runtime/observatory/test/dominator_tree_test.dart b/runtime/observatory/test/dominator_tree_test.dart
deleted file mode 100644
index 6db7b3c95bdaffa056e08439c996afe032e4e039..0000000000000000000000000000000000000000
--- a/runtime/observatory/test/dominator_tree_test.dart
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-// VMOptions=--compile-all --error_on_bad_type --error_on_bad_override --checked
-
-import 'package:observatory/dominator_tree.dart';
-import 'package:unittest/unittest.dart';
-
-void main() {
- test('small example from [Lenguaer & Tarjan 1979]', smallTest);
- test('non-flowgraph', nonFlowgraph);
-}
-
-void smallTest() {
- var g = {
- 'R': ['A', 'B', 'C'],
- 'A': ['D'],
- 'B': ['A', 'D', 'E'],
- 'C': ['F', 'G'],
- 'D': ['L'],
- 'E': ['H'],
- 'F': ['I'],
- 'G': ['I', 'J'],
- 'H': ['E', 'K'],
- 'I': ['K'],
- 'J': ['I'],
- 'K': ['I', 'R'],
- 'L': ['H'],
- };
- var d = new Dominator();
- for (String u in g.keys) {
- d.addEdges(u, g[u]);
- }
- d.computeDominatorTree('R');
- expect(d.dominator('I'), equals('R'));
- expect(d.dominator('K'), equals('R'));
- expect(d.dominator('C'), equals('R'));
- expect(d.dominator('H'), equals('R'));
- expect(d.dominator('E'), equals('R'));
- expect(d.dominator('A'), equals('R'));
- expect(d.dominator('D'), equals('R'));
- expect(d.dominator('B'), equals('R'));
-
- expect(d.dominator('F'), equals('C'));
- expect(d.dominator('G'), equals('C'));
- expect(d.dominator('J'), equals('G'));
- expect(d.dominator('L'), equals('D'));
- expect(d.dominator('R'), isNull);
-}
-
-void nonFlowgraph() {
- var d = new Dominator();
- d.addEdges('A', ['B']);
- expect(() => d.computeDominatorTree('B'), throwsStateError);
-}
« no previous file with comments | « runtime/observatory/test/debugging_test.dart ('k') | runtime/observatory/test/echo_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698