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

Side by Side Diff: tests/language/prefix101_test.dart

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Test to check if we are able to import multiple libraries using the 5 // Test to check if we are able to import multiple libraries using the
6 // same prefix. 6 // same prefix.
7 7
8 library Prefix101Test.dart; 8 library Prefix101Test.dart;
9 9
10 import "package:expect/expect.dart";
11 import "library10.dart" as lib101; 10 import "library10.dart" as lib101;
12 import "library11.dart" as lib101; 11 import "library11.dart" as lib101;
13 12
14 class Prefix101Test { 13 class Prefix101Test {
15 static Test1() { 14 static Test1() {
16 var result = 0; 15 var result = 0;
17 var obj = new lib101.Library10(1); 16 var obj = new lib101.Library10(1);
18 result = obj.fld; 17 result = obj.fld;
19 Expect.equals(1, result); 18 Expect.equals(1, result);
20 result += obj.func(); 19 result += obj.func();
(...skipping 24 matching lines...) Expand all
45 Expect.equals(200, lib101.top_level_func11()); 44 Expect.equals(200, lib101.top_level_func11());
46 } 45 }
47 } 46 }
48 47
49 main() { 48 main() {
50 Prefix101Test.Test1(); 49 Prefix101Test.Test1();
51 Prefix101Test.Test2(); 50 Prefix101Test.Test2();
52 Prefix101Test.Test3(); 51 Prefix101Test.Test3();
53 Prefix101Test.Test4(); 52 Prefix101Test.Test4();
54 } 53 }
OLDNEW
« no previous file with comments | « tests/language/positive_bit_operations_test.dart ('k') | tests/language/prefix10_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698