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

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

Issue 8992007: Make the repeating argument to timers optional. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 9 years 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 class MultipleTimerTest { 5 class MultipleTimerTest {
6 6
7 static final int TIMEOUT1 = 1000; 7 static final int TIMEOUT1 = 1000;
8 static final int TIMEOUT2 = 2000; 8 static final int TIMEOUT2 = 2000;
9 static final int TIMEOUT3 = 500; 9 static final int TIMEOUT3 = 500;
10 static final int TIMEOUT4 = 1500; 10 static final int TIMEOUT4 = 1500;
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 _order = new List<int>(4); 42 _order = new List<int>(4);
43 _order[0] = 2; 43 _order[0] = 2;
44 _order[1] = 0; 44 _order[1] = 0;
45 _order[2] = 3; 45 _order[2] = 3;
46 _order[3] = 1; 46 _order[3] = 1;
47 _message = 0; 47 _message = 0;
48 48
49 _startTime1 = (new Date.now()).value; 49 _startTime1 = (new Date.now()).value;
50 new Timer(timeoutHandler1, TIMEOUT1, false); 50 new Timer(timeoutHandler1, TIMEOUT1);
51 _startTime2 = (new Date.now()).value; 51 _startTime2 = (new Date.now()).value;
52 new Timer(timeoutHandler2, TIMEOUT2, false); 52 new Timer(timeoutHandler2, TIMEOUT2);
53 _startTime3 = (new Date.now()).value; 53 _startTime3 = (new Date.now()).value;
54 new Timer(timeoutHandler3, TIMEOUT3, false); 54 new Timer(timeoutHandler3, TIMEOUT3);
55 _startTime4 = (new Date.now()).value; 55 _startTime4 = (new Date.now()).value;
56 new Timer(timeoutHandler4, TIMEOUT4, false); 56 new Timer(timeoutHandler4, TIMEOUT4);
57 } 57 }
58 58
59 static void testMain() { 59 static void testMain() {
60 testMultipleTimer(); 60 testMultipleTimer();
61 } 61 }
62 62
63 static int _startTime1; 63 static int _startTime1;
64 static int _startTime2; 64 static int _startTime2;
65 static int _startTime3; 65 static int _startTime3;
66 static int _startTime4; 66 static int _startTime4;
67 static List<int> _order; 67 static List<int> _order;
68 static int _message; 68 static int _message;
69 } 69 }
70 70
71 main() { 71 main() {
72 MultipleTimerTest.testMain(); 72 MultipleTimerTest.testMain();
73 } 73 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698