mirror of
https://github.com/servo/servo.git
synced 2025-08-17 03:15:34 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE HTML>
|
||||
<meta charset=utf-8>
|
||||
<title>LongTask Timing: long task in sibling iframe</title>
|
||||
<body>
|
||||
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<script>
|
||||
async_test(t => {
|
||||
window.addEventListener("message", t.step_func(e => {
|
||||
assert_equals(e.data, "longtask+same-origin+frame");
|
||||
t.done();
|
||||
}));
|
||||
}, "Performance longtask entries in parent are observable in child iframe");
|
||||
</script>
|
||||
|
||||
<iframe src="resources/subframe-observing-longtask.html"></iframe>
|
||||
|
||||
<script>
|
||||
/* Create an iframe that generates a long task. */
|
||||
var iframe = document.createElement('iframe');
|
||||
iframe.id = 'child-iframe-id';
|
||||
iframe.name = 'child-iframe-name';
|
||||
document.body.appendChild(iframe);
|
||||
iframe.src = 'resources/subframe-with-longtask.html'
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue