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

Unified Diff: third_party/WebKit/LayoutTests/editing/inserting/typing-at-end-of-line.html

Issue 2301373002: Make editing/inserting/typing-at-end-of-line.html not to use "editing.js" (Closed)
Patch Set: 2016-09-02T15:20:59 Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/inserting/typing-at-end-of-line.html
diff --git a/third_party/WebKit/LayoutTests/editing/inserting/typing-at-end-of-line.html b/third_party/WebKit/LayoutTests/editing/inserting/typing-at-end-of-line.html
index daf1c6988c45975ec887a81992d0f2c2e71ea914..419b9dae79e607370bcca110adafbe5f0796d117 100644
--- a/third_party/WebKit/LayoutTests/editing/inserting/typing-at-end-of-line.html
+++ b/third_party/WebKit/LayoutTests/editing/inserting/typing-at-end-of-line.html
@@ -9,18 +9,11 @@
and Anna, you can do your regular weekly report run, and I'll extract the key sections into this. Andrew and Mark, I'd like to include any new bits you
</div>
</body>
-<script src="../editing.js"></script>
<script>
-function editingTest()
-{
- execMoveSelectionForwardByLineCommand();
- typeCharacterCommand(' ');
- typeCharacterCommand('h');
- typeCharacterCommand('a');
- typeCharacterCommand('v');
- typeCharacterCommand('e');
-}
-
-runEditingTest();
+const selection = getSelection();
+selection.collapse(document.getElementById('test'), 0);
+selection.modify('move', 'forward', 'line');
+// Inserts text at end of line.
+document.execCommand('insertText', false, ' have');
</script>
</html>
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698