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

Unified Diff: LayoutTests/dart/inspector/sample_library.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/sample_library.dart
diff --git a/LayoutTests/dart/inspector/sample_library.dart b/LayoutTests/dart/inspector/sample_library.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3d07321365bf5c43399edb65b47b101639354513
--- /dev/null
+++ b/LayoutTests/dart/inspector/sample_library.dart
@@ -0,0 +1,87 @@
+// Copyright (c) 2014, 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.
+
+/**
+ * Sample library useful for debugger tests where we don't want to risk
+ * failures due to dependent libraries changing.
+ */
+library sample_library;
+
+import 'dart:html';
+import 'dart:js' as js;
+
+class Foo implements Bla {
+ static var staticField1;
+ static var staticField2;
+ var _fooPrivate1 = 1;
+ var _fooPrivate2 = 2;
+ var field1 = 5;
+ var field2 = 6;
+
+ Foo();
+ factory Foo.namedFactoryConstructor1() => null;
+ Foo.namedConstructor1();
+
+ get prop1 => 7;
+ set prop1(_) {}
+ get prop2 => 8;
+ set prop2(_) {}
+
+ member1() {
+ print('member1');
+ }
+ member2(_, __) {
+ print('member2');
+ }
+
+ static staticMember1() {}
+}
+
+class Bar extends Foo {
+ var barField1 = 9;
+ var barField2 = '10';
+ var _barProp2 = 11;
+ final barFinalField = 12;
+
+ get barProp1 => 'bar1';
+ get barProp2 => _barProp2;
+ set barProp2(x) {
+ _barProp2 = x;
+ }
+
+ static get barStaticProp => 'staticProp';
+
+ static barStaticMethod(x) => x * 3;
+
+ static const barConst1 = 9;
+
+ var _barPrivate1 = 11;
+ var _barPrivate2 = 12;
+
+ barMember1() => 42;
+}
+
+class Baz extends Foo {
+ var bazField = 42;
+}
+
+abstract class Bla {
+ get blaProp;
+}
+
+exampleStaticMethod(x) => x * 2;
+_examplePrivateStaticMethod() {}
+
+var exampleField = 8;
+
+final exampleFinalField = 16;
+
+get exampleProp1 => 30;
+
+var _exampleProp2 = 10;
+get exampleProp2 => _exampleProp2;
+
+set exampleProp2(x) {
+ _exampleProp2 = x;
+}
« no previous file with comments | « LayoutTests/dart/inspector/evaluate-in-console-expected.txt ('k') | LayoutTests/dart/inspector/scope-variables.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698