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

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..72b54f5ad6ac139854d2e6a9f03dd4eb2f10183b 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.
Siggi Cherem (dart-lang) 2012/04/20 00:58:23 this is one of my favorites parts of this CL :) T
Emily Fortuna 2012/04/20 20:06:19 +1!
#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(later2((msg, _) {
expect(msg).equals('re: hi');
port.close();
- callbackDone();
- });
+ }));
// TODO(eub): make this work for non-JS targets.
SendPort s = spawnUri('APIv2_spawnUriChildIsolate.js');

Powered by Google App Engine
This is Rietveld 408576698