Index: LayoutTests/editing/style/toggle-style-bold-italic-mixed-editability.html |
diff --git a/LayoutTests/editing/style/toggle-style-bold-italic-mixed-editability.html b/LayoutTests/editing/style/toggle-style-bold-italic-mixed-editability.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..224b1360ad744cd8980d169b6aca84e052aed9d3 |
--- /dev/null |
+++ b/LayoutTests/editing/style/toggle-style-bold-italic-mixed-editability.html |
@@ -0,0 +1,30 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<p id="description">This tests bold/italic style toggling for a content with mixed editability</p> |
+<div contenteditable id="root"> |
+<div id="test"> |
+Editable <span contenteditable=false>Non-editable</span> Editable |
+</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> |