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

Unified Diff: LayoutTests/dart/Multiscript.dart

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years 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
new file mode 100644
index 0000000000000000000000000000000000000000..d00b40f99e209cdde4a966b1fb08e9c21b2bdd39
--- /dev/null
+++ b/LayoutTests/dart/Multiscript.dart
@@ -0,0 +1,24 @@
+// 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:js' as js;
+
+class State {
+ // Static stored in Dart so there is a unique value in each Dart DOM isolate.
+ static int sDart = 0;
+ static update() {
+ sDart++;
+ js.context['sJs']++;
+ }
+
+ // Static stored on the JS side of the world so there is one value for it
+ // across all Dart DOM isolates.
+ static int get sJs => js.context['sJs'];
+
+ static registerCallback(int index, Function callback) {
+ js.context.callMethod('registerCallback', [index, callback]);
+ }
+}
« 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