LayoutTests/ChangeLog

 12011-08-17 Ryosuke Niwa <rniwa@webkit.org>
 2
 3 dump-as-markup conversion: editing/pasteboard/testcase-9507.html
 4 https://bugs.webkit.org/show_bug.cgi?id=66448
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 Converted the test.
 9
 10 * editing/pasteboard/testcase-9507-expected.txt: Added.
 11 * editing/pasteboard/testcase-9507.html:
 12 * platform/chromium-linux/editing/pasteboard/testcase-9507-expected.png: Removed.
 13 * platform/chromium-win/editing/pasteboard/testcase-9507-expected.png: Removed.
 14 * platform/chromium-win/editing/pasteboard/testcase-9507-expected.txt: Removed.
 15 * platform/gtk/editing/pasteboard/testcase-9507-expected.png: Removed.
 16 * platform/gtk/editing/pasteboard/testcase-9507-expected.txt: Removed.
 17 * platform/mac-leopard/editing/pasteboard/testcase-9507-expected.png: Removed.
 18 * platform/mac/editing/pasteboard/testcase-9507-expected.png: Removed.
 19 * platform/mac/editing/pasteboard/testcase-9507-expected.txt: Removed.
 20 * platform/qt/editing/pasteboard/testcase-9507-expected.txt: Removed.
 21
1222011-08-17 Tony Chang <tony@chromium.org>
223
324 [chromium] remove stale result and mark 3 new authentication tests as
93274

LayoutTests/editing/pasteboard/testcase-9507-expected.txt

 1When copying some text, under certain circumstances, empty style (or font) tags are created. This test checks that there is no empty <font> tag after 'foo' and before 'bar'.
 2
 3After copy:
 4| "
 5"
 6| <div>
 7| class="editing"
 8| id="test"
 9| "
 10<#selection-anchor>foo
 11"
 12| <div>
 13| style="color: rgb(255, 0, 0);"
 14| "
 15"
 16| <div>
 17| "bar<#selection-focus>"
 18| "
 19"
 20| "
 21"
 22| "
 23"
 24
 25After paste:
 26| "
 27"
 28| <div>
 29| class="editing"
 30| id="test"
 31| "foo"
 32| <div>
 33| style="color: rgb(255, 0, 0); "
 34| <div>
 35| "bar<#selection-caret>"
 36| <div>
 37| style="color: rgb(255, 0, 0);"
 38| "
 39"
 40| "
 41"
 42| "
 43"
0

LayoutTests/editing/pasteboard/testcase-9507.html

1 <html>
 1<html>
