Index: LayoutTests/editing/style/script-tests/push-down-font-styles-win.js |
diff --git a/LayoutTests/editing/style/script-tests/push-down-font-styles-mac.js b/LayoutTests/editing/style/script-tests/push-down-font-styles-win.js |
similarity index 96% |
copy from LayoutTests/editing/style/script-tests/push-down-font-styles-mac.js |
copy to LayoutTests/editing/style/script-tests/push-down-font-styles-win.js |
index bfe2cdae4e6238a10ca5b13088728c7c39b6028b..e58cc367ca85321e28440c7bd665d994a7fa51c7 100644 |
--- a/LayoutTests/editing/style/script-tests/push-down-font-styles-mac.js |
+++ b/LayoutTests/editing/style/script-tests/push-down-font-styles-win.js |
@@ -1,7 +1,7 @@ |
description('Test to make sure we push down inline styles properly.'); |
if (window.internals) |
- internals.settings.setEditingBehavior('mac'); |
+ internals.settings.setEditingBehavior('win'); |
var testContainer = document.createElement("div"); |
testContainer.contentEditable = true; |
document.body.appendChild(testContainer); |
@@ -56,7 +56,7 @@ debug("Font size"); |
styleWithCSS = false; |
testSingleToggle("fontsize", 2, selectAll, 'hello world', '<font size="2">hello world</font>'); |
testSingleToggle("fontsize", 4, selectAll, 'hello world', '<font size="4">hello world</font>'); |
-testSingleToggle("fontsize", 5, selectFirstWord, 'hello world', '<font size="5">hello</font> world'); |
+testSingleToggle("fontsize", 5, selectFirstWord, 'hello world', '<font size="5">hello </font>world'); |
testSingleToggle("fontsize", 3, selectFirstWord, '<font size="7">hello <div>world</div></font>', 'hello <div style="font-size: -webkit-xxx-large;">world</div>'); |
testSingleToggle("fontsize", 3, selectFirstWord, '<font size="7"><div>hello</div><div>world</div></font>', '<div>hello</div><div style="font-size: -webkit-xxx-large;">world</div>'); |
testSingleToggle("fontsize", 3, selectSecondWord, '<font size="7"><div>hello</div>world</font>', '<div style="font-size: -webkit-xxx-large;">hello</div>world'); |
@@ -84,7 +84,7 @@ debug(""); |
debug("Font family"); |
styleWithCSS = false; |
testSingleToggle("fontname", "Arial", selectAll, 'hello world', '<font face="Arial">hello world</font>'); |
-testSingleToggle("fontname", "Arial", selectFirstWord, '<font face="sans-serif">hello world</font>', '<font face="Arial">hello</font><font face="sans-serif"> world</font>'); |
+testSingleToggle("fontname", "Arial", selectFirstWord, '<font face="sans-serif">hello world</font>', '<font face="Arial">hello </font><font face="sans-serif">world</font>'); |
testSingleToggle("fontname", "Arial", selectFirstWord, '<font face="sans-serif">hello<div>world</div></font>', '<font face="Arial">hello</font><div style="font-family: sans-serif;">world</div>'); |
testSingleToggle("fontname", "Arial", selectSecondWord, '<font face="sans-serif">hello<div>world</div></font>', '<font face="sans-serif">hello</font><div><font face="Arial">world</font></div>'); |
testSingleToggle("fontname", "Sans-Serif", selectAll, '<font face="sans-serif"><div>hello</div><div>world</div></font>', '<font face="sans-serif"><div>hello</div><div>world</div></font>'); |
@@ -94,7 +94,7 @@ debug(""); |
debug("Font family (with CSS)"); |
styleWithCSS = true; |
testSingleToggle("fontname", "Arial", selectAll, 'hello world', '<span style="font-family: Arial;">hello world</span>'); |
-testSingleToggle("fontname", "Arial", selectFirstWord, '<font face="sans-serif">hello world</font>', '<span style="font-family: Arial;">hello</span><font face="sans-serif"> world</font>'); |
+testSingleToggle("fontname", "Arial", selectFirstWord, '<font face="sans-serif">hello world</font>', '<span style="font-family: Arial;">hello </span><font face="sans-serif">world</font>'); |
testSingleToggle("fontname", "Arial", selectFirstWord, '<font face="sans-serif">hello<div>world</div></font>', '<span style="font-family: Arial;">hello</span><div style="font-family: sans-serif;">world</div>'); |
testSingleToggle("fontname", "Arial", selectSecondWord, '<font face="sans-serif">hello<div>world</div></font>', '<span style="font-family: sans-serif;">hello</span><div><span style="font-family: Arial;">world</span></div>'); |
testSingleToggle("fontname", "Sans-Serif", selectAll, '<font face="sans-serif"><div>hello</div><div>world</div></font>', '<font face="sans-serif"><div>hello</div><div>world</div></font>'); |