2010-08-16 Adam Barth <abarth@webkit.org>
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Aug 2010 09:09:50 +0000 (09:09 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Aug 2010 09:09:50 +0000 (09:09 +0000)
        Reviewed by Alexey Proskuryakov.

        document.write causes the links to appear twice (noscript content is not ignored)
        https://bugs.webkit.org/show_bug.cgi?id=16230

        Add a test for this case.

        * fast/parser/document-write-noscript-expected.txt: Added.
        * fast/parser/document-write-noscript.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@65402 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/parser/document-write-noscript-expected.txt [new file with mode: 0644]
LayoutTests/fast/parser/document-write-noscript.html [new file with mode: 0644]

index c8bf28f..7abe413 100644 (file)
@@ -2,6 +2,18 @@
 
         Reviewed by Alexey Proskuryakov.
 
+        document.write causes the links to appear twice (noscript content is not ignored)
+        https://bugs.webkit.org/show_bug.cgi?id=16230
+
+        Add a test for this case.
+
+        * fast/parser/document-write-noscript-expected.txt: Added.
+        * fast/parser/document-write-noscript.html: Added.
+
+2010-08-16  Adam Barth  <abarth@webkit.org>
+
+        Reviewed by Alexey Proskuryakov.
+
         document.write() isn't processed immediately before DOM access
         https://bugs.webkit.org/show_bug.cgi?id=36881
 
diff --git a/LayoutTests/fast/parser/document-write-noscript-expected.txt b/LayoutTests/fast/parser/document-write-noscript-expected.txt
new file mode 100644 (file)
index 0000000..0139614
--- /dev/null
@@ -0,0 +1 @@
+Should not say FAIL:
diff --git a/LayoutTests/fast/parser/document-write-noscript.html b/LayoutTests/fast/parser/document-write-noscript.html
new file mode 100644 (file)
index 0000000..880fdc4
--- /dev/null
@@ -0,0 +1,10 @@
+<html> 
+<body> 
+<script>
+if (window.layoutTestController)
+    layoutTestController.dumpAsText();
+</script>
+Should not say FAIL:
+<script src="data:text/javascript,document.write('<script>');document.write('</script><noscript>');document.write('<div>FAIL</div>');document.write('</noscript>');"></script> 
+</body> 
+</html>