Use 2-digit precision for comparison in user-timing/measure-l3.any.js
diff --git a/user-timing/measure-l3.any.js b/user-timing/measure-l3.any.js
index 24c27c4..642b55a 100644
--- a/user-timing/measure-l3.any.js
+++ b/user-timing/measure-l3.any.js
@@ -17,12 +17,12 @@
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));
+ assert_greater_than_equal(Number(endTime(measureEntry).toFixed(2)), endMin);
+ assert_greater_than_equal(endMax, Number(endTime(measureEntry).toFixed(2)));
}, "When the start mark is given and the end is unprovided, the start time of the measure entry should be the start mark's time, the end should be now.");
test(function() {