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

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

Issue 251383004: Tests for CL 258503008 Base URL: svn://svn.chromium.org/blink/branches/dart/1847
Patch Set: Created 6 years, 8 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 {
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 get prop1 => 7;
22 set prop1(_) {}
23 get prop2 => 8;
24 set prop2(_) {}
25
26 member1() {
27 print('member1');
28 }
29 member2(_, __) {
30 print('member2');
31 }
32
33 static staticMember1() {}
34 }
35
36 class Bar extends Foo {
37 var barField1 = 9;
38 var barField2 = '10';
39 var _barProp2 = 11;
40 final barFinalField = 12;
41
42 get barProp1 => 'bar1';
43 get barProp2 => _barProp2;
44 set barProp2(x) {
45 _barProp2 = x;
46 }
47
48 static get barStaticProp => 'staticProp';
49
50 static barStaticMethod(x) => x * 3;
51
52 static const barConst1 = 9;
53
54 var _barPrivate1 = 11;
55 var _barPrivate2 = 12;
56
57 barMember1() => 42;
58 }
59
60 exampleStaticMethod(x) => x * 2;
61 _examplePrivateStaticMethod() {}
62
63 var exampleField = 8;
64
65 final exampleFinalField = 16;
66
67 get exampleProp1 => 30;
68
69 var _exampleProp2 = 10;
70 get exampleProp2 => _exampleProp2;
71
72 set exampleProp2(x) {
73 _exampleProp2 = x;
74 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/dart/inspector/utils.dart » ('j') | LayoutTests/dart/inspector/utils.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698