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

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

Issue 9478027: spawnUri: fixing test with recent support for multi-script tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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
« no previous file with comments | « tests/isolate/isolate.status ('k') | tests/isolate/src/APIv2_spawnUriBrowserTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.dart
diff --git a/tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.dart b/tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.dart
index 9dc8f6d87a742471e02ecb01980e7a3b641fd46a..d801d45a92117cc75e8d3ae48263a3b4ef9b0408 100644
--- a/tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.dart
+++ b/tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.dart
@@ -3,22 +3,25 @@
// BSD-style license that can be found in the LICENSE file.
// Negative test to make sure that we are reaching all assertions.
+// Note: the following comment is used by test.dart to additionally compile the
+// other isolate's code.
+// OtherScripts=APIv2_spawnUriChildIsolate.dart
#library('spawn_tests');
-#import("../../../client/testing/unittest/unittest.dart");
-#import("dart:dom"); // import added so test.dart can treat this as a webtest.
+#import('../../../client/testing/unittest/unittest.dart');
+#import('dart:dom'); // import added so test.dart can treat this as a webtest.
#import('dart:isolate');
main() {
- asyncTest("isolate fromUri - negative test", 1, () {
+ asyncTest('isolate fromUri - negative test', 1, () {
ReceivePort port = new ReceivePort();
port.receive((msg, _) {
- expect(msg).equals("re: hello"); // should be hi, not hello
+ expect(msg).equals('re: hello'); // should be hi, not hello
port.close();
callbackDone();
});
// TODO(eub): make this work for non-JS targets.
- Isolate2 c = new Isolate2.fromUri("./APIv2_spawnUriChildIsolate.js");
- c.sendPort.send("hi", port.toSendPort());
+ Isolate2 c = new Isolate2.fromUri('APIv2_spawnUriChildIsolate.js');
+ c.sendPort.send('hi', port.toSendPort());
});
}
« no previous file with comments | « tests/isolate/isolate.status ('k') | tests/isolate/src/APIv2_spawnUriBrowserTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698