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

Unified Diff: tests/html/js_interop_obj_invoke_test.dart

Issue 10914129: Remove proxying support from dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regen dart:html Created 8 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/js_interop_func_passing_test.dart ('k') | tests/html/js_interop_obj_passing_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/js_interop_obj_invoke_test.dart
diff --git a/tests/html/js_interop_obj_invoke_test.dart b/tests/html/js_interop_obj_invoke_test.dart
deleted file mode 100644
index 77a230d1fc452e884d2f0fc770239a77f9fa6c5a..0000000000000000000000000000000000000000
--- a/tests/html/js_interop_obj_invoke_test.dart
+++ /dev/null
@@ -1,51 +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('JsInteropObjInvokeTest');
-#import('../../pkg/unittest/unittest.dart');
-#import('../../pkg/unittest/html_config.dart');
-#import('dart:html');
-#import('dart:isolate');
-
-injectSource(code) {
- final script = new ScriptElement();
- script.type = 'text/javascript';
- script.innerHTML = code;
- document.body.nodes.add(script);
-}
-
-var jsProxyTest = """
- function TestType(x) {
- this.x = x;
- }
- TestType.prototype.razzle = function () {
- return this.x * 2;
- }
- var data = new TestType(21);
-
- var port = window.lookupPort('test1');
- port.callSync(data);
-""";
-
-main() {
- useHtmlConfiguration();
-
- test('js-proxy', () {
- int invoked = 0;
-
- var port = new ReceivePortSync();
- port.receive((data) {
- expect(data.x, equals(21));
- expect(data.razzle(), equals(42));
- data.x = 100;
- expect(data.razzle(), equals(200));
-
- ++invoked;
- });
- window.registerPort('test1', port.toSendPort());
-
- injectSource(jsProxyTest);
- expect(invoked, equals(1));
- });
-}
« no previous file with comments | « tests/html/js_interop_func_passing_test.dart ('k') | tests/html/js_interop_obj_passing_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698