mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Tests/LibWeb: Add missing test resources for document.write WPT tests
This commit is contained in:
@@ -2,5 +2,5 @@ Harness status: OK
|
|||||||
|
|
||||||
Found 1 tests
|
Found 1 tests
|
||||||
|
|
||||||
1 Fail
|
1 Pass
|
||||||
Fail document.write external script
|
Pass document.write external script
|
||||||
@@ -2,5 +2,5 @@ Harness status: OK
|
|||||||
|
|
||||||
Found 1 tests
|
Found 1 tests
|
||||||
|
|
||||||
1 Fail
|
1 Pass
|
||||||
Fail document.write external script that document.writes external script
|
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);
|
||||||
Reference in New Issue
Block a user