From 73b7de7dd30de0858b2d6c334868c37259f85e02 Mon Sep 17 00:00:00 2001 From: "willchan@chromium.org" Date: Thu, 12 Mar 2009 18:04:58 +0000 Subject: The test checks the time twice in a row and expects the time increases. There are situations in which the machine can return a time slightly earlier (up to a few ms) than it previously returned. Therefore, I paused for 50ms in between timer checks in order to compensate for this. This should hopefully fix the test. Review URL: http://codereview.chromium.org/42001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11551 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/data/layout_tests/chrome/fast/dom/extensions/interval.html | 1 + 1 file changed, 1 insertion(+) (limited to 'webkit/data') diff --git a/webkit/data/layout_tests/chrome/fast/dom/extensions/interval.html b/webkit/data/layout_tests/chrome/fast/dom/extensions/interval.html index 1ff02bc..2f34cb5 100644 --- a/webkit/data/layout_tests/chrome/fast/dom/extensions/interval.html +++ b/webkit/data/layout_tests/chrome/fast/dom/extensions/interval.html @@ -59,6 +59,7 @@ function test() { check("stopped", ms == interval.microseconds()); // Verify that re-stopping the timer works. + pause(50); interval.stop(); check("re-stopped", interval.microseconds() > ms); } -- cgit v1.1