Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / shrink-selection-after-shift-pagedown.html
blob6ac93158fbf46e5acedb7791bfcd0bc8eefa68a4
1 <html>
2 <head>
3 <script>
4 function runTest()
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 var ta = document.getElementById('ta');
10 ta.focus();
11 ta.setSelectionRange(4, 16);
13 var lastSelectedLine;
14 if (window.eventSender) {
15 eventSender.keyDown("pageDown",["shiftKey"]);
16 lastSelectedLine = (ta.value).substring(ta.selectionEnd - 4, ta.selectionEnd);
17 eventSender.keyDown("upArrow",["shiftKey"]);
20 var result;
21 var selectedText = (ta.value).substring(ta.selectionStart, ta.selectionEnd);
22 if ((selectedText.indexOf(lastSelectedLine) == -1) && (selectedText.indexOf('L01') == -1))
23 result = "SUCCESS: The selection shrunk correctly";
24 else
25 result = "SUCCESS: The selected text is \"" + selectedText + "\".";
26 document.getElementById("result").firstChild.data = result;
28 </script>
29 </head>
30 <body onload="runTest()">
31 <p>This tests shrinking a selection with shift-up after extending it with shift-PageDown.</p>
32 <p style="color:green">
33 This test does not run interactively.
34 It uses the event sender to do mouse clicks.
35 To run it manually, press shift-PagDown. Then press shift-up.
36 The selection should shrink by one line from the bottom after shift-up.
37 </p>
38 <textarea rows=10 id="ta">
39 L01
40 L02
41 L03
42 L04
43 L05
44 L06
45 L07
46 L08
47 L09
48 L10
49 L11
50 L12
51 L13
52 L14
53 L15
54 L16
55 </textarea>
56 <p id="result">TEST HAS NOT RUN</p>
57 </body>