View source mode is missing the processing instruction line.
authoresprehn@chromium.org <esprehn@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Jan 2013 20:48:33 +0000 (20:48 +0000)
committeresprehn@chromium.org <esprehn@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Jan 2013 20:48:33 +0000 (20:48 +0000)
https://bugs.webkit.org/show_bug.cgi?id=15961

Reviewed by Adam Barth.

Add a test for XML documents shown in viewsource mode. The bug
with the missing processing instruction line was fixed long
ago with the HTML5 parser rewrite so this just adds a test.

* fast/frames/viewsource-xml-expected.txt: Added.
* fast/frames/viewsource-xml.html: Added.

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

LayoutTests/ChangeLog
LayoutTests/fast/frames/viewsource-xml-expected.txt [new file with mode: 0644]
LayoutTests/fast/frames/viewsource-xml.html [new file with mode: 0644]

index 94f8a6c..13ea1e6 100644 (file)
@@ -1,5 +1,19 @@
 2013-01-02  Elliott Sprehn  <esprehn@chromium.org>
 
+        View source mode is missing the processing instruction line.
+        https://bugs.webkit.org/show_bug.cgi?id=15961
+
+        Reviewed by Adam Barth.
+
+        Add a test for XML documents shown in viewsource mode. The bug
+        with the missing processing instruction line was fixed long
+        ago with the HTML5 parser rewrite so this just adds a test.
+
+        * fast/frames/viewsource-xml-expected.txt: Added.
+        * fast/frames/viewsource-xml.html: Added.
+
+2013-01-02  Elliott Sprehn  <esprehn@chromium.org>
+
         Transitions and animations do not apply to CSS ::before and ::after pseudo-elements
         https://bugs.webkit.org/show_bug.cgi?id=92591
 
diff --git a/LayoutTests/fast/frames/viewsource-xml-expected.txt b/LayoutTests/fast/frames/viewsource-xml-expected.txt
new file mode 100644 (file)
index 0000000..084b70f
--- /dev/null
@@ -0,0 +1,6 @@
+
+
+--------
+Frame: '<!--framePath //<!--frame0-->-->'
+--------
+<?xml version="1.0"?><div><section/></div>
diff --git a/LayoutTests/fast/frames/viewsource-xml.html b/LayoutTests/fast/frames/viewsource-xml.html
new file mode 100644 (file)
index 0000000..7fa69ce
--- /dev/null
@@ -0,0 +1,10 @@
+<!DOCTYPE html>\r
+\r
+<script>\r
+if (window.testRunner) {\r
+    testRunner.dumpAsText();\r
+    testRunner.dumpChildFramesAsText();\r
+}\r
+</script>\r
+\r
+<iframe viewsource src='data:text/html,<?xml version="1.0"?><div><section/></div>'></iframe>\r