mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
Tests/LibWeb: Add missing test resources for document.write WPT tests
This commit is contained in:
parent
4ccf165dad
commit
e9181fcfd6
Notes:
github-actions[bot]
2025-02-08 11:46:16 +00:00
Author: https://github.com/shannonbooth
Commit: e9181fcfd6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3500
11 changed files with 35 additions and 4 deletions
|
@ -2,5 +2,5 @@ Harness status: OK
|
|||
|
||||
Found 1 tests
|
||||
|
||||
1 Fail
|
||||
Fail document.write external script
|
||||
1 Pass
|
||||
Pass document.write external script
|
|
@ -2,5 +2,5 @@ Harness status: OK
|
|||
|
||||
Found 1 tests
|
||||
|
||||
1 Fail
|
||||
Fail document.write external script that document.writes external script
|
||||
1 Pass
|
||||
Pass document.write external script that document.writes external script
|
|
@ -0,0 +1 @@
|
|||
order.push(3);
|
|
@ -0,0 +1 @@
|
|||
order.push(3);
|
|
@ -0,0 +1,3 @@
|
|||
t.step(function() {
|
||||
order.push(3);
|
||||
});
|
|
@ -0,0 +1,4 @@
|
|||
t.step(function() {
|
||||
order.push(4);
|
||||
assert_equals(document.getElementsByTagName("meta").length, 1);
|
||||
});
|
|
@ -0,0 +1,4 @@
|
|||
t.step(function() {
|
||||
order.push(3);
|
||||
assert_equals(document.getElementsByTagName("meta").length, 0);
|
||||
});
|
|
@ -0,0 +1,5 @@
|
|||
t.step(function() {
|
||||
order.push(4);
|
||||
document.write("<meta>");
|
||||
assert_equals(document.getElementsByTagName("meta").length, 1);
|
||||
});
|
|
@ -0,0 +1,5 @@
|
|||
t.step(function() {
|
||||
order.push(3);
|
||||
document.write("<script src='011-1.js'></script" + "><meta>");
|
||||
assert_equals(document.getElementsByTagName("meta").length, 0);
|
||||
});
|
|
@ -0,0 +1,5 @@
|
|||
t.step(
|
||||
function() {
|
||||
order.push(5);
|
||||
assert_equals(document.getElementsByTagName("meta").length, 0);
|
||||
});
|
|
@ -0,0 +1,3 @@
|
|||
parent.order.push(3);
|
||||
document.write("<script>parent.order.push(4)</script>");
|
||||
parent.order.push(5);
|
Loading…
Add table
Add a link
Reference in a new issue