Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Side by Side Diff: LayoutTests/editing/deleting/delete-ligature-003.html

Issue 484353004: Test tidying: use "escape" and "backspace" with eventSender.keyDown() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More quoting consistency wibbles Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head> 2 <head>
3 <script src="../editing.js" language="javascript" type="text/javascript" ></script> 3 <script src="../editing.js" language="javascript" type="text/javascript" ></script>
4 <script language="javascript" type="text/javascript"> 4 <script language="javascript" type="text/javascript">
5 function log(str) { 5 function log(str) {
6 var li = document.createElement("li"); 6 var li = document.createElement("li");
7 li.appendChild(document.createTextNode(str)); 7 li.appendChild(document.createTextNode(str));
8 var console = document.getElementById("console"); 8 var console = document.getElementById("console");
9 console.appendChild(li); 9 console.appendChild(li);
10 } 10 }
11 function sendBackwardDeleteKey() { 11 function sendBackwardDeleteKey() {
12 if (window.eventSender) 12 if (window.eventSender)
13 eventSender.keyDown(String.fromCharCode(0x0008), null); 13 eventSender.keyDown("backspace", null);
14 } 14 }
15 function runTestOn(platform) { 15 function runTestOn(platform) {
16 var testarea = document.getElementById("test"); 16 var testarea = document.getElementById("test");
17 if (window.internals) 17 if (window.internals)
18 internals.settings.setEditingBehavior(platform); 18 internals.settings.setEditingBehavior(platform);
19 19
20 testarea.focus(); 20 testarea.focus();
21 moveSelectionForwardByCharacterCommand(); 21 moveSelectionForwardByCharacterCommand();
22 moveSelectionForwardByCharacterCommand(); 22 moveSelectionForwardByCharacterCommand();
23 sendBackwardDeleteKey(); 23 sendBackwardDeleteKey();
(...skipping 17 matching lines...) Expand all
41 <body> 41 <body>
42 <p>This test tests whether the undo command works when the BackSpace key deletes the last character of a ligature "&#x0E27;&#x0E31;".</p> 42 <p>This test tests whether the undo command works when the BackSpace key deletes the last character of a ligature "&#x0E27;&#x0E31;".</p>
43 <p>If this test succeeds, you can see "&#x0E27;&#x0E31;" (U+0E27,U+0E31) and a string "succeeded" for each platform below.</p> 43 <p>If this test succeeds, you can see "&#x0E27;&#x0E31;" (U+0E27,U+0E31) and a string "succeeded" for each platform below.</p>
44 <div id="test" contenteditable>&#x0E27;&#x0E31;</div> 44 <div id="test" contenteditable>&#x0E27;&#x0E31;</div>
45 <ul id="console"></ul> 45 <ul id="console"></ul>
46 <script language="javascript" type="text/javascript"> 46 <script language="javascript" type="text/javascript">
47 runEditingTest(); 47 runEditingTest();
48 </script> 48 </script>
49 </body> 49 </body>
50 </html> 50 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/deleting/delete-ligature-002.html ('k') | LayoutTests/editing/deleting/skip-virama-001.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698