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

Unified Diff: tests/html/js_interop_4_test.dart

Issue 23868034: Remove spawnDomFunction from dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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/html.status ('k') | tools/dom/src/native_DOMImplementation.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 944506b73c0bcfe48dce612a9b99d53b55dcc47e..3aee5265b6e14b833b80561b7fb5da0f8af11f37 100644
--- a/tests/html/js_interop_4_test.dart
+++ b/tests/html/js_interop_4_test.dart
@@ -11,14 +11,6 @@ import 'dart:isolate';
const testData = const [1, '2', 'true'];
-void testIsolateEntry() {
- var fun1 = window.lookupPort('fun1');
- var result = fun1.callSync(testData);
-
- var fun2 = window.lookupPort('fun2');
- fun2.callSync(result);
-}
-
main() {
useHtmlConfiguration();
@@ -37,29 +29,4 @@ main() {
var result = port2.callSync(testData);
expect(result, 3);
});
-
- // Test across isolate boundary.
- test('dart-to-dart-cross-isolate', () {
- var fun1 = (message) {
- expect(message, orderedEquals(testData));
- return message.length;
- };
-
- var port1 = new ReceivePortSync();
- port1.receive(fun1);
- window.registerPort('fun1', port1.toSendPort());
-
- // TODO(vsm): Investigate why this needs to be called asynchronously.
- var done = expectAsync0(() {});
- var fun2 = (message) {
- expect(message, 3);
- Timer.run(done);
- };
-
- var port2 = new ReceivePortSync();
- port2.receive(fun2);
- window.registerPort('fun2', port2.toSendPort());
-
- spawnDomFunction(testIsolateEntry);
- });
}
« no previous file with comments | « tests/html/html.status ('k') | tools/dom/src/native_DOMImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698