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

Unified Diff: tests/html/dom_isolates_test.dart

Issue 10412015: aChange all asyncTest/callbackDone style tests to use the new expectAsync/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: tests/html/dom_isolates_test.dart
===================================================================
--- tests/html/dom_isolates_test.dart (revision 7823)
+++ tests/html/dom_isolates_test.dart (working copy)
@@ -32,22 +32,24 @@
final iframe = new Element.tag('iframe');
document.body.nodes.add(iframe);
- asyncTest('Simple DOM isolate test', 1, () {
- spawnDomIsolate(iframe.contentWindow, 'isolateMain').then((sendPort) {
- sendPort.call('check').then((msg) {
- Expect.equals('about:blank', msg);
- callbackDone();
- });
- });
+ test('Simple DOM isolate test', () {
+ spawnDomIsolate(iframe.contentWindow, 'isolateMain').then(
+ expectAsync1((sendPort) {
+ sendPort.call('check').then(
+ expectAsync1((msg) {
+ Expect.equals('about:blank', msg);
+ }));
+ }));
});
- asyncTest('Nested DOM isolates test', 1, () {
- spawnDomIsolate(iframe.contentWindow, 'isolateMainTrampoline').then((sendPort) {
- sendPort.call('check').then((msg) {
- Expect.equals('about:blank', msg);
- callbackDone();
- });
- });
+ test('Nested DOM isolates test', () {
+ spawnDomIsolate(iframe.contentWindow, 'isolateMainTrampoline').then(
+ expectAsync1((sendPort) {
+ sendPort.call('check').then(
+ expectAsync1((msg) {
+ Expect.equals('about:blank', msg);
+ }));
+ }));
});
test('Null as target window', () {

Powered by Google App Engine
This is Rietveld 408576698