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

Unified Diff: tests/standalone/src/io/MultipleTimerTest.dart

Issue 10252020: test rename overhaul: step 12 - standalone (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/src/io/ManyFileOperationsTest.dart ('k') | tests/standalone/src/io/OptionsTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/MultipleTimerTest.dart
diff --git a/tests/standalone/src/io/MultipleTimerTest.dart b/tests/standalone/src/io/MultipleTimerTest.dart
deleted file mode 100644
index cd5bd4787d7157882807cf9871d6d02b0e1987d9..0000000000000000000000000000000000000000
--- a/tests/standalone/src/io/MultipleTimerTest.dart
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-#import("dart:io");
-
-class MultipleTimerTest {
-
- static final int TIMEOUT1 = 1000;
- static final int TIMEOUT2 = 2000;
- static final int TIMEOUT3 = 500;
- static final int TIMEOUT4 = 1500;
-
- static void testMultipleTimer() {
-
- void timeoutHandler1(Timer timer) {
- int endTime = (new Date.now()).value;
- Expect.equals(true, (endTime - _startTime1) >= TIMEOUT1);
- Expect.equals(true, _order[_message] == 0);
- _message++;
- }
-
- void timeoutHandler2(Timer timer) {
- int endTime = (new Date.now()).value;
- Expect.equals(true, (endTime - _startTime2) >= TIMEOUT2);
- Expect.equals(true, _order[_message] == 1);
- _message++;
- }
-
- void timeoutHandler3(Timer timer) {
- int endTime = (new Date.now()).value;
- Expect.equals(true, (endTime - _startTime3) >= TIMEOUT3);
- Expect.equals(true, _order[_message] == 2);
- _message++;
- }
-
- void timeoutHandler4(Timer timer) {
- int endTime = (new Date.now()).value;
- Expect.equals(true, (endTime - _startTime4) >= TIMEOUT4);
- Expect.equals(true, _order[_message] == 3);
- _message++;
- }
-
- _order = new List<int>(4);
- _order[0] = 2;
- _order[1] = 0;
- _order[2] = 3;
- _order[3] = 1;
- _message = 0;
-
- _startTime1 = (new Date.now()).value;
- new Timer(TIMEOUT1, timeoutHandler1);
- _startTime2 = (new Date.now()).value;
- new Timer(TIMEOUT2, timeoutHandler2);
- _startTime3 = (new Date.now()).value;
- new Timer(TIMEOUT3, timeoutHandler3);
- _startTime4 = (new Date.now()).value;
- new Timer(TIMEOUT4, timeoutHandler4);
- }
-
- static void testMain() {
- testMultipleTimer();
- }
-
- static int _startTime1;
- static int _startTime2;
- static int _startTime3;
- static int _startTime4;
- static List<int> _order;
- static int _message;
-}
-
-main() {
- MultipleTimerTest.testMain();
-}
« no previous file with comments | « tests/standalone/src/io/ManyFileOperationsTest.dart ('k') | tests/standalone/src/io/OptionsTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698