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

Unified Diff: test/observe_test.dart

Issue 23532024: Changes in webui to comply with the safe html changes. Now that Nodes can be (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 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 | « test/data/input/escape3_test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/observe_test.dart
diff --git a/test/observe_test.dart b/test/observe_test.dart
index db8e0fdd24b9e46309acd68224654f7be2d11db2..39ba27d5814669da619a806694001ac21b84e559 100644
--- a/test/observe_test.dart
+++ b/test/observe_test.dart
@@ -590,17 +590,17 @@ main() {
observe(() => set.length, (n) { notification = n; });
set.addAll([1, 2, 3]);
- expect(set, [1, 2, 3]);
+ expect(set, unorderedEquals([1, 2, 3]));
deliverChangesSync();
expect(notification, _change(0, 3), reason: 'addAll changes length');
set.add(4);
- expect(set, [1, 2, 3, 4]);
+ expect(set, unorderedEquals([1, 2, 3, 4]));
deliverChangesSync();
expect(notification, _change(3, 4), reason: 'add changes length');
set.removeAll([2, 3]);
- expect(set, [1, 4]);
+ expect(set, unorderedEquals([1, 4]));
deliverChangesSync();
expect(notification, _change(4, 2), reason: 'removeAll changes length');
@@ -627,28 +627,28 @@ main() {
observe(() => set.contains(2), (n) { notification = n; });
set.add(4);
- expect(set, [1, 2, 3, 4]);
+ expect(set, unorderedEquals([1, 2, 3, 4]));
deliverChangesSync();
expect(notification, null, reason: 'add does not change existing items');
set.remove(3);
- expect(set, [1, 2, 4]);
+ expect(set, unorderedEquals([1, 2, 4]));
expect(notification, null,
reason: 'removing an item does not change other items');
set.remove(2);
- expect(set, [1, 4]);
+ expect(set, unorderedEquals([1, 4]));
deliverChangesSync();
expect(notification, _change(true, false));
notification = null;
set.removeAll([2, 3]);
- expect(set, [1, 4]);
+ expect(set, unorderedEquals([1, 4]));
deliverChangesSync();
expect(notification, null, reason: 'item already removed');
set.add(2);
- expect(set, [1, 2, 4]);
+ expect(set, unorderedEquals([1, 2, 4]));
deliverChangesSync();
expect(notification, _change(false, true), reason: 'item added again');
});
« no previous file with comments | « test/data/input/escape3_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698