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

Unified Diff: third_party/WebKit/LayoutTests/editing/execCommand/insert_horizontal_rule.html

Issue 2172033003: Convert editing/execCommand/insertHorizontalRule.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-22T17:10:05 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
Index: third_party/WebKit/LayoutTests/editing/execCommand/insert_horizontal_rule.html
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/insert_horizontal_rule.html b/third_party/WebKit/LayoutTests/editing/execCommand/insert_horizontal_rule.html
new file mode 100644
index 0000000000000000000000000000000000000000..697c71dff9bf02d5d30629855c7f12822fba11cc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/insert_horizontal_rule.html
@@ -0,0 +1,17 @@
+<!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|bar</div>',
+ 'insertHorizontalRule',
+ '<div contenteditable>foo<hr>|bar</div>'),
+ 'Insert HR between foo and bar');
+
+test(() => assert_selection(
+ '<div contenteditable>foo|bar</div>',
+ 'insertHorizontalRule abc',
+ '<div contenteditable>foo<hr id="abc">|bar</div>'),
+ 'Insert HR with id "abc" between foo and bar');
+</script>

Powered by Google App Engine
This is Rietveld 408576698