aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/wpt/metadata/dom/events/Event-timestamp-safe-resolution.html.ini6
-rw-r--r--tests/wpt/metadata/performance-timeline/webtiming-resolution.any.js.ini15
-rw-r--r--tests/wpt/mozilla/meta/MANIFEST.json2
-rw-r--r--tests/wpt/mozilla/tests/mozilla/window_performance.html7
4 files changed, 6 insertions, 24 deletions
diff --git a/tests/wpt/metadata/dom/events/Event-timestamp-safe-resolution.html.ini b/tests/wpt/metadata/dom/events/Event-timestamp-safe-resolution.html.ini
deleted file mode 100644
index eba00488f66..00000000000
--- a/tests/wpt/metadata/dom/events/Event-timestamp-safe-resolution.html.ini
+++ /dev/null
@@ -1,6 +0,0 @@
-[Event-timestamp-safe-resolution.html]
- type: testharness
-
- [Event timestamp should not have a resolution better than 5 microseconds]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/performance-timeline/webtiming-resolution.any.js.ini b/tests/wpt/metadata/performance-timeline/webtiming-resolution.any.js.ini
deleted file mode 100644
index 97f8a0cc51f..00000000000
--- a/tests/wpt/metadata/performance-timeline/webtiming-resolution.any.js.ini
+++ /dev/null
@@ -1,15 +0,0 @@
-[webtiming-resolution.any.html]
- [Verifies the resolution of performance.now() is at least 5 microseconds.]
- expected: FAIL
-
-
-[webtiming-resolution.any.worker.html]
- [Verifies the resolution of performance.now() is at least 20 microseconds.]
- expected: FAIL
-
- [Verifies the resolution of entry.startTime is at least 20 microseconds.]
- expected: TIMEOUT
-
- [Verifies the resolution of performance.now() is at least 5 microseconds.]
- expected: FAIL
-
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index 145f8189f02..b6843add882 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -19708,7 +19708,7 @@
"testharness"
],
"mozilla/window_performance.html": [
- "302073e8041763102d678326509d7ef0a1fb5c79",
+ "c1e38a1e00147caf82492dc82f1cb5e85759f8e3",
"testharness"
],
"mozilla/window_performance_topLevelDomComplete.html": [
diff --git a/tests/wpt/mozilla/tests/mozilla/window_performance.html b/tests/wpt/mozilla/tests/mozilla/window_performance.html
index 302073e8041..c1e38a1e001 100644
--- a/tests/wpt/mozilla/tests/mozilla/window_performance.html
+++ b/tests/wpt/mozilla/tests/mozilla/window_performance.html
@@ -27,12 +27,15 @@ test(function() {
var last = window.performance.now();
assert_greater_than(last, 0);
- // Check that window.performance.now() is monotonically increasing
+ // Check that window.performance.now() is monotonically nondecreasing
+ // and eventually increases
+ var before_loop = window.performance.now();
for (var i = 0; i < 100; i++) {
var next = window.performance.now();
- assert_greater_than(next, last);
+ assert_greater_than_equal(next, last);
last = next;
}
+ assert_greater_than(last, before_loop, "If this fails, either performance timing is broken, or Servo JS execution has gotten much faster since this test was written.");
});
</script>
</body>