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

Unified Diff: tests/isolate/src/APIv2_spawnUriTest.dart

Issue 10153005: unittest step 3 and 4: remove TestFramework.dart, make test.dart use (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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/isolate/src/APIv2_spawnUriTest.dart
diff --git a/tests/isolate/src/APIv2_spawnUriBrowserTest.dart b/tests/isolate/src/APIv2_spawnUriTest.dart
similarity index 74%
rename from tests/isolate/src/APIv2_spawnUriBrowserTest.dart
rename to tests/isolate/src/APIv2_spawnUriTest.dart
index 9bd10c9878e6592d11d8ec2b24506e50f317bab1..db3190045e17d470c15c0af549aec01517113ff8 100644
--- a/tests/isolate/src/APIv2_spawnUriBrowserTest.dart
+++ b/tests/isolate/src/APIv2_spawnUriTest.dart
@@ -8,19 +8,15 @@
// OtherScripts=APIv2_spawnUriChildIsolate.dart
#library('spawn_tests');
#import('../../../lib/unittest/unittest.dart');
-#import('../../../lib/unittest/dom_config.dart');
-#import('dart:dom'); // import added so test.dart can treat this as a webtest.
#import('dart:isolate');
main() {
- useDomConfiguration();
- asyncTest('isolate fromUri - send and reply', 1, () {
+ test('isolate fromUri - send and reply', () {
ReceivePort port = new ReceivePort();
- port.receive((msg, _) {
+ port.receive(expectAsync2((msg, _) {
expect(msg).equals('re: hi');
port.close();
- callbackDone();
- });
+ }));
// TODO(eub): make this work for non-JS targets.
SendPort s = spawnUri('APIv2_spawnUriChildIsolate.js');
« no previous file with comments | « tests/isolate/src/APIv2_spawnUriNegativeTest.dart ('k') | tests/isolate/src/APIv2_unresolvedPortsBrowserNegativeTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698