Commit 8cee4de8 authored by rniwa@webkit.org's avatar rniwa@webkit.org

Dump-as-markup conversion: editing/pasteboard/5368833.html

https://bugs.webkit.org/show_bug.cgi?id=66416

Reviewed by Kent Tamura.

Converted the test and also renamed the test to a more descriptive name.

* editing/pasteboard/5368833.html: Removed.
* editing/pasteboard/paste-blockquote-and-paragraph-break-expected.txt: Added.
* editing/pasteboard/paste-blockquote-and-paragraph-break.html: Copied from LayoutTests/editing/pasteboard/5368833.html.
* platform/chromium-linux/editing/pasteboard/5368833-expected.png: Removed.
* platform/chromium-win/editing/pasteboard/5368833-expected.png: Removed.
* platform/chromium-win/editing/pasteboard/5368833-expected.txt: Removed.
* platform/gtk/editing/pasteboard/5368833-expected.txt: Removed.
* platform/mac-leopard/editing/pasteboard/5368833-expected.png: Removed.
* platform/mac/editing/pasteboard/5368833-expected.png: Removed.
* platform/mac/editing/pasteboard/5368833-expected.txt: Removed.
* platform/qt/editing/pasteboard/5368833-expected.txt: Removed.


git-svn-id: svn://svn.chromium.org/blink/trunk@93323 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 89a4089c
2011-08-17 Ryosuke Niwa <rniwa@webkit.org>
Dump-as-markup conversion: editing/pasteboard/5368833.html
https://bugs.webkit.org/show_bug.cgi?id=66416
Reviewed by Kent Tamura.
Converted the test and also renamed the test to a more descriptive name.
* editing/pasteboard/5368833.html: Removed.
* editing/pasteboard/paste-blockquote-and-paragraph-break-expected.txt: Added.
* editing/pasteboard/paste-blockquote-and-paragraph-break.html: Copied from LayoutTests/editing/pasteboard/5368833.html.
* platform/chromium-linux/editing/pasteboard/5368833-expected.png: Removed.
* platform/chromium-win/editing/pasteboard/5368833-expected.png: Removed.
* platform/chromium-win/editing/pasteboard/5368833-expected.txt: Removed.
* platform/gtk/editing/pasteboard/5368833-expected.txt: Removed.
* platform/mac-leopard/editing/pasteboard/5368833-expected.png: Removed.
* platform/mac/editing/pasteboard/5368833-expected.png: Removed.
* platform/mac/editing/pasteboard/5368833-expected.txt: Removed.
* platform/qt/editing/pasteboard/5368833-expected.txt: Removed.
2011-08-18 Tony Chang <tony@chromium.org>
Update chromium gpu expected results after r93275.
We copy and paste a blockquoted paragraph plus a paragraph break.
The paragraph break shouldn't be inside the blockquote on paste.
You should see 'hello' (blockquoted), 'world' (not quoted, black text), 'hello' (blockquoted), empty paragraph.
See <rdar://problem/5368833<
Before paste:
| <br>
| <blockquote>
| id="blockquote"
| type="cite"
| "hello"
| <br>
| <br>
After paste:
| <blockquote>
| id="blockquote"
| type="cite"
| "hello"
| <br>
| <div>
| <#selection-caret>
| <br>
| <blockquote>
| id="blockquote"
| type="cite"
| "hello"
| <br>
| <br>
After inserting "world":
| <blockquote>
| id="blockquote"
| type="cite"
| "hello"
| <br>
| <div>
| "world<#selection-caret>"
| <br>
| <blockquote>
| id="blockquote"
| type="cite"
| "hello"
| <br>
| <br>
<!DOCTYPE html>
<head>
<style>
blockquote {
color: blue;
......@@ -6,11 +8,14 @@ blockquote {
margin: 0px;
}
</style>
<p>We copy and paste a blockquoted paragraph plus a paragraph break. The paragraph break shouldn't be inside the blockquote on paste.
You should see 'hello' (blockquoted), 'world' (not quoted, black text), 'hello' (blockquoted), empty paragraph.</p>
</head>
<body>
<p id="description">We copy and paste a blockquoted paragraph plus a paragraph break.
The paragraph break shouldn't be inside the blockquote on paste.
You should see 'hello' (blockquoted), 'world' (not quoted, black text), 'hello' (blockquoted), empty paragraph.
See &lt;rdar://problem/5368833&lt;</p>
<div id="div" contenteditable="true"><br><blockquote id="blockquote" type="cite">hello<br></blockquote><br></div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
div = document.getElementById("div");
blockquote = document.getElementById("blockquote");
......@@ -18,6 +23,14 @@ sel = window.getSelection();
sel.setBaseAndExtent(blockquote, 0, div, 2);
document.execCommand("Copy");
sel.setPosition(div, 0);
Markup.description(document.getElementById('description').textContent);
Markup.dump(div, 'Before paste');
document.execCommand("Paste");
Markup.dump(div, 'After paste');
document.execCommand("InsertHTML", false, "world");
Markup.dump(div, 'After inserting "world"');
</script>
</body>
</html>
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 784x584
RenderBlock {P} at (0,0) size 784x40
RenderText {#text} at (0,0) size 779x39
text run at (0,0) width 425: "We copy and paste a blockquoted paragraph plus a paragraph break. "
text run at (425,0) width 354: "The paragraph break shouldn't be inside the blockquote on"
text run at (0,20) width 40: "paste. "
text run at (40,20) width 662: "You should see 'hello' (blockquoted), 'world' (not quoted, black text), 'hello' (blockquoted), empty paragraph."
RenderBlock {DIV} at (0,56) size 784x80
RenderBlock {BLOCKQUOTE} at (0,0) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
RenderText {#text} at (7,0) size 28x19
text run at (7,0) width 28: "hello"
RenderBR {BR} at (35,15) size 0x0
RenderBlock (anonymous) at (0,20) size 784x0
RenderBlock {DIV} at (0,20) size 784x20
RenderText {#text} at (0,0) size 35x19
text run at (0,0) width 35: "world"
RenderBlock {BLOCKQUOTE} at (0,40) size 784x20 [color=#0000FF] [border: (2px solid #0000FF)]
RenderText {#text} at (7,0) size 28x19
text run at (7,0) width 28: "hello"
RenderBR {BR} at (35,15) size 0x0
RenderBlock (anonymous) at (0,60) size 784x20
RenderBR {BR} at (0,0) size 0x19
caret: position 5 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
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 784x584
RenderBlock {P} at (0,0) size 784x38
RenderText {#text} at (0,0) size 784x38
text run at (0,0) width 435: "We copy and paste a blockquoted paragraph plus a paragraph break. "
text run at (435,0) width 349: "The paragraph break shouldn't be inside the blockquote"
text run at (0,19) width 60: "on paste. "
text run at (60,19) width 687: "You should see 'hello' (blockquoted), 'world' (not quoted, black text), 'hello' (blockquoted), empty paragraph."
RenderBlock {DIV} at (0,54) size 784x76
RenderBlock {BLOCKQUOTE} at (0,0) size 784x19 [color=#0000FF] [border: (2px solid #0000FF)]
RenderText {#text} at (7,0) size 31x19
text run at (7,0) width 31: "hello"
RenderBR {BR} at (38,15) size 0x0
RenderBlock (anonymous) at (0,19) size 784x0
RenderBlock {DIV} at (0,19) size 784x19
RenderText {#text} at (0,0) size 37x19
text run at (0,0) width 37: "world"
RenderBlock {BLOCKQUOTE} at (0,38) size 784x19 [color=#0000FF] [border: (2px solid #0000FF)]
RenderText {#text} at (7,0) size 31x19
text run at (7,0) width 31: "hello"
RenderBR {BR} at (38,15) size 0x0
RenderBlock (anonymous) at (0,57) size 784x19
RenderBR {BR} at (0,0) size 0x19
caret: position 5 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
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 784x584
RenderBlock {P} at (0,0) size 784x36
RenderText {#text} at (0,0) size 784x36
text run at (0,0) width 435: "We copy and paste a blockquoted paragraph plus a paragraph break. "
text run at (435,0) width 349: "The paragraph break shouldn't be inside the blockquote"
text run at (0,18) width 60: "on paste. "
text run at (60,18) width 687: "You should see 'hello' (blockquoted), 'world' (not quoted, black text), 'hello' (blockquoted), empty paragraph."
RenderBlock {DIV} at (0,52) size 784x72
RenderBlock {BLOCKQUOTE} at (0,0) size 784x18 [color=#0000FF] [border: (2px solid #0000FF)]
RenderText {#text} at (7,0) size 31x18
text run at (7,0) width 31: "hello"
RenderBR {BR} at (38,14) size 0x0
RenderBlock (anonymous) at (0,18) size 784x0
RenderBlock {DIV} at (0,18) size 784x18
RenderText {#text} at (0,0) size 37x18
text run at (0,0) width 37: "world"
RenderBlock {BLOCKQUOTE} at (0,36) size 784x18 [color=#0000FF] [border: (2px solid #0000FF)]
RenderText {#text} at (7,0) size 31x18
text run at (7,0) width 31: "hello"
RenderBR {BR} at (38,14) size 0x0
RenderBlock (anonymous) at (0,54) size 784x18
RenderBR {BR} at (0,0) size 0x18
caret: position 5 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
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 784x584
RenderBlock {P} at (0,0) size 784x66
RenderText {#text} at (0,0) size 781x66
text run at (0,0) width 478: "We copy and paste a blockquoted paragraph plus a paragraph break. "
text run at (478,0) width 303: "The paragraph break shouldn't be inside the"
text run at (0,22) width 143: "blockquote on paste. "
text run at (143,22) width 611: "You should see 'hello' (blockquoted), 'world' (not quoted, black text), 'hello' (blockquoted),"
text run at (0,44) width 123: "empty paragraph."
RenderBlock {DIV} at (0,82) size 784x88
RenderBlock {BLOCKQUOTE} at (0,0) size 784x22 [color=#0000FF] [border: (2px solid #0000FF)]
RenderText {#text} at (7,0) size 32x22
text run at (7,0) width 32: "hello"
RenderBR {BR} at (39,16) size 0x0
RenderBlock (anonymous) at (0,22) size 784x0
RenderBlock {DIV} at (0,22) size 784x22
RenderText {#text} at (0,0) size 40x22
text run at (0,0) width 40: "world"
RenderBlock {BLOCKQUOTE} at (0,44) size 784x22 [color=#0000FF] [border: (2px solid #0000FF)]
RenderText {#text} at (7,0) size 32x22
text run at (7,0) width 32: "hello"
RenderBR {BR} at (39,16) size 0x0
RenderBlock (anonymous) at (0,66) size 784x22
RenderBR {BR} at (0,0) size 0x22
caret: position 5 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment