mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 1268bd5901289acc95b1a576f108bdf382d82e44
This commit is contained in:
parent
f183d66217
commit
292a12e545
261 changed files with 5513 additions and 966 deletions
|
@ -76,4 +76,17 @@ test(function() {
|
|||
new DOMParser().parseFromString("", "text/foo-this-is-invalid");
|
||||
})
|
||||
}, "DOMParser throws on an invalid enum value")
|
||||
|
||||
test(() => {
|
||||
const doc = new DOMParser().parseFromString(`
|
||||
<html><body>
|
||||
<style>
|
||||
@import url(/dummy.css)
|
||||
</style>
|
||||
<script>x = 8<\/script>
|
||||
</body></html>`, 'text/html');
|
||||
|
||||
assert_not_equals(doc.querySelector('script'), null, 'script must be found');
|
||||
assert_equals(doc.x, undefined, 'script must not be executed');
|
||||
}, 'script is found synchronously even when there is a css import');
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue