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

Side by Side Diff: tests/standalone/deoptimization_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) 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 // Test deoptimization. 4 // Test deoptimization.
5 5
6 import "package:expect/expect.dart";
7
8 class SmiCompares { 6 class SmiCompares {
9 // Test deoptimization when one argument is known to be Smi. 7 // Test deoptimization when one argument is known to be Smi.
10 static bool smiCompareLessThan2(a) { 8 static bool smiCompareLessThan2(a) {
11 return a < 2; 9 return a < 2;
12 } 10 }
13 11
14 // Test deoptimization when one argument is known to be Smi. 12 // Test deoptimization when one argument is known to be Smi.
15 static bool smiCompareGreaterThan2(a) { 13 static bool smiCompareGreaterThan2(a) {
16 return 2 < a; 14 return 2 < a;
17 } 15 }
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 SmiBinop.smiBinopOverflowTest(); 203 SmiBinop.smiBinopOverflowTest();
206 ObjectsEquality.objectsEqualityTest(); 204 ObjectsEquality.objectsEqualityTest();
207 smiRightShift(); 205 smiRightShift();
208 doubleUnary(); 206 doubleUnary();
209 } 207 }
210 } 208 }
211 209
212 main() { 210 main() {
213 DeoptimizationTest.testMain(); 211 DeoptimizationTest.testMain();
214 } 212 }
OLDNEW
« no previous file with comments | « tests/standalone/debugger/basic_debugger_test.dart ('k') | tests/standalone/double_temp_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698