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

Unified Diff: LayoutTests/editing/style/toggle-style-bold-italic.html

Issue 19888007: Bold and Italic style get stuck when applied on a selection having content with mixed editability (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Bold and Italic style get stuck when applied on a selection having content with mixed editability Created 7 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 | « LayoutTests/editing/editing.js ('k') | LayoutTests/editing/style/toggle-style-bold-italic-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/style/toggle-style-bold-italic.html
diff --git a/LayoutTests/editing/style/toggle-style-bold-italic.html b/LayoutTests/editing/style/toggle-style-bold-italic.html
new file mode 100644
index 0000000000000000000000000000000000000000..ddb01f5875067f16b7eacff8f4ecf8103b681c22
--- /dev/null
+++ b/LayoutTests/editing/style/toggle-style-bold-italic.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<body>
+<p id="description">Tests bold/italic style toggling on a content that has text node without renderer (Ex: Tab/Space used for indentation)</p>
+<div contenteditable id="root">
+<div id="test">
+<div>Some text</div>
+<p>Some more text</p>
+</div>
+</div>
+<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
+<script>
+test('mac');
+test('win');
+test('unix');
+function test(platform) {
+ if (window.internals)
+ internals.settings.setEditingBehavior(platform);
+ startNewMarkupGroup('Test for '+platform);
+ runDumpAsTextEditingTest(true);
+}
+function editingTest() {
+ execSelectAllCommand();
+ execBoldCommand();
+ execItalicCommand();
+ execBoldCommand();
+ execItalicCommand();
+}
+</script>
+</body>
+</html>
« no previous file with comments | « LayoutTests/editing/editing.js ('k') | LayoutTests/editing/style/toggle-style-bold-italic-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698