| <!DOCTYPE html> |
| <html> |
| <body style="-webkit-user-modify: read-write"> |
| <p> |
| Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=50012">http://bugs.webkit.org/show_bug.cgi?id=50012</a> |
| Moving cursor down in table cycles at the end of a row</i> |
| </p> |
| <table id="table"><tr><td id="target">Cursor should be at the end</td></tr></table> |
| <div style="-webkit-user-modify: read-only"> |
| <script src=../editing.js></script> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| |
| var target = document.getElementById("target"); |
| getSelection().setBaseAndExtent(target.firstChild, 0, target.firstChild, 0); |
| for (var i=0; i < 2; i++) |
| moveSelectionForwardByLineCommand(); |
| |
| document.write(getSelection().baseOffset == 4 ? "PASS" : "FAIL: selection.baseOffset = " + getSelection().baseOffset); |
| </script> |
| </div> |
| </body> |
| </html> |
| |