| 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;
|
| +}
|
|
|