Title: [186216] trunk/LayoutTests
- Revision
- 186216
- Author
- cdu...@apple.com
- Date
- 2015-07-01 21:01:03 -0700 (Wed, 01 Jul 2015)
Log Message
Reduce resolution of performance.now
https://bugs.webkit.org/show_bug.cgi?id=146531
Reviewed by Simon Fraser.
Make layout test introduced in r186208.
* http/tests/misc/webtiming-resolution-expected.txt:
* http/tests/misc/webtiming-resolution.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (186215 => 186216)
--- trunk/LayoutTests/ChangeLog 2015-07-02 01:30:28 UTC (rev 186215)
+++ trunk/LayoutTests/ChangeLog 2015-07-02 04:01:03 UTC (rev 186216)
@@ -1,5 +1,17 @@
2015-07-01 Chris Dumez <cdu...@apple.com>
+ Reduce resolution of performance.now
+ https://bugs.webkit.org/show_bug.cgi?id=146531
+
+ Reviewed by Simon Fraser.
+
+ Make layout test introduced in r186208.
+
+ * http/tests/misc/webtiming-resolution-expected.txt:
+ * http/tests/misc/webtiming-resolution.html:
+
+2015-07-01 Chris Dumez <cdu...@apple.com>
+
Unreviewed, rebaseline js/dom/global-constructors-attributes.html after r186198.
* platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt:
Modified: trunk/LayoutTests/http/tests/misc/webtiming-resolution-expected.txt (186215 => 186216)
--- trunk/LayoutTests/http/tests/misc/webtiming-resolution-expected.txt 2015-07-02 01:30:28 UTC (rev 186215)
+++ trunk/LayoutTests/http/tests/misc/webtiming-resolution-expected.txt 2015-07-02 04:01:03 UTC (rev 186216)
@@ -3,5 +3,5 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS ((t1 - t0) / 0.005) % 1 < 1e-10 is true
+PASS Math.abs(1 - (t1 - t0) / 0.005) < 1e-10 is true
Modified: trunk/LayoutTests/http/tests/misc/webtiming-resolution.html (186215 => 186216)
--- trunk/LayoutTests/http/tests/misc/webtiming-resolution.html 2015-07-02 01:30:28 UTC (rev 186215)
+++ trunk/LayoutTests/http/tests/misc/webtiming-resolution.html 2015-07-02 04:01:03 UTC (rev 186216)
@@ -13,8 +13,9 @@
while (t0 == t1) {
t1 = performance.now();
}
-shouldBe("((t1 - t0) / 0.005) % 1 < 1e-10", "true");
+shouldBe("Math.abs(1 - (t1 - t0) / 0.005) < 1e-10", "true");
+
</script>
</body>
</html>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes