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

Side by Side Diff: pkg/mutation_observer/test/mutation_observer_test.dart

Issue 279513007: pkg/mutation_observer: fix use of removed unittest feature (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | no next file » | 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 library mutation_observer_test; 5 library mutation_observer_test;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'package:unittest/unittest.dart'; 8 import 'package:unittest/unittest.dart';
9 import 'package:unittest/html_config.dart'; 9 import 'package:unittest/html_config.dart';
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 nodes.add(node); 48 nodes.add(node);
49 } 49 }
50 } 50 }
51 if (nodes.length >= count) { 51 if (nodes.length >= count) {
52 done = true; 52 done = true;
53 expect(nodes.length, count); 53 expect(nodes.length, count);
54 expect(nodes, expectation); 54 expect(nodes, expectation);
55 } 55 }
56 } 56 }
57 57
58 return expectAsyncUntil2(callback, () => done); 58 return expectAsyncUntil(callback, () => done);
59 } 59 }
60 60
61 test('empty options is syntax error', () { 61 test('empty options is syntax error', () {
62 var mutationObserver = new MutationObserver( 62 var mutationObserver = new MutationObserver(
63 (mutations, observer) { expect(false, isTrue, 63 (mutations, observer) { expect(false, isTrue,
64 reason: 'Should not be reached'); }); 64 reason: 'Should not be reached'); });
65 expect(() { mutationObserver.observe(document); }, 65 expect(() { mutationObserver.observe(document); },
66 throws); 66 throws);
67 }); 67 });
68 68
(...skipping 27 matching lines...) Expand all
96 var div2 = new DivElement(); 96 var div2 = new DivElement();
97 var mutationObserver = new MutationObserver( 97 var mutationObserver = new MutationObserver(
98 mutationCallback(2, orderedEquals([div1, div2]))); 98 mutationCallback(2, orderedEquals([div1, div2])));
99 mutationObserver.observe(container, childList: true, subtree: true); 99 mutationObserver.observe(container, childList: true, subtree: true);
100 100
101 container.append(div1); 101 container.append(div1);
102 div1.append(div2); 102 div1.append(div2);
103 }); 103 });
104 }); 104 });
105 } 105 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698