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

Side by Side Diff: tests/standalone/src/TimerTest.dart

Issue 9254026: Split dart:builtin into dart:builtin and dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment and add binaries. Created 8 years, 11 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 | « tests/standalone/src/TimerRepeatTest.dart ('k') | tests/stub-generator/test_config.dart » ('j') | 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) 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("dart:io");
6
5 class TimerTest { 7 class TimerTest {
6 8
7 static final int _STARTTIMEOUT = 1050; 9 static final int _STARTTIMEOUT = 1050;
8 static final int _DECREASE = 200; 10 static final int _DECREASE = 200;
9 static final int _ITERATIONS = 5; 11 static final int _ITERATIONS = 5;
10 12
11 static void testSimpleTimer() { 13 static void testSimpleTimer() {
12 14
13 void timeoutHandler(Timer timer) { 15 void timeoutHandler(Timer timer) {
14 int endTime = (new Date.now()).value; 16 int endTime = (new Date.now()).value;
(...skipping 17 matching lines...) Expand all
32 } 34 }
33 35
34 static int _startTime; 36 static int _startTime;
35 static int _timeout; 37 static int _timeout;
36 static int _iteration; 38 static int _iteration;
37 } 39 }
38 40
39 main() { 41 main() {
40 TimerTest.testMain(); 42 TimerTest.testMain();
41 } 43 }
OLDNEW
« no previous file with comments | « tests/standalone/src/TimerRepeatTest.dart ('k') | tests/stub-generator/test_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698