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

Unified Diff: LayoutTests/dart/inspector/debugger-eval-on-call-frame.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
Index: LayoutTests/dart/inspector/debugger-eval-on-call-frame.DART
diff --git a/LayoutTests/dart/inspector/debugger-eval-on-call-frame.DART b/LayoutTests/dart/inspector/debugger-eval-on-call-frame.DART
new file mode 100644
index 0000000000000000000000000000000000000000..aa1fdb63f80c06170c052d4c80e80a619c5a3740
--- /dev/null
+++ b/LayoutTests/dart/inspector/debugger-eval-on-call-frame.DART
@@ -0,0 +1,41 @@
+import 'dart:collection';
+import 'dart:html';
+import 'dart:math' as math;
+
+var globalVar = 14;
+
+main() {
+ window.onMessage.listen(handleMessage);
+}
+
+handleMessage(event) {
+ if (event.data == 'fromJS') {
+ var test = new Test();
+ test.closure();
+ window.postMessage('fromDart', '*');
+ }
+}
+
+class Base {
+ int baseField = 0;
+}
+
+class Test extends Base {
+ static var staticField = 42;
+ var foo = 13;
+ var closure;
+
+ Test() {
+ createClosure();
+ }
+
+ Test create(String string) => new Test();
+
+ createClosure() {
+ closure = () {
+ var z = 10;
+ z = z * 2;
+ return z;
+ };
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698