Index: LayoutTests/dart/Multiscript.dart |
diff --git a/LayoutTests/dart/Multiscript.dart b/LayoutTests/dart/Multiscript.dart |
deleted file mode 100644 |
index a2639e8163af690b3b86b5749913d79b730ef456..0000000000000000000000000000000000000000 |
--- a/LayoutTests/dart/Multiscript.dart |
+++ /dev/null |
@@ -1,47 +0,0 @@ |
-// Copyright (c) 2011, 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. |
- |
-// Dart test for testing isolation across multiple script tags. |
-#library("multiscript"); |
-#import("dart:dom"); |
-#import("dart:json"); |
- |
-class State { |
- static int s = 1; |
- static update() { s++; } |
-} |
- |
-checkEventDelivery(id, expect) { |
- addHandler('test${id}', (m) { |
- State.update(); |
- postResult(State.s, expect); |
- }); |
- postMessage('test${id}', {}); |
-} |
- |
-onStart(handler) { |
- addHandler('start', handler); |
-} |
- |
-addHandler(cmd, handler) { |
- window.addEventListener('message', (e) { |
- var msg = {}; |
- // We do this, as unit test framework also uses DOM messages to function. |
- try { |
- msg = JSON.parse(e.data); |
- } catch (var e) {} |
- if (msg['multiscript-cmd'] == cmd) { |
- handler(msg); |
- } |
- }, false); |
-} |
- |
-postMessage(cmd, params) { |
- params['multiscript-cmd'] = cmd; |
- window.postMessage(JSON.stringify(params), '*'); |
-} |
- |
-postResult(actual, expect) { |
- postMessage('done', {'actual': actual, 'expect': expect}); |
-} |