mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 60220357131c65146444da1f54624d5b54d0975d
This commit is contained in:
parent
c45192614c
commit
775b784f79
2144 changed files with 58115 additions and 29658 deletions
|
@ -5,12 +5,15 @@
|
|||
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="resources/makelongtask.js"></script>
|
||||
|
||||
<h1>Long Task: External Script</h1>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
async_test(function (t) {
|
||||
if (typeof PerformanceLongTaskTiming === 'undefined') {
|
||||
assert_unreached("Longtasks are not supported.");
|
||||
t.done();
|
||||
}
|
||||
const observer = new PerformanceObserver(
|
||||
t.step_func(function (entryList) {
|
||||
const entries = entryList.getEntries();
|
||||
|
@ -37,7 +40,11 @@
|
|||
})
|
||||
);
|
||||
observer.observe({entryTypes: ['longtask']});
|
||||
window.onload = () => {
|
||||
const script = document.createElement('script');
|
||||
script.src = 'resources/makelongtask.js';
|
||||
document.body.appendChild(script);
|
||||
}
|
||||
}, 'Performance longtask entries are observable.');
|
||||
</script>
|
||||
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue