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

Side by Side Diff: tests/language/src/AllocateLargeObject.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, 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) 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 class A {
6 int a;
7 double d1;
8 double d2;
9 double d3;
10 double d4;
11 double d5;
12 double d6;
13 double d7;
14 double d8;
15 double d9;
16 double d10;
17 double d11;
18 double d12;
19 double d13;
20 double d14;
21 static var s;
22
23 static foo() {
24 return s;
25 }
26
27 A(this.a) { }
28
29 value() {
30 return a + foo();
31 }
32 }
33
34 class AllocateLargeObject {
35 static testMain() {
36 var a = new A(1);
37 A.s = 4;
38 Expect.equals(5, a.value());
39 }
40 }
41
42 main() {
43 AllocateLargeObject.testMain();
44 }
OLDNEW
« no previous file with comments | « tests/language/src/AdjacentStringLiteralsTest.dart ('k') | tests/language/src/AllocateTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698