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

Unified Diff: tests/lib/async/timer_isolate_test.dart

Issue 101293006: Revert "Fix VM timer firing too early." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/lib/async/stream_periodic3_test.dart ('k') | tests/lib/async/timer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/timer_isolate_test.dart
diff --git a/tests/lib/async/timer_isolate_test.dart b/tests/lib/async/timer_isolate_test.dart
index 1e0cb9bf4d2dd476faef0b0a764ad393738fcbe9..8c6c5fbf7165654b36853f311e6a35f8a7f6dada 100644
--- a/tests/lib/async/timer_isolate_test.dart
+++ b/tests/lib/async/timer_isolate_test.dart
@@ -13,7 +13,7 @@ const Duration TIMEOUT = const Duration(milliseconds: 100);
// Some browsers (Firefox and IE so far) can trigger too early. Add a safety
// margin. We use identical(1, 1.0) as an easy way to know if the test is
// compiled by dart2js.
-int get safetyMargin => identical(1, 1.0) ? 100 : 0;
+int get safetyMargin => identical(1, 1.0) ? 100 : 1;
createTimer(replyTo) {
new Timer(TIMEOUT, () {
« no previous file with comments | « tests/lib/async/stream_periodic3_test.dart ('k') | tests/lib/async/timer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698