mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Cargoify servo
This commit is contained in:
parent
db2f642c32
commit
c6ab60dbfc
1761 changed files with 8423 additions and 2294 deletions
28
tests/content/test_window_performance.html
Normal file
28
tests/content/test_window_performance.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<script src="harness.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
is_not(window.performance, undefined);
|
||||
is_a(window.performance, Performance);
|
||||
|
||||
is_not(window.performance.timing, undefined);
|
||||
is_a(window.performance.timing, PerformanceTiming);
|
||||
|
||||
gt(window.performance.timing.navigationStart, 0);
|
||||
|
||||
var last = window.performance.now();
|
||||
gt(last, 0);
|
||||
|
||||
// Check that window.performance.now() is monotonically increasing
|
||||
for (var i = 0; i < 100; i++) {
|
||||
var next = window.performance.now();
|
||||
gt(next, last);
|
||||
last = next;
|
||||
}
|
||||
finish();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue