Commit 69916062 authored by rniwa@webkit.org's avatar rniwa@webkit.org

2010-08-19 Ryosuke Niwa <rniwa@webkit.org>

        Reviewed by Tony Chang.

        dumpAsMarkup conversion: editing/pasteboard/4242293-1.html and editing/pasteboard/copy-paste-bidi.html
        https://bugs.webkit.org/show_bug.cgi?id=44220

        Converted the tests.

        * editing/pasteboard/4242293-1-expected.txt: Added.
        * editing/pasteboard/4242293-1.html:
        * editing/pasteboard/copy-paste-bidi-expected.txt: Added.
        * editing/pasteboard/copy-paste-bidi.html:
        * platform/chromium-linux/editing/pasteboard/4242293-1-expected.checksum: Removed.
        * platform/chromium-linux/editing/pasteboard/4242293-1-expected.png: Removed.
        * platform/chromium-linux/editing/pasteboard/copy-paste-bidi-expected.checksum: Removed.
        * platform/chromium-linux/editing/pasteboard/copy-paste-bidi-expected.png: Removed.
        * platform/chromium-win/editing/pasteboard/4242293-1-expected.checksum: Removed.
        * platform/chromium-win/editing/pasteboard/4242293-1-expected.png: Removed.
        * platform/chromium-win/editing/pasteboard/4242293-1-expected.txt: Removed.
        * platform/chromium-win/editing/pasteboard/copy-paste-bidi-expected.checksum: Removed.
        * platform/chromium-win/editing/pasteboard/copy-paste-bidi-expected.png: Removed.
        * platform/chromium-win/editing/pasteboard/copy-paste-bidi-expected.txt: Removed.
        * platform/mac-leopard/editing/pasteboard/4242293-1-expected.checksum: Removed.
        * platform/mac-leopard/editing/pasteboard/4242293-1-expected.png: Removed.
        * platform/mac-leopard/editing/pasteboard/copy-paste-bidi-expected.checksum: Removed.
        * platform/mac-leopard/editing/pasteboard/copy-paste-bidi-expected.png: Removed.
        * platform/mac/editing/pasteboard/4242293-1-expected.checksum: Removed.
        * platform/mac/editing/pasteboard/4242293-1-expected.png: Removed.
        * platform/mac/editing/pasteboard/4242293-1-expected.txt: Removed.
        * platform/mac/editing/pasteboard/copy-paste-bidi-expected.checksum: Removed.
        * platform/mac/editing/pasteboard/copy-paste-bidi-expected.png: Removed.
        * platform/mac/editing/pasteboard/copy-paste-bidi-expected.txt: Removed.
        * platform/qt/editing/pasteboard/4242293-1-expected.txt: Removed.
        * platform/qt/editing/pasteboard/copy-paste-bidi-expected.txt: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65721 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7d8bd2de
2010-08-19 Ryosuke Niwa <rniwa@webkit.org>
Reviewed by Tony Chang.
dumpAsMarkup conversion: editing/pasteboard/4242293-1.html and editing/pasteboard/copy-paste-bidi.html
https://bugs.webkit.org/show_bug.cgi?id=44220
Converted the tests.
* editing/pasteboard/4242293-1-expected.txt: Added.
* editing/pasteboard/4242293-1.html:
* editing/pasteboard/copy-paste-bidi-expected.txt: Added.
* editing/pasteboard/copy-paste-bidi.html:
* platform/chromium-linux/editing/pasteboard/4242293-1-expected.checksum: Removed.
* platform/chromium-linux/editing/pasteboard/4242293-1-expected.png: Removed.
* platform/chromium-linux/editing/pasteboard/copy-paste-bidi-expected.checksum: Removed.
* platform/chromium-linux/editing/pasteboard/copy-paste-bidi-expected.png: Removed.
* platform/chromium-win/editing/pasteboard/4242293-1-expected.checksum: Removed.
* platform/chromium-win/editing/pasteboard/4242293-1-expected.png: Removed.
* platform/chromium-win/editing/pasteboard/4242293-1-expected.txt: Removed.
* platform/chromium-win/editing/pasteboard/copy-paste-bidi-expected.checksum: Removed.
* platform/chromium-win/editing/pasteboard/copy-paste-bidi-expected.png: Removed.
* platform/chromium-win/editing/pasteboard/copy-paste-bidi-expected.txt: Removed.
* platform/mac-leopard/editing/pasteboard/4242293-1-expected.checksum: Removed.
* platform/mac-leopard/editing/pasteboard/4242293-1-expected.png: Removed.
* platform/mac-leopard/editing/pasteboard/copy-paste-bidi-expected.checksum: Removed.
* platform/mac-leopard/editing/pasteboard/copy-paste-bidi-expected.png: Removed.
* platform/mac/editing/pasteboard/4242293-1-expected.checksum: Removed.
* platform/mac/editing/pasteboard/4242293-1-expected.png: Removed.
* platform/mac/editing/pasteboard/4242293-1-expected.txt: Removed.
* platform/mac/editing/pasteboard/copy-paste-bidi-expected.checksum: Removed.
* platform/mac/editing/pasteboard/copy-paste-bidi-expected.png: Removed.
* platform/mac/editing/pasteboard/copy-paste-bidi-expected.txt: Removed.
* platform/qt/editing/pasteboard/4242293-1-expected.txt: Removed.
* platform/qt/editing/pasteboard/copy-paste-bidi-expected.txt: Removed.
2010-08-19 Martin Robinson <mrobinson@igalia.com>
[GTK] r65681 broke a couple GTK+ a11y tests
......@@ -14,36 +14,20 @@ EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range fr
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
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 756x39
text run at (0,0) width 756: "This tests to make sure that createMarkup puts an interchange newline on the pasteboard for a selection ending at the end of a"
text run at (0,20) width 42: "block. "
text run at (42,20) width 352: "Both regions below should have contents that are identical."
RenderBlock {DIV} at (0,56) size 784x60
RenderBlock {DIV} at (0,0) size 784x40
RenderBlock {DIV} at (0,0) size 784x20
RenderText {#text} at (0,0) size 20x19
text run at (0,0) width 20: "foo"
RenderBlock (anonymous) at (0,20) size 784x20
RenderText {#text} at (0,0) size 20x19
text run at (0,0) width 20: "bar"
RenderBlock (anonymous) at (0,40) size 784x20
RenderText {#text} at (0,0) size 21x19
text run at (0,0) width 21: "baz"
RenderBlock {DIV} at (0,116) size 784x60
RenderBlock (anonymous) at (0,0) size 784x20
RenderText {#text} at (0,0) size 20x19
text run at (0,0) width 20: "foo"
RenderBlock {DIV} at (0,20) size 784x40
RenderBlock {DIV} at (0,0) size 784x20
RenderText {#text} at (0,0) size 20x19
text run at (0,0) width 20: "bar"
RenderBlock (anonymous) at (0,20) size 784x20
RenderText {#text} at (0,0) size 21x19
text run at (0,0) width 21: "baz"
caret: position 3 of child 1 {#text} of child 1 {DIV} of child 4 {DIV} of body
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
This test ensures that createMarkup puts an interchange newline on the pasteboard for a selection ending at the end of a block. Both regions below should be visually identical.
first region (bar and baz are copied):
| <div>
| <div>
| "foo"
| "bar"
| "baz"
second region (bar and baz are pasted):
| "foo"
| <div>
| <div>
| "bar"
| "baz<#selection-caret>"
<script src="../../resources/dump-as-markup.js"></script>
<div id="copy" contenteditable="true"><div><div>foo</div>bar</div>baz</div>
<div id="paste" contenteditable="true">foo</div>
<script>
if (window.layoutTestController)
layoutTestController.dumpEditingCallbacks();
</script>
<p>This tests to make sure that createMarkup puts an interchange newline on the pasteboard for a selection ending at the end of a block. Both regions below should have contents that are identical.</p>
<div id="copy" contenteditable="true"><div><div>foo</div>bar</div>baz</div>
<div id="paste" contenteditable="true">foo</div>
<script>
var sel = window.getSelection();
var e = document.getElementById("copy");
sel.setPosition(e, 0);
......@@ -20,4 +17,8 @@ e = document.getElementById("paste");
sel.setPosition(e, 0);
sel.modify("move", "forward", "word");
document.execCommand("Paste");
</script>
\ No newline at end of file
Markup.description('This test ensures that createMarkup puts an interchange newline on the pasteboard for a selection ending at the end of a block. Both regions below should be visually identical.')
Markup.dump('copy', 'first region (bar and baz are copied)');
Markup.dump('paste', 'second region (bar and baz are pasted)');
</script>
These tests to see if bidi text with a base writing direction of right to left is put onto the paste board in logical (DOM) order.
first test - before:
| "1234שדגכ:"
first test - after:
| "1234שדגכ:<#selection-caret>"
second test - before:
| "
"
| <div>
| "1234שדגכ:"
| "
"
| <div>
| style="direction: rtl;"
| "1234שדגכ:"
| "
"
second test - after:
| "
"
| <div>
| <div>
| "1234שדגכ:"
| <div>
| style="direction: rtl; "
| "1234שדגכ:<#selection-caret>"
| "
"
5cf18ed7a3b01c7e7bcf47cccf55043e
\ No newline at end of file
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 784x20
RenderText {#text} at (0,0) size 739x19
text run at (0,0) width 739: "These tests to see if bidi text with a base writing direction of right to left is put onto the paste board in logical (DOM) order."
RenderBlock {DIV} at (0,36) size 784x20
RenderText {#text} at (720,0) size 64x19
text run at (720,0) width 32 RTL: "\x{5E9}\x{5D3}\x{5D2}\x{5DB}:"
text run at (752,0) width 32: "1234"
RenderBlock {DIV} at (0,56) size 784x40
RenderBlock {DIV} at (0,0) size 784x40
RenderBlock {DIV} at (0,0) size 784x20
RenderText {#text} at (0,0) size 64x19
text run at (0,0) width 32: "1234"
text run at (32,0) width 29 RTL: "\x{5E9}\x{5D3}\x{5D2}\x{5DB}"
text run at (61,0) width 3: ":"
RenderBlock {DIV} at (0,20) size 784x20
RenderText {#text} at (720,0) size 64x19
text run at (720,0) width 32 RTL: "\x{5E9}\x{5D3}\x{5D2}\x{5DB}:"
text run at (752,0) width 32: "1234"
RenderBlock (anonymous) at (0,40) size 784x0
caret: position 9 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 4 {DIV} of body
4a373db0856bfb6a5d3652cce4fbabcd
\ No newline at end of file
9585a795a0da423b6c35218f532eaa28
\ No newline at end of file
EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
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 777x36
text run at (0,0) width 777: "This tests to make sure that createMarkup puts an interchange newline on the pasteboard for a selection ending at the end of"
text run at (0,18) width 54: "a block. "
text run at (54,18) width 371: "Both regions below should have contents that are identical."
RenderBlock {DIV} at (0,52) size 784x54
RenderBlock {DIV} at (0,0) size 784x36
RenderBlock {DIV} at (0,0) size 784x18
RenderText {#text} at (0,0) size 21x18
text run at (0,0) width 21: "foo"
RenderBlock (anonymous) at (0,18) size 784x18
RenderText {#text} at (0,0) size 20x18
text run at (0,0) width 20: "bar"
RenderBlock (anonymous) at (0,36) size 784x18
RenderText {#text} at (0,0) size 22x18
text run at (0,0) width 22: "baz"
RenderBlock {DIV} at (0,106) size 784x54
RenderBlock (anonymous) at (0,0) size 784x18
RenderText {#text} at (0,0) size 21x18
text run at (0,0) width 21: "foo"
RenderBlock {DIV} at (0,18) size 784x36
RenderBlock {DIV} at (0,0) size 784x18
RenderText {#text} at (0,0) size 20x18
text run at (0,0) width 20: "bar"
RenderBlock (anonymous) at (0,18) size 784x18
RenderText {#text} at (0,0) size 22x18
text run at (0,0) width 22: "baz"
caret: position 3 of child 1 {#text} of child 1 {DIV} of child 4 {DIV} of body
fb0dce6c27c34f0788125576084faf07
\ No newline at end of file
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 784x18
RenderText {#text} at (0,0) size 774x18
text run at (0,0) width 774: "These tests to see if bidi text with a base writing direction of right to left is put onto the paste board in logical (DOM) order."
RenderBlock {DIV} at (0,34) size 784x19
RenderText {#text} at (712,1) size 72x18
text run at (712,1) width 40 RTL: "\x{5E9}\x{5D3}\x{5D2}\x{5DB}:"
text run at (752,1) width 32: "1234"
RenderBlock {DIV} at (0,53) size 784x38
RenderBlock {DIV} at (0,0) size 784x38
RenderBlock {DIV} at (0,0) size 784x19
RenderText {#text} at (0,1) size 72x18
text run at (0,1) width 32: "1234"
text run at (32,1) width 36 RTL: "\x{5E9}\x{5D3}\x{5D2}\x{5DB}"
text run at (68,1) width 4: ":"
RenderBlock {DIV} at (0,19) size 784x19
RenderText {#text} at (712,1) size 72x18
text run at (712,1) width 40 RTL: "\x{5E9}\x{5D3}\x{5D2}\x{5DB}:"
text run at (752,1) width 32: "1234"
RenderBlock (anonymous) at (0,38) size 784x0
caret: position 9 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 4 {DIV} of body
EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
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 778x38
text run at (0,0) width 778: "This tests to make sure that createMarkup puts an interchange newline on the pasteboard for a selection ending at the end"
text run at (0,19) width 69: "of a block. "
text run at (69,19) width 373: "Both regions below should have contents that are identical."
RenderBlock {DIV} at (0,52) size 784x57
RenderBlock {DIV} at (0,0) size 784x38
RenderBlock {DIV} at (0,0) size 784x19
RenderText {#text} at (0,0) size 20x19
text run at (0,0) width 20: "foo"
RenderBlock (anonymous) at (0,19) size 784x19
RenderText {#text} at (0,0) size 21x19
text run at (0,0) width 21: "bar"
RenderBlock (anonymous) at (0,38) size 784x19
RenderText {#text} at (0,0) size 23x19
text run at (0,0) width 23: "baz"
RenderBlock {DIV} at (0,109) size 784x57
RenderBlock (anonymous) at (0,0) size 784x19
RenderText {#text} at (0,0) size 20x19
text run at (0,0) width 20: "foo"
RenderBlock {DIV} at (0,19) size 784x38
RenderBlock {DIV} at (0,0) size 784x19
RenderText {#text} at (0,0) size 21x19
text run at (0,0) width 21: "bar"
RenderBlock (anonymous) at (0,19) size 784x19
RenderText {#text} at (0,0) size 23x19
text run at (0,0) width 23: "baz"
caret: position 3 of child 1 {#text} of child 1 {DIV} of child 4 {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 784x42
RenderText {#text} at (0,0) size 780x42
text run at (0,0) width 780: "These tests to see if bidi text with a base writing direction of right to left is put onto the paste board in logical (DOM)"
text run at (0,21) width 42: "order."
RenderBlock {DIV} at (0,58) size 784x21
RenderText {#text} at (683,0) size 101x21
text run at (683,0) width 69 RTL: "\x{5E9}\x{5D3}\x{5D2}\x{5DB}:"
text run at (752,0) width 32: "1234"
RenderBlock {DIV} at (0,79) size 784x42
RenderBlock {DIV} at (0,0) size 784x42
RenderBlock {DIV} at (0,0) size 784x21
RenderText {#text} at (0,0) size 101x21
text run at (0,0) width 32: "1234"
text run at (32,0) width 64 RTL: "\x{5E9}\x{5D3}\x{5D2}\x{5DB}"
text run at (96,0) width 5: ":"
RenderBlock {DIV} at (0,21) size 784x21
RenderText {#text} at (683,0) size 101x21
text run at (683,0) width 69 RTL: "\x{5E9}\x{5D3}\x{5D2}\x{5DB}:"
text run at (752,0) width 32: "1234"
RenderBlock (anonymous) at (0,42) size 784x0
caret: position 9 of child 0 {#text} of child 1 {DIV} of child 1 {DIV} of child 4 {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