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

Side by Side Diff: LayoutTests/dart/inspector/sample_library.dart

Issue 300393002: Merge DevTools Refactor CL to Blink36 (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1985
Patch Set: PTAL Created 6 years, 6 months 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 /**
6 * Sample library useful for debugger tests where we don't want to risk
7 * failures due to dependent libraries changing.
8 */
9 library sample_library;
10
11 import 'dart:html';
12 import 'dart:js' as js;
13
14 class Foo implements Bla {
15 static var staticField1;
16 static var staticField2;
17 var _fooPrivate1 = 1;
18 var _fooPrivate2 = 2;
19 var field1 = 5;
20 var field2 = 6;
21
22 Foo();
23 factory Foo.namedFactoryConstructor1() => null;
24 Foo.namedConstructor1();
25
26 get prop1 => 7;
27 set prop1(_) {}
28 get prop2 => 8;
29 set prop2(_) {}
30
31 member1() {
32 print('member1');
33 }
34 member2(_, __) {
35 print('member2');
36 }
37
38 static staticMember1() {}
39 }
40
41 class Bar extends Foo {
42 var barField1 = 9;
43 var barField2 = '10';
44 var _barProp2 = 11;
45 final barFinalField = 12;
46
47 get barProp1 => 'bar1';
48 get barProp2 => _barProp2;
49 set barProp2(x) {
50 _barProp2 = x;
51 }
52
53 static get barStaticProp => 'staticProp';
54
55 static barStaticMethod(x) => x * 3;
56
57 static const barConst1 = 9;
58
59 var _barPrivate1 = 11;
60 var _barPrivate2 = 12;
61
62 barMember1() => 42;
63 }
64
65 class Baz extends Foo {
66 var bazField = 42;
67 }
68
69 abstract class Bla {
70 get blaProp;
71 }
72
73 exampleStaticMethod(x) => x * 2;
74 _examplePrivateStaticMethod() {}
75
76 var exampleField = 8;
77
78 final exampleFinalField = 16;
79
80 get exampleProp1 => 30;
81
82 var _exampleProp2 = 10;
83 get exampleProp2 => _exampleProp2;
84
85 set exampleProp2(x) {
86 _exampleProp2 = x;
87 }
OLDNEW
« no previous file with comments | « LayoutTests/dart/inspector/evaluate-in-console-expected.txt ('k') | LayoutTests/dart/inspector/scope-variables.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698