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

Unified Diff: tests/html/js_interop_4_test.dart

Issue 10837070: Remove old isolate API and update all code in the repository to use (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 5 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/html/isolates_test.dart ('k') | tests/isolate/compute_this_script_browser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/js_interop_4_test.dart
diff --git a/tests/html/js_interop_4_test.dart b/tests/html/js_interop_4_test.dart
index 4ad3e042c17d82e1e6245ab3e601fb15349dde91..f921d887f884077eeea8ee49a509cea003eedde9 100644
--- a/tests/html/js_interop_4_test.dart
+++ b/tests/html/js_interop_4_test.dart
@@ -10,17 +10,12 @@
final testData = const [1, '2', 'true'];
-// TODO(vsm): Convert all DOM isolate tests to the new syntax.
-class TestIsolate extends Isolate {
- TestIsolate() : super();
+void testIsolateEntry() {
+ var fun1 = window.lookupPort('fun1');
+ var result = fun1.callSync(testData);
- void main() {
- var fun1 = window.lookupPort('fun1');
- var result = fun1.callSync(testData);
-
- var fun2 = window.lookupPort('fun2');
- fun2.callSync(result);
- }
+ var fun2 = window.lookupPort('fun2');
+ fun2.callSync(result);
}
main() {
@@ -64,6 +59,6 @@ main() {
port2.receive(fun2);
window.registerPort('fun2', port2.toSendPort());
- new TestIsolate().spawn();
+ spawnFunction(testIsolateEntry);
});
}
« no previous file with comments | « tests/html/isolates_test.dart ('k') | tests/isolate/compute_this_script_browser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698