mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Expose DOMHighResTimeStamps at lower res
This commit is contained in:
parent
5f55cd5d71
commit
8e65782efb
10 changed files with 46 additions and 51 deletions
|
@ -1,6 +0,0 @@
|
|||
[Event-timestamp-safe-resolution.html]
|
||||
type: testharness
|
||||
|
||||
[Event timestamp should not have a resolution better than 5 microseconds]
|
||||
expected: FAIL
|
||||
|
|
@ -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
|
||||
|
|
@ -19708,7 +19708,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"mozilla/window_performance.html": [
|
||||
"302073e8041763102d678326509d7ef0a1fb5c79",
|
||||
"c1e38a1e00147caf82492dc82f1cb5e85759f8e3",
|
||||
"testharness"
|
||||
],
|
||||
"mozilla/window_performance_topLevelDomComplete.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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue