Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / move-by-line-cycles-in-table.html
blob27fc902abf6bbda0b5e0d4f2314a77b2ab618d7b
1 <!DOCTYPE html>
2 <html>
3 <body style="-webkit-user-modify: read-write">
4 <p>
5 Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=50012">http://bugs.webkit.org/show_bug.cgi?id=50012</a>
6 Moving cursor down in table cycles at the end of a row</i>
7 </p>
8 <table id="table"><tr><td id="target">Cursor should be at the end</td></tr></table>
9 <div style="-webkit-user-modify: read-only">
10 <script src=../editing.js></script>
11 <script>
12 if (window.testRunner)
13 testRunner.dumpAsText();
15 var target = document.getElementById("target");
16 getSelection().setBaseAndExtent(target.firstChild, 0, target.firstChild, 0);
17 for (var i=0; i < 2; i++)
18 moveSelectionForwardByLineCommand();
20 document.write(getSelection().baseOffset == 4 ? "PASS" : "FAIL: selection.baseOffset = " + getSelection().baseOffset);
21 </script>
22 </div>
23 </body>
24 </html>