mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Add a topLevelDomComplete metric.
This commit is contained in:
parent
26feea3be5
commit
074447e501
7 changed files with 59 additions and 0 deletions
|
@ -40195,6 +40195,12 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"mozilla/window_performance_topLevelDomComplete.html": [
|
||||
[
|
||||
"/_mozilla/mozilla/window_performance_topLevelDomComplete.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"mozilla/window_requestAnimationFrame.html": [
|
||||
[
|
||||
"/_mozilla/mozilla/window_requestAnimationFrame.html",
|
||||
|
@ -72342,6 +72348,10 @@
|
|||
"f03283e68b82d972ad21f674243070643ef89489",
|
||||
"testharness"
|
||||
],
|
||||
"mozilla/window_performance_topLevelDomComplete.html": [
|
||||
"4b953e63ffa6bf4ed1bc9a2baaea457d46502b9d",
|
||||
"testharness"
|
||||
],
|
||||
"mozilla/window_requestAnimationFrame.html": [
|
||||
"86310f3e4b88cce70ef92b56e4f65f034999096e",
|
||||
"testharness"
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[window_performance_topLevelDomComplete.html]
|
||||
type: testharness
|
||||
prefs: [dom.testperf.enabled:true]
|
|
@ -0,0 +1,18 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Performance toLevelDomComplete</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
async_test(function(t) {
|
||||
window.onload = t.step_func(function() {
|
||||
assert_true(performance.timing.domLoading <= performance.timing.topLevelDomComplete);
|
||||
assert_true(performance.timing.topLevelDomComplete <= performance.timing.domComplete);
|
||||
t.done();
|
||||
});
|
||||
}, "performance.topLevelDomComplete");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue