summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-12 18:04:58 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-12 18:04:58 +0000
commit73b7de7dd30de0858b2d6c334868c37259f85e02 (patch)
tree1996b61cf214271a1978bdc5f677d370850372eb
parent8bd4316e5b029c20ef5e7ae0878285abe1f4b873 (diff)
downloadchromium_src-73b7de7dd30de0858b2d6c334868c37259f85e02.zip
chromium_src-73b7de7dd30de0858b2d6c334868c37259f85e02.tar.gz
chromium_src-73b7de7dd30de0858b2d6c334868c37259f85e02.tar.bz2
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
-rw-r--r--webkit/data/layout_tests/chrome/fast/dom/extensions/interval.html1
1 files changed, 1 insertions, 0 deletions
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);
}