Title: [118561] trunk/LayoutTests
- Revision
- 118561
- Author
- [email protected]
- Date
- 2012-05-25 14:14:47 -0700 (Fri, 25 May 2012)
Log Message
Pasting into contenteditable table cell pastes into adjacent cell instead.
https://bugs.webkit.org/show_bug.cgi?id=53933
Patch by Sukolsak Sakshuwong <[email protected]> on 2012-05-25
Reviewed by Darin Adler.
This bug has been fixed. Add a test to make sure that it won't regress.
* editing/pasteboard/paste-into-table-cell-2-expected.txt: Added.
* editing/pasteboard/paste-into-table-cell-2.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (118560 => 118561)
--- trunk/LayoutTests/ChangeLog 2012-05-25 21:09:41 UTC (rev 118560)
+++ trunk/LayoutTests/ChangeLog 2012-05-25 21:14:47 UTC (rev 118561)
@@ -1,3 +1,15 @@
+2012-05-25 Sukolsak Sakshuwong <[email protected]>
+
+ Pasting into contenteditable table cell pastes into adjacent cell instead.
+ https://bugs.webkit.org/show_bug.cgi?id=53933
+
+ Reviewed by Darin Adler.
+
+ This bug has been fixed. Add a test to make sure that it won't regress.
+
+ * editing/pasteboard/paste-into-table-cell-2-expected.txt: Added.
+ * editing/pasteboard/paste-into-table-cell-2.html: Added.
+
2012-05-25 Joshua Bell <[email protected]>
[Chromium] Remove 6 incorrect baselines from http://trac.webkit.org/changeset/117821/
Added: trunk/LayoutTests/editing/pasteboard/paste-into-table-cell-2-expected.txt (0 => 118561)
--- trunk/LayoutTests/editing/pasteboard/paste-into-table-cell-2-expected.txt (rev 0)
+++ trunk/LayoutTests/editing/pasteboard/paste-into-table-cell-2-expected.txt 2012-05-25 21:14:47 UTC (rev 118561)
@@ -0,0 +1,12 @@
+This tests pasting into a table cell.
+To manually run the test, copy some text and paste it after "1".
+The content should be pasted into the first cell, not the second cell.
+| <table>
+| border="1"
+| <tbody>
+| <tr>
+| <td>
+| id="firstCell"
+| "1 2<#selection-caret>"
+| <td>
+| "3"
Added: trunk/LayoutTests/editing/pasteboard/paste-into-table-cell-2.html (0 => 118561)
--- trunk/LayoutTests/editing/pasteboard/paste-into-table-cell-2.html (rev 0)
+++ trunk/LayoutTests/editing/pasteboard/paste-into-table-cell-2.html 2012-05-25 21:14:47 UTC (rev 118561)
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<body>
+<p>This tests pasting into a table cell.
+To manually run the test, copy some text and paste it after "1".
+The content should be pasted into the first cell, not the second cell.</p>
+<div id="result"><table border="1"><tbody><tr><td id="firstCell">1</td><td>3</td></tr></tbody></table></div>
+<script src=""
+<script>
+Markup.description(document.querySelector('p').textContent);
+
+document.designMode = 'on';
+
+var firstCell = document.getElementById('firstCell');
+window.getSelection().setPosition(firstCell, 1);
+document.execCommand("insertHTML", false, "<div> 2</div>");
+
+Markup.dump('result')
+</script>
+</body>
+</html>
\ No newline at end of file
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes