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

Side by Side Diff: tests/language/src/library12.dart

Issue 10248007: test rename overhaul: step 8 - language tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
« no previous file with comments | « tests/language/src/library11.dart ('k') | tests/language/src/library2.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011, 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 #library("library12.dart");
7
8 #import("library11.dart");
9 class Library12 {
10 Library12(this.fld);
11 Library12.other(fld, multiplier) {
12 this.fld = fld*multiplier;
13 }
14 func() {
15 return 2;
16 }
17 var fld;
18 static static_func() {
19 var result = 0;
20 var obj = new Library11(4);
21 result = obj.fld;
22 Expect.equals(4, result);
23 result += obj.func();
24 Expect.equals(7, result);
25 result += Library11.static_func();
26 Expect.equals(9, result);
27 result += Library11.static_fld;
28 Expect.equals(10, result);
29 Expect.equals(100, top_level11);
30 Expect.equals(200, top_level_func11());
31 return 3;
32 }
33 static var static_fld = 4;
34 }
35
36 interface Library12Interface {
37 Library12 addObjects(Library12 value1, Library12 value2);
38 }
39
40 final int top_level12 = 10;
41 top_level_func12() {
42 return 20;
43 }
OLDNEW
« no previous file with comments | « tests/language/src/library11.dart ('k') | tests/language/src/library2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698