Title: [268928] trunk/LayoutTests/imported/w3c
Revision
268928
Author
[email protected]
Date
2020-10-23 11:03:10 -0700 (Fri, 23 Oct 2020)

Log Message

REGRESSION (r267402): [ iOS Mojave+ Release ] imported/w3c/web-platform-tests/user-timing/measure-l3.any.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=217414

Reviewed by Alex Christensen.

Sometimes lhs of comparison is higher by an infinitisimal margin.
Round number to two-digit precision to prevent such scenarios.

* web-platform-tests/user-timing/measure-l3.any.js:
(test):

Modified Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (268927 => 268928)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2020-10-23 17:10:41 UTC (rev 268927)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2020-10-23 18:03:10 UTC (rev 268928)
@@ -1,3 +1,16 @@
+2020-10-23  Diego Pino Garcia  <[email protected]>
+
+        REGRESSION (r267402): [ iOS Mojave+ Release ] imported/w3c/web-platform-tests/user-timing/measure-l3.any.html is a flaky failure
+        https://bugs.webkit.org/show_bug.cgi?id=217414
+
+        Reviewed by Alex Christensen.
+
+        Sometimes lhs of comparison is higher by an infinitisimal margin.
+        Round number to two-digit precision to prevent such scenarios.
+
+        * web-platform-tests/user-timing/measure-l3.any.js:
+        (test):
+
 2020-10-23  Chris Dumez  <[email protected]>
 
         AnalyserNode's output should only have one channel

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/user-timing/measure-l3.any.js (268927 => 268928)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/user-timing/measure-l3.any.js	2020-10-23 17:10:41 UTC (rev 268927)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/user-timing/measure-l3.any.js	2020-10-23 18:03:10 UTC (rev 268928)
@@ -17,9 +17,9 @@
   performance.clearMarks();
   performance.clearMeasures();
   const markEntry = performance.mark("mark", {startTime: 123});
-  const endMin = performance.now();
+  const endMin = Number(performance.now().toFixed(2));
   const measureEntry = performance.measure("A", "mark", undefined);
-  const endMax = performance.now();
+  const endMax = Number(performance.now().toFixed(2));
   assert_equals(measureEntry.startTime, markEntry.startTime);
   assert_greater_than_equal(endTime(measureEntry), endMin);
   assert_greater_than_equal(endMax, endTime(measureEntry));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to