mirror of
https://github.com/servo/servo.git
synced 2025-06-28 02:53:48 +01:00
Update web-platform-tests to revision dfe0b490c6018fd36379f4c7726f9f6a37728838
This commit is contained in:
parent
6fb75c2b9e
commit
909e31e110
123 changed files with 987 additions and 613 deletions
|
@ -1,9 +0,0 @@
|
|||
import time
|
||||
|
||||
def main(request, response):
|
||||
time.sleep(1.0);
|
||||
|
||||
return [("Content-type", "text/javascript")], """
|
||||
var s = document.getElementById('script0');
|
||||
s.innerText = 't.unreached_func("This should not be evaluated")();';
|
||||
"""
|
|
@ -9,16 +9,21 @@
|
|||
<script>
|
||||
var t = async_test("Modify inline script element's text " +
|
||||
"after prepare-a-script before evaluation");
|
||||
|
||||
function changeScriptText() {
|
||||
document.querySelector('#script0').textContent =
|
||||
't.unreached_func("This should not be evaluated")();';
|
||||
}
|
||||
|
||||
t.step_timeout(changeScriptText, 500);
|
||||
</script>
|
||||
|
||||
<!-- This is "a style sheet that is blocking scripts" and thus ... -->
|
||||
<link rel="stylesheet" href="/common/slow.py"></link>
|
||||
|
||||
<script src="resources/script-text-modifications.py" async></script>
|
||||
<link rel="stylesheet" href="/common/slow.py?pipe=trickle(d1)"></link>
|
||||
|
||||
<!-- This inline script becomes a parser-blocking script, and thus
|
||||
the async script above is evaluated after script0 is inserted into DOM,
|
||||
prepare-a-script'ed, and before its evaluation. -->
|
||||
the step_timeout is evaluated after script0 is inserted into DOM,
|
||||
prepare-a-script'ed, but before its evaluation. -->
|
||||
<script id="script0">
|
||||
t.step(() => {
|
||||
// When this is evaluated after the stylesheet is loaded,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue