| OLD | NEW |
| 1 library TestUtils; | 1 library TestUtils; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:html'; | 4 import 'dart:html'; |
| 5 import 'dart:typeddata'; | 5 import 'dart:typed_data'; |
| 6 import '../../pkg/unittest/lib/unittest.dart'; | 6 import '../../pkg/unittest/lib/unittest.dart'; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Verifies that [actual] has the same graph structure as [expected]. | 9 * Verifies that [actual] has the same graph structure as [expected]. |
| 10 * Detects cycles and DAG structure in Maps and Lists. | 10 * Detects cycles and DAG structure in Maps and Lists. |
| 11 */ | 11 */ |
| 12 verifyGraph(expected, actual) { | 12 verifyGraph(expected, actual) { |
| 13 var eItems = []; | 13 var eItems = []; |
| 14 var aItems = []; | 14 var aItems = []; |
| 15 | 15 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 } | 86 } |
| 87 } | 87 } |
| 88 return; | 88 return; |
| 89 } | 89 } |
| 90 | 90 |
| 91 expect(false, isTrue, reason: 'Unhandled type: $expected'); | 91 expect(false, isTrue, reason: 'Unhandled type: $expected'); |
| 92 } | 92 } |
| 93 | 93 |
| 94 walk('', expected, actual); | 94 walk('', expected, actual); |
| 95 } | 95 } |
| OLD | NEW |