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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 library scope_variables_test;
2
3 import 'dart:core' as core; // import with prefix so global dart:core fields don 't appear in scope chain.
4 import 'dart:html' as html; // import with prefix so global dart:html fields don 't appear in scope chain.
5
6 main() {
7 html.window.onMessage.listen(handleMessage);
8 }
9
10 handleMessage(event) {
11 if (event.data == 'fromJS') {
12 handleMessage2(event);
13 }
14 }
15
16 handleMessage2(event) {
17 var b = false;
18 var i = 42;
19 var d = 1.618;
20 var _s = 'foo';
21 var l = [1, 2, 3];
22 A a1 = new A(3.14);
23 A a2;
24 html.window.postMessage('fromDart', '*');
25 }
26
27 class A {
28 var d;
29
30 A(this.d) {}
31
32 toString() {
33 return "[Instance of A, d = $d]";
34 }
35 }
36
37 var globalVariable = 'globalString';
38
39 var globalMapVariable = {'foo': 'bar', 'baz': 42};
40
41 var globalArrayVariable = [3, 1, 4, 1, 5, 9];
42
43 String get throwingGetter {
44 throw 'only the best reviews';
45 }
46
47 html.DivElement get exampleDivGetter => html.query("#example_div");
OLDNEW
« 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