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')); |
- }); |
-} |