Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-text-option-delete.html
blobc25fbf6ab5221772a1044c9694e28b5d9be5415d
1 <input id="input" type="text" value="word another">
2 <p>Tests option-deleting a word. If the test succeeds, the word "word" should end up with a space after it.</p>
3 <script>
5 function sendDeleteWordKey()
7 var deleteWordModifiers;
8 if (navigator.userAgent.search(/\bMac OS X\b/) != -1)
9 deleteWordModifiers = ["altKey"];
10 else
11 deleteWordModifiers = ["ctrlKey"];
12 if (window.eventSender)
13 eventSender.keyDown("backspace", deleteWordModifiers);
16 var input = document.getElementById("input");
17 input.focus();
18 input.setSelectionRange(12, 12);
19 sendDeleteWordKey();
20 </script>