mirror of
https://github.com/servo/servo.git
synced 2025-09-09 22:48:21 +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
|
@ -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