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

Unified Diff: third_party/WebKit/LayoutTests/editing/deleting/delete-block-contents.html

Issue 2170273002: Convert editing/deleting/delete-block-content-00[123].html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-22T11:11:22 Created 4 years, 5 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 | « no previous file | third_party/WebKit/LayoutTests/editing/deleting/delete-block-contents-001.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/deleting/delete-block-contents.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/delete-block-contents.html b/third_party/WebKit/LayoutTests/editing/deleting/delete-block-contents.html
new file mode 100644
index 0000000000000000000000000000000000000000..e3abc2908c874c8b05eb8b381eca30d0f0160928
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/deleting/delete-block-contents.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
+<script>
+test(() => {
+ assert_selection(
+ '<div contenteditable><span>|foo bar baz</span></div>',
+ selection => {
+ selection.document.execCommand('selectAll');
+ selection.document.execCommand('delete');
+ },
+ '<div contenteditable>|<br></div>',
+ 'Delete after select all in SPAN');
+ assert_selection(
+ '<div contenteditable><span>^foo bar baz|</span></div>',
+ 'delete',
+ '<div contenteditable>|<br></div>',
+ 'Delete all contens in SPAN');
+}, 'Delete block');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/deleting/delete-block-contents-001.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698