22<head>
3 <script>
4 if (window.layoutTestController)
5  layoutTestController.dumpEditingCallbacks();
6 </script>
7 
8 
93<style>
104.editing {
115 border: 2px solid red;

@@if (window.layoutTestController)
2115.scenario:first-line { font-weight: bold; margin-bottom: 16px;}
2216.expected-results:first-line { font-weight: bold }
2317</style>
24 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
25 
26 <script>
27 function editingTest() {
28  setSelectionCommand(document.getElementById("test"),0,document.getElementById("test"),5);
29  copyCommand();
30  pasteCommand();
31 }
32 
33 </script>
34 
35 <title>Editing Test</title>
36 </head>
 18<script src="../editing.js"></script>
 19<script src="../../resources/dump-as-markup.js"></script>
 20<title>Editing Test</title>
 21</head>
3722<body>
38 When copying some text, under certain circumstances, empty style (or font) tags are created. This test checks that there is no empty &lt;font&gt; tag after 'foo' and before 'bar'.
 23<p id="description">When copying some text, under certain circumstances, empty style (or font) tags are created. This test checks that there is no empty &lt;font&gt; tag after 'foo' and before 'bar'.</p>
3924<div contenteditable id="root">
4025<div id="test" class="editing">
4126foo

@@foo
4429</div>
4530</div>
4631</div>
47 
4832<script>
49 editingTest();
50 </script>
5133
 34Markup.description(document.getElementById('description').textContent);
 35
 36setSelectionCommand(document.getElementById("test"),0,document.getElementById("test"),5);
 37copyCommand();
 38Markup.dump('root', 'After copy');
 39
 40pasteCommand();
 41Markup.dump('root', 'After paste');
 42
 43</script>
5244</body>
5345</html>
93185

LayoutTests/platform/chromium-linux/editing/pasteboard/testcase-9507-expected.png

Image file removed

LayoutTests/platform/chromium-win/editing/pasteboard/testcase-9507-expected.png

Image file removed

LayoutTests/platform/chromium-win/editing/pasteboard/testcase-9507-expected.txt

1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
4 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
6 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
7 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
8 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
9 layer at (0,0) size 800x600
10  RenderView at (0,0) size 800x600
11 layer at (0,0) size 800x600
12  RenderBlock {HTML} at (0,0) size 800x600
13  RenderBody {BODY} at (8,8) size 784x584
14  RenderBlock (anonymous) at (0,0) size 784x40
15  RenderText {#text} at (0,0) size 749x39
16  text run at (0,0) width 749: "When copying some text, under certain circumstances, empty style (or font) tags are created. This test checks that there is no"
17  text run at (0,20) width 268: "empty <font> tag after 'foo' and before 'bar'."
18  RenderBlock {DIV} at (0,40) size 784x60
19  RenderBlock {DIV} at (0,0) size 784x60 [border: (2px solid #FF0000)]
20  RenderBlock (anonymous) at (2,2) size 780x28
21  RenderText {#text} at (0,0) size 32x27
22  text run at (0,0) width 32: "foo"
23  RenderBlock {DIV} at (2,30) size 780x28 [color=#FF0000]
24  RenderBlock {DIV} at (0,0) size 780x28
25  RenderText {#text} at (0,0) size 31x27
26  text run at (0,0) width 31: "bar"
27  RenderBlock (anonymous) at (2,58) size 780x0
28  RenderBlock {DIV} at (2,58) size 780x0 [color=#FF0000]
29 caret: position 3 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body
93185

LayoutTests/platform/gtk/editing/pasteboard/testcase-9507-expected.png

Image file removed

LayoutTests/platform/gtk/editing/pasteboard/testcase-9507-expected.txt

1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
4 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
6 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
7 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
8 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
9 layer at (0,0) size 800x600
10  RenderView at (0,0) size 800x600
11 layer at (0,0) size 800x600
12  RenderBlock {HTML} at (0,0) size 800x600
13  RenderBody {BODY} at (8,8) size 784x584
14  RenderBlock (anonymous) at (0,0) size 784x38
15  RenderText {#text} at (0,0) size 780x38
16  text run at (0,0) width 780: "When copying some text, under certain circumstances, empty style (or font) tags are created. This test checks that there is no"
17  text run at (0,19) width 277: "empty <font> tag after 'foo' and before 'bar'."
18  RenderBlock {DIV} at (0,38) size 784x60
19  RenderBlock {DIV} at (0,0) size 784x60 [border: (2px solid #FF0000)]
20  RenderBlock (anonymous) at (2,2) size 780x28
21  RenderText {#text} at (0,0) size 32x28
22  text run at (0,0) width 32: "foo"
23  RenderBlock {DIV} at (2,30) size 780x28 [color=#FF0000]
24  RenderBlock {DIV} at (0,0) size 780x28
25  RenderText {#text} at (0,0) size 31x28
26  text run at (0,0) width 31: "bar"
27  RenderBlock (anonymous) at (2,58) size 780x0
28  RenderBlock {DIV} at (2,58) size 780x0 [color=#FF0000]
29 caret: position 3 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body
93185

LayoutTests/platform/mac-leopard/editing/pasteboard/testcase-9507-expected.png

Image file removed

LayoutTests/platform/mac/editing/pasteboard/testcase-9507-expected.png

Image file removed

LayoutTests/platform/mac/editing/pasteboard/testcase-9507-expected.txt

1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
4 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
6 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
7 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
8 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
9 layer at (0,0) size 800x600
10  RenderView at (0,0) size 800x600
11 layer at (0,0) size 800x600
12  RenderBlock {HTML} at (0,0) size 800x600
13  RenderBody {BODY} at (8,8) size 784x584
14  RenderBlock (anonymous) at (0,0) size 784x36
15  RenderText {#text} at (0,0) size 780x36
16  text run at (0,0) width 780: "When copying some text, under certain circumstances, empty style (or font) tags are created. This test checks that there is no"
17  text run at (0,18) width 277: "empty <font> tag after 'foo' and before 'bar'."
18  RenderBlock {DIV} at (0,36) size 784x60
19  RenderBlock {DIV} at (0,0) size 784x60 [border: (2px solid #FF0000)]
20  RenderBlock (anonymous) at (2,2) size 780x28
21  RenderText {#text} at (0,0) size 32x28
22  text run at (0,0) width 32: "foo"
23  RenderBlock {DIV} at (2,30) size 780x28 [color=#FF0000]
24  RenderBlock {DIV} at (0,0) size 780x28
25  RenderText {#text} at (0,0) size 31x28
26  text run at (0,0) width 31: "bar"
27  RenderBlock (anonymous) at (2,58) size 780x0
28  RenderBlock {DIV} at (2,58) size 780x0 [color=#FF0000]
29 caret: position 3 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body
93185

LayoutTests/platform/qt/editing/pasteboard/testcase-9507-expected.txt

1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
4 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
6 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
7 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
8 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
9 layer at (0,0) size 800x600
10  RenderView at (0,0) size 800x600
11 layer at (0,0) size 800x600
12  RenderBlock {HTML} at (0,0) size 800x600
13  RenderBody {BODY} at (8,8) size 784x584
14  RenderBlock (anonymous) at (0,0) size 784x44
15  RenderText {#text} at (0,0) size 764x44
16  text run at (0,0) width 764: "When copying some text, under certain circumstances, empty style (or font) tags are created. This test checks that"
17  text run at (0,22) width 376: "there is no empty <font> tag after 'foo' and before 'bar'."
18  RenderBlock {DIV} at (0,44) size 784x70
19  RenderBlock {DIV} at (0,0) size 784x70 [border: (2px solid #FF0000)]
20  RenderBlock (anonymous) at (2,2) size 780x33
21  RenderText {#text} at (0,0) size 32x33
22  text run at (0,0) width 32: "foo"
23  RenderBlock {DIV} at (2,35) size 780x33 [color=#FF0000]
24  RenderBlock {DIV} at (0,0) size 780x33
25  RenderText {#text} at (0,0) size 36x33
26  text run at (0,0) width 36: "bar"
27  RenderBlock (anonymous) at (2,68) size 780x0
28  RenderBlock {DIV} at (2,68) size 780x0 [color=#FF0000]
29 caret: position 3 of child 0 {#text} of child 0 {DIV} of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body
93185