From 807051594288d448e2406ceab40e77549d7753b9 Mon Sep 17 00:00:00 2001 From: James Graham Date: Fri, 9 Jan 2015 13:51:25 +0000 Subject: [PATCH] fixup! Fix last modified test to be more correct and stable. --- .../document-lastModified-01.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/html/dom/documents/resource-metadata-management/document-lastModified-01.html b/html/dom/documents/resource-metadata-management/document-lastModified-01.html index ea3ba66692c99c..a3d5990ea4969b 100644 --- a/html/dom/documents/resource-metadata-management/document-lastModified-01.html +++ b/html/dom/documents/resource-metadata-management/document-lastModified-01.html @@ -10,7 +10,7 @@ var expected = Math.round(d / 1000); test(function() { - assert_approx_equals(initial_modified, expected, 1.5); + assert_approx_equals(initial_modified, expected, 2.5); }, "Date returned by lastModified is current at page load"); var pattern = /[0-9]{2}\/[0-9]{2}\/[0-9]{4} ([0-9]{2}):([0-9]{2}):([0-9]{2})/ @@ -39,8 +39,9 @@ t.step(function() { var new_modified = Date.parse(document.lastModified) / 1000; var new_expected = Math.round(new Date() / 1000); - assert_approx_equals(new_modified, new_expected, 1.5, "(initial value was " + initial_modified + ")"); + assert_approx_equals(new_modified, new_expected, 2.5, + "(initial value was " + initial_modified + ")"); t.done(); }); - }, 3000); + }, 4000);