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

Unified Diff: tests/html/js_interop_4_test.dart

Issue 56153005: Remove SendPortSync and ReceivePortSync. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove third_party/pkg/js and dom/Serialization.dart Created 7 years, 1 month 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 | « sdk/lib/isolate/isolate.dart ('k') | tests/isolate/browser/ports_compilation_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
deleted file mode 100644
index 3aee5265b6e14b833b80561b7fb5da0f8af11f37..0000000000000000000000000000000000000000
--- a/tests/html/js_interop_4_test.dart
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file
-
-library JsInterop4Test;
-import '../../pkg/unittest/lib/unittest.dart';
-import '../../pkg/unittest/lib/html_config.dart';
-import 'dart:async';
-import 'dart:html';
-import 'dart:isolate';
-
-const testData = const [1, '2', 'true'];
-
-main() {
- useHtmlConfiguration();
-
- // Test that our interop scheme also works from Dart to Dart.
- test('dart-to-dart-same-isolate', () {
- var fun = expectAsync1((message) {
- expect(message, orderedEquals(testData));
- return message.length;
- });
-
- var port1 = new ReceivePortSync();
- port1.receive(fun);
- window.registerPort('fun', port1.toSendPort());
-
- var port2 = window.lookupPort('fun');
- var result = port2.callSync(testData);
- expect(result, 3);
- });
-}
« no previous file with comments | « sdk/lib/isolate/isolate.dart ('k') | tests/isolate/browser/ports_compilation_browser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698