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

Unified Diff: LayoutTests/dart/Multiscript.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/Encoding-expected.txt ('k') | LayoutTests/dart/Multiscript.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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});
-}
« no previous file with comments | « LayoutTests/dart/Encoding-expected.txt ('k') | LayoutTests/dart/Multiscript.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698