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

Unified Diff: LayoutTests/dart/inspector/evaluate-in-console.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/evaluate-in-console.dart
diff --git a/LayoutTests/dart/inspector/evaluate-in-console.dart b/LayoutTests/dart/inspector/evaluate-in-console.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c3cfaa30a0510098e20b734f901a3c1e552c484f
--- /dev/null
+++ b/LayoutTests/dart/inspector/evaluate-in-console.dart
@@ -0,0 +1,55 @@
+import 'dart:collection';
+import 'dart:html';
+import 'dart:math' as math;
+
+main() {
+ window.onMessage.listen(handleMessage);
+}
+
+handleMessage(event) {
+ if (event.data == 'fromJS') {
+ Test test = new Test('Test.instanceField');
+ String _private = 'private';
+ window.postMessage('fromDart', '*');
+ }
+}
+
+class IntEntry extends LinkedListEntry<IntEntry> {
+ final int value;
+
+ IntEntry(this.value);
+
+ String toString() => value.toString();
+}
+
+LinkedList intList = new LinkedList()
+ ..add(new IntEntry(4))
+ ..add(new IntEntry(2));
+
+class Base {
+ int baseField = 0;
+}
+
+class Test extends Base {
+ String instanceField;
+ int _foo;
+
+ Test(this.instanceField);
+
+ get foo => _foo;
+ set foo(int value) => _foo = value;
+
+ Test create(String string) => new Test(string);
+
+ String concat(Test x, Test y) {
+ return '$instanceField:${x.instanceField}:${y.instanceField}';
+ }
+
+ set baseField(value) {}
+
+ String toString() => '<Test instance with instanceField = $instanceField>';
+}
+
+String globalField;
+
+int calculateSquareRoot(int x) => math.sqrt(x).toInt();
« no previous file with comments | « LayoutTests/dart/inspector/deferred-import-library.dart ('k') | LayoutTests/dart/inspector/evaluate-in-console.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698