Reviewed by Eric Seidel.
editing/pasteboard/5027857.html should be renamed and converted to a dump-as-markup test
https://bugs.webkit.org/show_bug.cgi?id=61602
Renamed 5027857.html to paste-code-in-pre.html and converted it to a dump-as-markup test.
* editing/pasteboard/5027857.html: Removed.
* editing/pasteboard/paste-code-in-pre-expected.txt: Added.
* editing/pasteboard/paste-code-in-pre.html: Copied from LayoutTests/editing/pasteboard/5027857.html.
* platform/chromium-linux/editing/pasteboard/5027857-expected.png: Removed.
* platform/chromium-win/editing/pasteboard/5027857-expected.png: Removed.
* platform/chromium-win/editing/pasteboard/5027857-expected.txt: Removed.
* platform/chromium-win/editing/pasteboard/paste-code-in-pre-expected.txt: Added.
* platform/gtk/editing/pasteboard/5027857-expected.png: Removed.
* platform/gtk/editing/pasteboard/5027857-expected.txt: Removed.
* platform/mac-leopard/editing/pasteboard/5027857-expected.png: Removed.
* platform/mac/editing/pasteboard/5027857-expected.png: Removed.
* platform/mac/editing/pasteboard/5027857-expected.txt: Removed.
* platform/qt/editing/pasteboard/5027857-expected.txt: Removed.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87468
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-05-26 Ryosuke Niwa <rniwa@webkit.org>
+
+ Reviewed by Eric Seidel.
+
+ editing/pasteboard/5027857.html should be renamed and converted to a dump-as-markup test
+ https://bugs.webkit.org/show_bug.cgi?id=61602
+
+ Renamed 5027857.html to paste-code-in-pre.html and converted it to a dump-as-markup test.
+
+ * editing/pasteboard/5027857.html: Removed.
+ * editing/pasteboard/paste-code-in-pre-expected.txt: Added.
+ * editing/pasteboard/paste-code-in-pre.html: Copied from LayoutTests/editing/pasteboard/5027857.html.
+ * platform/chromium-linux/editing/pasteboard/5027857-expected.png: Removed.
+ * platform/chromium-win/editing/pasteboard/5027857-expected.png: Removed.
+ * platform/chromium-win/editing/pasteboard/5027857-expected.txt: Removed.
+ * platform/chromium-win/editing/pasteboard/paste-code-in-pre-expected.txt: Added.
+ * platform/gtk/editing/pasteboard/5027857-expected.png: Removed.
+ * platform/gtk/editing/pasteboard/5027857-expected.txt: Removed.
+ * platform/mac-leopard/editing/pasteboard/5027857-expected.png: Removed.
+ * platform/mac/editing/pasteboard/5027857-expected.png: Removed.
+ * platform/mac/editing/pasteboard/5027857-expected.txt: Removed.
+ * platform/qt/editing/pasteboard/5027857-expected.txt: Removed.
+
2011-05-26 Annie Sullivan <sullivan@chromium.org>
Reviewed by Ryosuke Niwa.
+++ /dev/null
-<p>This tests a bug when copying HTML markup inside <pre> tags. When pasted, this content would appear as the rendered form of that markup. You should see markup in the editable region below.</p>
-<pre id="pre" contenteditable="true"><input type='button'>foo<br>bar<b>baz</b></pre>
-
-<script>
-var pre = document.getElementById("pre");
-pre.focus();
-document.execCommand("SelectAll");
-document.execCommand("Cut");
-document.execCommand("Paste");
-</script>
--- /dev/null
+This tests a bug when copying HTML markup inside <pre> tags. When pasted, this content would appear as the rendered form of that markup.
+You should see markup in the editable region below. See <rdar://5027857>.
+| <pre>
+| contenteditable="true"
+| id="pre"
+| <span>
+| class="Apple-style-span"
+| style="font-family: Times; white-space: normal; "
+| <pre>
+| contenteditable="true"
+| id="pre"
+| "<input type='button'>foo<br>bar<b>baz</b><#selection-caret>"
--- /dev/null
+<!DOCTYPE html>
+<html>
+<body>
+<p>This tests a bug when copying HTML markup inside <pre> tags. When pasted, this content would appear as the rendered form of that markup.
+You should see markup in the editable region below. See <rdar://5027857>.</p>
+<div><pre id="pre" contenteditable="true"><input type='button'>foo<br>bar<b>baz</b></pre></div>
+<script src="../../resources/dump-as-markup.js"></script>
+<script>
+
+var pre = document.getElementById("pre");
+pre.focus();
+document.execCommand("SelectAll");
+document.execCommand("Cut");
+document.execCommand("Paste");
+
+Markup.description(document.getElementsByTagName('p')[0].textContent);
+Markup.dump(pre.parentNode);
+
+</script>
+</body>
+</html>
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x579
- RenderBlock {P} at (0,0) size 784x40
- RenderText {#text} at (0,0) size 781x39
- text run at (0,0) width 393: "This tests a bug when copying HTML markup inside <pre> tags. "
- text run at (393,0) width 388: "When pasted, this content would appear as the rendered form of"
- text run at (0,20) width 80: "that markup. "
- text run at (80,20) width 316: "You should see markup in the editable region below."
- RenderBlock {PRE} at (0,56) size 784x16
- RenderBlock (anonymous) at (0,0) size 784x0
- RenderInline {SPAN} at (0,0) size 0x0
- RenderBlock (anonymous) at (0,0) size 784x16
- RenderBlock {PRE} at (0,0) size 784x16
- RenderText {#text} at (0,0) size 328x16
- text run at (0,0) width 328: "<input type='button'>foo<br>bar<b>baz</b>"
- RenderBlock (anonymous) at (0,29) size 784x0
- RenderInline {SPAN} at (0,0) size 0x0
-caret: position 41 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 2 {PRE} of body
--- /dev/null
+This tests a bug when copying HTML markup inside <pre> tags. When pasted, this content would appear as the rendered form of that markup.
+You should see markup in the editable region below. See <rdar://5027857>.
+| <pre>
+| contenteditable="true"
+| id="pre"
+| <span>
+| class="Apple-style-span"
+| style="font-family: 'times new roman'; white-space: normal; "
+| <pre>
+| contenteditable="true"
+| id="pre"
+| "<input type='button'>foo<br>bar<b>baz</b><#selection-caret>"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x579
- RenderBlock {P} at (0,0) size 784x38
- RenderText {#text} at (0,0) size 765x38
- text run at (0,0) width 414: "This tests a bug when copying HTML markup inside <pre> tags. "
- text run at (414,0) width 351: "When pasted, this content would appear as the rendered"
- text run at (0,19) width 134: "form of that markup. "
- text run at (134,19) width 333: "You should see markup in the editable region below."
- RenderBlock {PRE} at (0,54) size 784x15
- RenderBlock (anonymous) at (0,0) size 784x0
- RenderInline {SPAN} at (0,0) size 0x0
- RenderBlock (anonymous) at (0,0) size 784x15
- RenderBlock {PRE} at (0,0) size 784x15
- RenderText {#text} at (0,0) size 328x15
- text run at (0,0) width 328: "<input type='button'>foo<br>bar<b>baz</b>"
- RenderBlock (anonymous) at (0,28) size 784x0
- RenderInline {SPAN} at (0,0) size 0x0
-caret: position 41 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 2 {PRE} of body
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x579
- RenderBlock {P} at (0,0) size 784x36
- RenderText {#text} at (0,0) size 765x36
- text run at (0,0) width 414: "This tests a bug when copying HTML markup inside <pre> tags. "
- text run at (414,0) width 351: "When pasted, this content would appear as the rendered"
- text run at (0,18) width 134: "form of that markup. "
- text run at (134,18) width 333: "You should see markup in the editable region below."
- RenderBlock {PRE} at (0,52) size 784x15
- RenderBlock (anonymous) at (0,0) size 784x0
- RenderInline {SPAN} at (0,0) size 0x0
- RenderBlock (anonymous) at (0,0) size 784x15
- RenderBlock {PRE} at (0,0) size 784x15
- RenderText {#text} at (0,0) size 328x15
- text run at (0,0) width 328: "<input type='button'>foo<br>bar<b>baz</b>"
- RenderBlock (anonymous) at (0,28) size 784x0
- RenderInline {SPAN} at (0,0) size 0x0
-caret: position 41 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 2 {PRE} of body
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x579
- RenderBlock {P} at (0,0) size 784x44
- RenderText {#text} at (0,0) size 758x44
- text run at (0,0) width 442: "This tests a bug when copying HTML markup inside <pre> tags. "
- text run at (442,0) width 316: "When pasted, this content would appear as the"
- text run at (0,22) width 214: "rendered form of that markup. "
- text run at (214,22) width 355: "You should see markup in the editable region below."
- RenderBlock {PRE} at (0,60) size 784x17
- RenderBlock (anonymous) at (0,0) size 784x0
- RenderInline {SPAN} at (0,0) size 0x0
- RenderBlock (anonymous) at (0,0) size 784x17
- RenderBlock {PRE} at (0,0) size 784x17
- RenderText {#text} at (0,0) size 255x17
- text run at (0,0) width 255: "<input type='button'>foo<br>bar<b>baz</b>"
- RenderBlock (anonymous) at (0,30) size 784x0
- RenderInline {SPAN} at (0,0) size 0x0
-caret: position 41 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 2 {PRE} of body