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

Unified Diff: third_party/WebKit/LayoutTests/editing/deleting/smart_editing_disabled.html

Issue 2935693004: Rewrite editing/deleting/smart-editing-disabled-{mac,win}.html to utilize assert_selection() (Closed)
Patch Set: 2017-06-14T13:25:00 Created 3 years, 6 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/editing/deleting/smart-editing-disabled-win-expected.txt ('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/deleting/smart_editing_disabled.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/smart_editing_disabled.html b/third_party/WebKit/LayoutTests/editing/deleting/smart_editing_disabled.html
new file mode 100644
index 0000000000000000000000000000000000000000..afabc6f2252d0a459a5b15710d0d32b347da895c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/deleting/smart_editing_disabled.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
+<script>
+test(() => {
+ assert_exists(window, 'internals', 'This test requires window.internals.');
+ assert_exists(window, 'testRunner', 'This test requires window.testRunner.');
+ internals.settings.setSmartInsertDeleteEnabled(false);
+ internals.settings.setSelectTrailingWhitespaceEnabled(true);
+ assert_selection(
+ '<div contenteditable>foo |bar^ baz</div>',
+ seleciton => testRunner.execCommand('deleteForward'),
+ '<div contenteditable>foo |\u00A0baz</div>',
+ 'DeleteForward without smart insert/delete');
+}, 'Verifies deleteForward without smrat insert delete');
+</script>
+
« no previous file with comments | « third_party/WebKit/LayoutTests/editing/deleting/smart-editing-disabled-win-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698