mirror of
https://github.com/servo/servo.git
synced 2025-08-26 23:58:20 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
|
@ -7,21 +7,24 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<script>
|
||||
async_test(t => {
|
||||
window.addEventListener("message", t.step_func(e => {
|
||||
assert_equals(e.data, "longtask+same-origin-ancestor+frame");
|
||||
const t = async_test(t => {
|
||||
window.addEventListener('message', t.step_func(e => {
|
||||
assert_equals(e.data, 'longtask+same-origin-ancestor+script+++');
|
||||
t.done();
|
||||
}));
|
||||
}, "Performance longtask entries in parent are observable in child iframe");
|
||||
}, 'Performance longtask entries in parent are observable in child iframe.');
|
||||
|
||||
const iframe = document.createElement('iframe');
|
||||
iframe.onload = function() {
|
||||
t.step_timeout(function(){
|
||||
const begin = window.performance.now();
|
||||
while (window.performance.now() < begin + 51);
|
||||
}, 50);
|
||||
}
|
||||
iframe.id = 'child-iframe-id';
|
||||
iframe.name = 'child-iframe-name';
|
||||
document.body.appendChild(iframe);
|
||||
iframe.src = 'resources/subframe-observing-longtask.html';
|
||||
</script>
|
||||
|
||||
<iframe src="resources/subframe-observing-longtask.html" id="child-iframe-id" name="child-iframe-name"></iframe>
|
||||
|
||||
<script>
|
||||
setTimeout(function(){
|
||||
var begin = window.performance.now();
|
||||
while (window.performance.now() < begin + 51);
|
||||
}, 50);
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue