Changeset 67116 in webkit
- Timestamp:
- Sep 9, 2010 2:17:29 PM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r67113 r67116 1 2010-09-09 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by James Robinson. 4 5 REGRESSION (r67101): query-font-size.html fails on qt and gtk builds 6 https://bugs.webkit.org/show_bug.cgi?id=45484 7 8 Removed the computed style's font size from the result. 9 10 This is fine because the expected result still contains queryCommandValue('fontSize') 11 along with the markup on which queryCommandValue is called, 12 which is sufficient to ensure the bug 21033 does not regress. 13 14 * editing/execCommand/query-font-size.html: 15 1 16 2010-09-09 Brian Weinstein <bweinstein@apple.com> 2 17 -
trunk/LayoutTests/editing/execCommand/query-font-size-expected.txt
r67102 r67116 1 test html queryCommandValue result getComputedStyle result2 execCommand('FontSize', -2) <span class="Apple-style-span" style="font-size: x-small;">test</span> 1 10px3 execCommand('FontSize', -1) <span class="Apple-style-span" style="font-size: small;">test</span> 2 13px4 execCommand('FontSize', 0) <span>test</span> 3 16px5 execCommand('FontSize', 1) <span class="Apple-style-span" style="font-size: x-small;">test</span> 1 10px6 execCommand('FontSize', 2) <span class="Apple-style-span" style="font-size: small;">test</span> 2 13px7 execCommand('FontSize', 3) <span>test</span> 3 16px8 execCommand('FontSize', 4) <span class="Apple-style-span" style="font-size: large;">test</span> 4 18px9 execCommand('FontSize', 5) <span class="Apple-style-span" style="font-size: x-large;">test</span> 5 24px10 execCommand('FontSize', 6) <span class="Apple-style-span" style="font-size: xx-large;">test</span> 6 32px11 execCommand('FontSize', 7) <span class="Apple-style-span" style="font-size: -webkit-xxx-large;">test</span> 7 48px12 execCommand('FontSize', '8px') <span class="Apple-style-span" style="font-size: -webkit-xxx-large;">test</span> 7 48px13 execCommand('FontSize', '2px') <span class="Apple-style-span" style="font-size: small;">test</span> 2 13px14 manual CSS font-size: 3px <span style="font-size: 3px">test</span> 1 3px15 manual CSS font-size: 0.2em <span style="font-size: 0.2em">test</span> 1 9px16 manual CSS font-size: 17px <span style="font-size: 17px">test</span> 4 17px17 manual CSS font-size: 31px <span style="font-size: 31px">test</span> 6 31px18 manual CSS font-size: 50px <span style="font-size: 50px">test</span> 7 50px19 manual CSS font-size: 5em <span style="font-size: 5em">test</span> 7 80px20 manual CSS font-size: 10px <span style="font-size: 10px">test</span> 1 10px21 monospace tests to show bug 1916122 execCommand('FontSize', -2) <span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" face="monospace">test</font></span> 1 10px23 execCommand('FontSize', -1) <span class="Apple-style-span" style="font-size: small;"><font class="Apple-style-span" face="monospace">test</font></span> 2 13px24 execCommand('FontSize', 0) <span><font class="Apple-style-span" face="monospace">test</font></span> 3 16px25 execCommand('FontSize', 1) <span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" face="monospace">test</font></span> 1 10px26 execCommand('FontSize', 2) <span class="Apple-style-span" style="font-size: small;"><font class="Apple-style-span" face="monospace">test</font></span> 2 13px27 execCommand('FontSize', 3) <span><font class="Apple-style-span" face="monospace">test</font></span> 3 16px28 execCommand('FontSize', 4) <span class="Apple-style-span" style="font-size: large;"><font class="Apple-style-span" face="monospace">test</font></span> 4 18px29 execCommand('FontSize', 5) <span class="Apple-style-span" style="font-size: x-large;"><font class="Apple-style-span" face="monospace">test</font></span> 5 24px30 execCommand('FontSize', 6) <span class="Apple-style-span" style="font-size: xx-large;"><font class="Apple-style-span" face="monospace">test</font></span> 6 32px31 execCommand('FontSize', 7) <span class="Apple-style-span" style="font-size: -webkit-xxx-large;"><font class="Apple-style-span" face="monospace">test</font></span> 7 48px1 test html queryCommandValue result 2 execCommand('FontSize', -2) <span class="Apple-style-span" style="font-size: x-small;">test</span> 1 3 execCommand('FontSize', -1) <span class="Apple-style-span" style="font-size: small;">test</span> 2 4 execCommand('FontSize', 0) <span>test</span> 3 5 execCommand('FontSize', 1) <span class="Apple-style-span" style="font-size: x-small;">test</span> 1 6 execCommand('FontSize', 2) <span class="Apple-style-span" style="font-size: small;">test</span> 2 7 execCommand('FontSize', 3) <span>test</span> 3 8 execCommand('FontSize', 4) <span class="Apple-style-span" style="font-size: large;">test</span> 4 9 execCommand('FontSize', 5) <span class="Apple-style-span" style="font-size: x-large;">test</span> 5 10 execCommand('FontSize', 6) <span class="Apple-style-span" style="font-size: xx-large;">test</span> 6 11 execCommand('FontSize', 7) <span class="Apple-style-span" style="font-size: -webkit-xxx-large;">test</span> 7 12 execCommand('FontSize', '8px') <span class="Apple-style-span" style="font-size: -webkit-xxx-large;">test</span> 7 13 execCommand('FontSize', '2px') <span class="Apple-style-span" style="font-size: small;">test</span> 2 14 manual CSS font-size: 3px <span style="font-size: 3px">test</span> 1 15 manual CSS font-size: 0.2em <span style="font-size: 0.2em">test</span> 1 16 manual CSS font-size: 17px <span style="font-size: 17px">test</span> 4 17 manual CSS font-size: 31px <span style="font-size: 31px">test</span> 6 18 manual CSS font-size: 50px <span style="font-size: 50px">test</span> 7 19 manual CSS font-size: 5em <span style="font-size: 5em">test</span> 7 20 manual CSS font-size: 10px <span style="font-size: 10px">test</span> 1 21 monospace tests to ensure the bug 19161 does not affect queryCommandValue's values 22 execCommand('FontSize', -2) <span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" face="monospace">test</font></span> 1 23 execCommand('FontSize', -1) <span class="Apple-style-span" style="font-size: small;"><font class="Apple-style-span" face="monospace">test</font></span> 2 24 execCommand('FontSize', 0) <span><font class="Apple-style-span" face="monospace">test</font></span> 3 25 execCommand('FontSize', 1) <span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" face="monospace">test</font></span> 1 26 execCommand('FontSize', 2) <span class="Apple-style-span" style="font-size: small;"><font class="Apple-style-span" face="monospace">test</font></span> 2 27 execCommand('FontSize', 3) <span><font class="Apple-style-span" face="monospace">test</font></span> 3 28 execCommand('FontSize', 4) <span class="Apple-style-span" style="font-size: large;"><font class="Apple-style-span" face="monospace">test</font></span> 4 29 execCommand('FontSize', 5) <span class="Apple-style-span" style="font-size: x-large;"><font class="Apple-style-span" face="monospace">test</font></span> 5 30 execCommand('FontSize', 6) <span class="Apple-style-span" style="font-size: xx-large;"><font class="Apple-style-span" face="monospace">test</font></span> 6 31 execCommand('FontSize', 7) <span class="Apple-style-span" style="font-size: -webkit-xxx-large;"><font class="Apple-style-span" face="monospace">test</font></span> 7 -
trunk/LayoutTests/editing/execCommand/query-font-size.html
r67102 r67116 60 60 addCellWithTextContents(tableRow, comment); 61 61 addCellWithTextContents(tableRow, span.parentNode.innerHTML); // sill FF has no outerHTML 62 63 62 window.getSelection().selectAllChildren(span.parentNode); 64 63 addCellWithTextContents(tableRow, "" + document.queryCommandValue("FontSize")); 65 addCellWithTextContents(tableRow, "" + window.getComputedStyle(span, null).fontSize);66 64 } 67 65 … … 99 97 addHeaderWithTextContents(tableRow, "html"); 100 98 addHeaderWithTextContents(tableRow, "queryCommandValue result"); 101 addHeaderWithTextContents(tableRow, "getComputedStyle result");102 99 103 100 for (var size = -2; size < 8; size++) { … … 116 113 117 114 tableRow = addRow(table); 118 addHeaderWithTextContents(tableRow, "monospace tests to show bug 19161");115 addHeaderWithTextContents(tableRow, "monospace tests to ensure the bug 19161 does not affect queryCommandValue's values"); 119 116 120 117 for (var size = -2; size < 8; size++) {
Note: See TracChangeset
for help on using the changeset viewer.