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

Unified Diff: LayoutTests/dart/inspector/scope-variables.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/inspector/sample_library.dart ('k') | LayoutTests/dart/inspector/scope-variables.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/dart/inspector/scope-variables.dart
diff --git a/LayoutTests/dart/inspector/scope-variables.dart b/LayoutTests/dart/inspector/scope-variables.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8ea6dfda481966ecaf341c597c140091fabcd669
--- /dev/null
+++ b/LayoutTests/dart/inspector/scope-variables.dart
@@ -0,0 +1,47 @@
+library scope_variables_test;
+
+import 'dart:core' as core; // import with prefix so global dart:core fields don't appear in scope chain.
+import 'dart:html' as html; // import with prefix so global dart:html fields don't appear in scope chain.
+
+main() {
+ html.window.onMessage.listen(handleMessage);
+}
+
+handleMessage(event) {
+ if (event.data == 'fromJS') {
+ handleMessage2(event);
+ }
+}
+
+handleMessage2(event) {
+ var b = false;
+ var i = 42;
+ var d = 1.618;
+ var _s = 'foo';
+ var l = [1, 2, 3];
+ A a1 = new A(3.14);
+ A a2;
+ html.window.postMessage('fromDart', '*');
+}
+
+class A {
+ var d;
+
+ A(this.d) {}
+
+ toString() {
+ return "[Instance of A, d = $d]";
+ }
+}
+
+var globalVariable = 'globalString';
+
+var globalMapVariable = {'foo': 'bar', 'baz': 42};
+
+var globalArrayVariable = [3, 1, 4, 1, 5, 9];
+
+String get throwingGetter {
+ throw 'only the best reviews';
+}
+
+html.DivElement get exampleDivGetter => html.query("#example_div");
« no previous file with comments | « LayoutTests/dart/inspector/sample_library.dart ('k') | LayoutTests/dart/inspector/scope-variables.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698