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

Unified Diff: tests/html/utils.dart

Issue 10868067: dart2js dart:html conversions for serialized script values. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « tests/html/indexeddb_2_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/utils.dart
diff --git a/tests/html/utils.dart b/tests/html/utils.dart
index 7072f0c71473b3ade392429d8f3cd03cad0eb487..8b2dc9887cccd74bcd4c99d70a5f02f602d33215 100644
--- a/tests/html/utils.dart
+++ b/tests/html/utils.dart
@@ -21,7 +21,15 @@ verifyGraph(expected, actual) {
// Cycle or DAG?
for (int i = 0; i < eItems.length; i++) {
if (expected === eItems[i]) {
- Expect.identical(aItems[i], actual, message(path, 'back or side edge'));
+ Expect.identical(aItems[i], actual,
+ message(path, 'missing back or side edge'));
+ return;
+ }
+ }
+ for (int i = 0; i < aItems.length; i++) {
+ if (actual === aItems[i]) {
+ Expect.identical(eItems[i], expected,
+ message(path, 'extra back or side edge'));
return;
}
}
« no previous file with comments | « tests/html/indexeddb_2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698