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

Unified Diff: LayoutTests/dart/dom/DOMIsolates.dart

Issue 9188009: Things to unfork. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 8 years, 11 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 | « LayoutTests/dart/dom/DOMConstructors-expected.txt ('k') | LayoutTests/dart/dom/DOMIsolates.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/dart/dom/DOMIsolates.dart
diff --git a/LayoutTests/dart/dom/DOMIsolates.dart b/LayoutTests/dart/dom/DOMIsolates.dart
deleted file mode 100644
index bd5d7c83978d7bdf1c132e610324b4fc0f9ed0e7..0000000000000000000000000000000000000000
--- a/LayoutTests/dart/dom/DOMIsolates.dart
+++ /dev/null
@@ -1,57 +0,0 @@
-#import('../../../../../dart/client/testing/unittest/unittest.dart');
-#import('dart:dom');
-
-isolateMain(port) {
- port.receive((msg, replyTo) {
- if (msg != 'check') {
- replyTo.send('wrong msg: $msg');
- }
- replyTo.send(window.location.toString());
- port.close();
- });
-}
-
-isolateMainTrampoline(port) {
- final childPortFuture = spawnDomIsolate(window, 'isolateMain');
- port.receive((msg, parentPort) {
- childPortFuture.then((childPort) {
- childPort.call(msg).receive((response, _) {
- parentPort.send(response);
- port.close();
- });
- });
- });
-}
-
-main() {
- forLayoutTests();
-
- final iframe = document.createElement('iframe');
- document.body.appendChild(iframe);
-
- asyncTest('Simple DOM isolate test', 1, () {
- spawnDomIsolate(iframe.contentWindow, 'isolateMain').then((sendPort) {
- sendPort.call('check').receive((msg, replyTo) {
- Expect.equals('about:blank', msg);
- callbackDone();
- });
- });
- });
-
- asyncTest('Nested DOM isolates test', 1, () {
- spawnDomIsolate(iframe.contentWindow, 'isolateMainTrampoline').then((sendPort) {
- sendPort.call('check').receive((msg, replyTo) {
- Expect.equals('about:blank', msg);
- callbackDone();
- });
- });
- });
-
- test('Null as target window', () {
- expectThrow(() => spawnDomIsolate(null, 'isolateMain'));
- });
-
- test('Not window as target window', () {
- expectThrow(() => spawnDomIsolate(document, 'isolateMain'));
- });
-}
« no previous file with comments | « LayoutTests/dart/dom/DOMConstructors-expected.txt ('k') | LayoutTests/dart/dom/DOMIsolates.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698