diff options
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast')
8 files changed, 39 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/tokenizer/external-script-document-open-expected.txt b/third_party/WebKit/LayoutTests/fast/tokenizer/external-script-document-open-expected.txt new file mode 100644 index 0000000..334f595 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/tokenizer/external-script-document-open-expected.txt @@ -0,0 +1,3 @@ +SUCCESS (1 of 2) + +SUCCESS (2 of 2) diff --git a/third_party/WebKit/LayoutTests/fast/tokenizer/external-script-document-open.html b/third_party/WebKit/LayoutTests/fast/tokenizer/external-script-document-open.html new file mode 100644 index 0000000..d6b403b --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/tokenizer/external-script-document-open.html @@ -0,0 +1,2 @@ +<p>SUCCESS (1 of 2)</p> +<script type="text/javascript" src="resources/external-script-document-open.js"></script> diff --git a/third_party/WebKit/LayoutTests/fast/tokenizer/resources/external-script-document-open.js b/third_party/WebKit/LayoutTests/fast/tokenizer/resources/external-script-document-open.js new file mode 100644 index 0000000..418aa94 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/tokenizer/resources/external-script-document-open.js @@ -0,0 +1,4 @@ +if (window.layoutTestController) + layoutTestController.dumpAsText(); +document.open() +document.write("SUCCESS (2 of 2)"); diff --git a/third_party/WebKit/LayoutTests/fast/tokenizer/resources/write-external-script-open.js b/third_party/WebKit/LayoutTests/fast/tokenizer/resources/write-external-script-open.js new file mode 100644 index 0000000..1fc67e5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/tokenizer/resources/write-external-script-open.js @@ -0,0 +1,2 @@ +document.open(); +document.write('<br>SUCCESS (2 of 2)<br>'); diff --git a/third_party/WebKit/LayoutTests/fast/tokenizer/write-external-script-open-expected.txt b/third_party/WebKit/LayoutTests/fast/tokenizer/write-external-script-open-expected.txt new file mode 100644 index 0000000..b50027d --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/tokenizer/write-external-script-open-expected.txt @@ -0,0 +1,3 @@ +SUCCESS (1 of 2) +SUCCESS (2 of 2) + diff --git a/third_party/WebKit/LayoutTests/fast/tokenizer/write-external-script-open.html b/third_party/WebKit/LayoutTests/fast/tokenizer/write-external-script-open.html new file mode 100644 index 0000000..9c968db --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/tokenizer/write-external-script-open.html @@ -0,0 +1,11 @@ +<body onload="test()"> +FAILURE +<script> +if (window.layoutTestController) + layoutTestController.dumpAsText(); +function test() +{ + document.write("SUCCESS (1 of 2)<script src='resources/write-external-script-open.js'></scr" + "ipt>"); +} +</script> +</body> diff --git a/third_party/WebKit/LayoutTests/fast/tokenizer/write-inline-script-open-expected.txt b/third_party/WebKit/LayoutTests/fast/tokenizer/write-inline-script-open-expected.txt new file mode 100644 index 0000000..b50027d --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/tokenizer/write-inline-script-open-expected.txt @@ -0,0 +1,3 @@ +SUCCESS (1 of 2) +SUCCESS (2 of 2) + diff --git a/third_party/WebKit/LayoutTests/fast/tokenizer/write-inline-script-open.html b/third_party/WebKit/LayoutTests/fast/tokenizer/write-inline-script-open.html new file mode 100644 index 0000000..83d5b67 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/tokenizer/write-inline-script-open.html @@ -0,0 +1,11 @@ +<body onload="test()"> +FAILURE +<script> +if (window.layoutTestController) + layoutTestController.dumpAsText(); +function test() +{ + document.write("SUCCESS (1 of 2)<script>document.open(); document.write('<br>SUCCESS (2 of 2)<br>');</scr" + "ipt>"); +} +</script> +</body> |