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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated latest tests. 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) 2011, the Dart project authors. Please see the AUTHORS file 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 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 import "package:expect/expect.dart";
6
5 // Tests that we can call functions through getters which return null. 7 // Tests that we can call functions through getters which return null.
6 8
7 const TOP_LEVEL_NULL = null; 9 const TOP_LEVEL_NULL = null;
8 10
9 var topLevel; 11 var topLevel;
10 12
11 class CallThroughNullGetterTest { 13 class CallThroughNullGetterTest {
12 14
13 static void testMain() { 15 static void testMain() {
14 testTopLevel(); 16 testTopLevel();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 A() { } 62 A() { }
61 var field; 63 var field;
62 get getter { return field; } 64 get getter { return field; }
63 method() { return field; } 65 method() { return field; }
64 66
65 } 67 }
66 68
67 main() { 69 main() {
68 CallThroughNullGetterTest.testMain(); 70 CallThroughNullGetterTest.testMain();
69 } 71 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698