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

Side by Side Diff: tests/compiler/dart2js_native/native_null_frog_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. Created 7 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
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 // Test for values of some basic types. 7 // Test for values of some basic types.
6 8
9
7 class A native "*A" { 10 class A native "*A" {
8 returnNull() native; 11 returnNull() native;
9 returnUndefined() native; 12 returnUndefined() native;
10 returnEmptyString() native; 13 returnEmptyString() native;
11 returnZero() native; 14 returnZero() native;
12 } 15 }
13 16
14 A makeA() native; 17 A makeA() native;
15 18
16 void setup() native """ 19 void setup() native """
(...skipping 12 matching lines...) Expand all
29 Expect.equals(null, a.returnNull()); 32 Expect.equals(null, a.returnNull());
30 Expect.equals(null, a.returnUndefined()); 33 Expect.equals(null, a.returnUndefined());
31 34
32 Expect.equals('', a.returnEmptyString()); 35 Expect.equals('', a.returnEmptyString());
33 Expect.isTrue(a.returnEmptyString().isEmpty); 36 Expect.isTrue(a.returnEmptyString().isEmpty);
34 Expect.isTrue(a.returnEmptyString() is String); 37 Expect.isTrue(a.returnEmptyString() is String);
35 38
36 Expect.isTrue(a.returnZero() is int); 39 Expect.isTrue(a.returnZero() is int);
37 Expect.equals(0, a.returnZero()); 40 Expect.equals(0, a.returnZero());
38 } 41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698