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

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

Issue 2336173002: Convert editing/deleting/merge-paragraph-from-h6*.html to use w3c test harness (Closed)
Patch Set: 2016-09-13T18:24:31 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/editing/deleting/merge-paragraph-from-h6-with-style-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/merge_paragraph_from_h6.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/merge_paragraph_from_h6.html b/third_party/WebKit/LayoutTests/editing/deleting/merge_paragraph_from_h6.html
new file mode 100644
index 0000000000000000000000000000000000000000..8544674d17a16f2858c24ff43fe0ec1e3bc924e1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/deleting/merge_paragraph_from_h6.html
@@ -0,0 +1,47 @@
+<!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>',
+ 'foo<h6>|bar</h6>',
+ '</div>',
+ ].join(''),
+ 'delete',
+ [
+ '<div contenteditable>',
+ 'foo|bar',
+ '</div>',
+ ].join('')),
+ '1 deleting line break before H6');
+
+test(() =>assert_selection(
+ [
+ '<div contenteditable>',
+ '<em>foo</em><h6><font color="red">|bar</font></h6>',
+ '</div>',
+ ].join(''),
+ 'delete',
+ [
+ '<div contenteditable>',
+ '<em>foo|</em><span style="color: red;">bar</span>',
+ '</div>',
+ ].join('')),
+ '2 deleting line break before H6+FONT');
+
+test(() =>assert_selection(
+ [
+ '<div contenteditable>',
+ '<em>foo</em><h6><font color="blue" style="color:red">|bar</font></h6>',
+ '</div>',
+ ].join(''),
+ 'delete',
+ [
+ '<div contenteditable>',
+ '<em>foo|</em><span style="color: red;">bar</span>',
+ '</div>',
+ ].join('')),
+ '3 deleting line break before H6 with style');
+</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/editing/deleting/merge-paragraph-from-h6-with-style-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698