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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/editable-html-element.html

Issue 1806423003: Convert editing/selection layout tests to use w3c test harness, volume 6 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
(Empty)
1 <html contenteditable="true" id="test">
2 <script>
3 if (window.testRunner)
4 testRunner.dumpEditingCallbacks();
5 </script>
6
7 <script>
8 function runTest() {
9 var s = window.getSelection();
10 var e = document.getElementById("test");
11
12 e.focus();
13 document.execCommand("InsertText", false, "\t");
14 document.execCommand("InsertText", false, "This tests to see where the selec tion is set when an html element is focused.");
15 document.execCommand("InsertHTML", false, "<br>We set it inside the body bec ause we don't want to allow editing outside the body. This test also does some editing to make sure it happens in the body.");
16 }
17 </script>
18 <body onLoad="runTest();">
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698