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

Unified Diff: third_party/WebKit/LayoutTests/editing/execCommand/format-block-with-braces.html

Issue 2277683002: Convert editing/execCommand/format-block-with-braces.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-08-24T17:53:25 Created 4 years, 4 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/execCommand/format-block-with-braces-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/execCommand/format-block-with-braces.html
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/format-block-with-braces.html b/third_party/WebKit/LayoutTests/editing/execCommand/format-block-with-braces.html
index 27d8ef1ad2c6c314e577083515cda9fc1f84972e..a29819fe43477eedf70df14a5b0f5ad2b873b71a 100644
--- a/third_party/WebKit/LayoutTests/editing/execCommand/format-block-with-braces.html
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/format-block-with-braces.html
@@ -1,27 +1,11 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../resources/dump-as-markup.js"></script>
-<div style="display:inline" contenteditable="true" id="item1">
-Format Me
-</div>
-
+<!doctype html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
<script>
-if (window.testRunner)
- testRunner.dumpEditingCallbacks();
-
-Markup.description("This test uses FormatBlock with html brackets in the tag string passed to execCommand.");
-
-Markup.dump("item1", "Before FormatBlock with <h1>");
-
-var s = window.getSelection();
-var r = document.createRange();
-var p1 = document.getElementById("item1");
-s.collapse(p1, 0);
-document.execCommand("FormatBlock", false, "<h1>");
-
-Markup.dump("item1", "After FormatBlock with <h1>");
-
+ test(() => assert_selection(
+ '<div contenteditable>|Format Me</div>',
+ 'formatBlock <h1>',
+ '<div contenteditable><h1>|Format Me</h1></div>'),
+ 'foramtBlcok accept tag name with html brackets');
</script>
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/execCommand/format-block-with-braces-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698