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

Unified Diff: tests/isolate/v2_compute_this_script_browser_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
« tests/dom/async_window_test.dart ('K') | « tests/html/xmlelement_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/v2_compute_this_script_browser_test.dart
===================================================================
--- tests/isolate/v2_compute_this_script_browser_test.dart (revision 7823)
+++ tests/isolate/v2_compute_this_script_browser_test.dart (working copy)
@@ -21,13 +21,12 @@
useDomConfiguration();
var script = document.createElement('script');
document.body.appendChild(script);
- asyncTest('spawn with other script tags in page', 1, () {
+ test('spawn with other script tags in page', () {
ReceivePort port = new ReceivePort();
- port.receive((msg, _) {
+ port.receive(expectAsync2((msg, _) {
expect(msg).equals('re: hi');
port.close();
- callbackDone();
- });
+ }));
SendPort s = spawnFunction(child);
s.send('hi', port.toSendPort());
« tests/dom/async_window_test.dart ('K') | « tests/html/xmlelement_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698