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

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

Issue 10869014: Add library tag to test to make it work in Dartium. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Tests that the VM does not crash on weird corner cases of class Math. 4 // Tests that the VM does not crash on weird corner cases of class Math.
5 // VMOptions=--optimization_counter_threshold=100 5 // VMOptions=--optimization_counter_threshold=100
6 6
7 #library('math_vm_test');
8
7 #import('dart:math'); 9 #import('dart:math');
8 10
9 class FakeNumber { 11 class FakeNumber {
10 const FakeNumber(); 12 const FakeNumber();
11 void toDouble() {} 13 void toDouble() {}
12 } 14 }
13 15
14 class MathTest { 16 class MathTest {
15 static bool testParseInt(x) { 17 static bool testParseInt(x) {
16 try { 18 try {
(...skipping 16 matching lines...) Expand all
33 static void testMain() { 35 static void testMain() {
34 Expect.equals(false, testParseInt(5)); 36 Expect.equals(false, testParseInt(5));
35 Expect.equals(false, testSqrt(const FakeNumber())); 37 Expect.equals(false, testSqrt(const FakeNumber()));
36 } 38 }
37 } 39 }
38 main() { 40 main() {
39 for (int i = 0; i < 200; i++) { 41 for (int i = 0; i < 200; i++) {
40 MathTest.testMain(); 42 MathTest.testMain();
41 } 43 }
42 } 44 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698