Chromium Code Reviews| Index: samples/third_party/dromaeo/tests/RunnerSuite.dart |
| diff --git a/samples/third_party/dromaeo/tests/RunnerSuite.dart b/samples/third_party/dromaeo/tests/RunnerSuite.dart |
| index f4d8c6fd2024d466f3f843e05005a84b98dd650d..86f9e9e182f7e6de39d1c8e7889813c3c85ac27d 100644 |
| --- a/samples/third_party/dromaeo/tests/RunnerSuite.dart |
| +++ b/samples/third_party/dromaeo/tests/RunnerSuite.dart |
| @@ -51,7 +51,7 @@ class Suite { |
| // Run the test several times. |
| try { |
| - // TODO(antonm): use .setTimeout to schedule next run as JS |
| + // TODO(antonm): use timer to schedule next run as JS |
| // version does. That allows to report the intermidiate results |
| // more smoothly as well. |
| for (int i = 0; i < _N_RUNS; i++) { |
| @@ -90,12 +90,12 @@ class Suite { |
| if (currentOperation < _operations.length) { |
| _operations[currentOperation](); |
| currentOperation++; |
| - _window.setTimeout(handler, 1); |
| + new Timer(const Duration(milliseconds: 1), handler); |
| } else { |
| _postMessage('over'); |
| } |
| } |
| - _window.setTimeout(handler, 0); |
| + new Timer(const Duration(milliseconds: 1), handler); |
|
blois
2013/02/13 03:09:24
Original had 0 rather than 1.
Emily Fortuna
2013/02/13 20:19:44
Done.
|
| } |
| _reportTestResults(String name, Result result) { |