Changeset 70363 in webkit
- Timestamp:
- Oct 22, 2010 4:18:40 PM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r70360 r70363 1 2010-10-22 Abhishek Arya <inferno@chromium.org> 2 3 Reviewed by Dimitri Glazkov. 4 5 Fix failing tests on chromium. 6 https://bugs.webkit.org/show_bug.cgi?id=48160 7 8 * fast/backgrounds/repeat/background-repeat-shorthand-expected.txt: 9 * fast/backgrounds/repeat/margin-shorthand-expected.txt: 10 * fast/backgrounds/repeat/resources/background-repeat-shorthand.js: 11 (getShorthand): 12 * fast/backgrounds/repeat/resources/margin-shorthand.js: 13 (iconMarginValue): 14 * fast/css/modify-ua-rules-from-javascript.html: 15 1 16 2010-10-22 Dimitri Glazkov <dglazkov@chromium.org> 2 17 -
trunk/LayoutTests/fast/backgrounds/repeat/background-repeat-shorthand-expected.txt
r70335 r70363 4 4 5 5 6 PASS getShorthand("background-repeat-x", "icon1") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..7 PASS getShorthand("background-repeat-y", "icon1") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..8 PASS getShorthand("background-repeat", "icon1") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..9 PASS getShorthand("background-position-x", "icon1") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..10 PASS getShorthand("background-position-y", "icon1") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..11 PASS getShorthand("background-position", "icon1") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..12 PASS getShorthand("-webkit-mask-repeat-x", "icon1") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..13 PASS getShorthand("-webkit-mask-repeat-y", "icon1") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..14 PASS getShorthand("-webkit-mask-repeat", "icon1") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..15 PASS getShorthand("-webkit-mask-position-x", "icon1") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..16 PASS getShorthand("-webkit-mask-position-y", "icon1") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..17 PASS getShorthand("-webkit-mask-repeat", "icon1") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..18 PASS getShorthand("background-repeat-x", "icon2") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..19 PASS getShorthand("background-repeat-y", "icon2") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..20 PASS getShorthand("background-repeat", "icon2") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..21 PASS getShorthand("background-position-x", "icon2") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..22 PASS getShorthand("background-position-y", "icon2") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..23 PASS getShorthand("background-position", "icon2") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..24 PASS getShorthand("-webkit-mask-repeat-x", "icon2") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..25 PASS getShorthand("-webkit-mask-repeat-y", "icon2") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..26 PASS getShorthand("-webkit-mask-repeat", "icon2") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..27 PASS getShorthand("-webkit-mask-position-x", "icon2") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..28 PASS getShorthand("-webkit-mask-position-y", "icon2") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..29 PASS getShorthand("-webkit-mask-repeat", "icon2") threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..6 PASS getShorthand("background-repeat-x", "icon1") is "null" 7 PASS getShorthand("background-repeat-y", "icon1") is "null" 8 PASS getShorthand("background-repeat", "icon1") is "null" 9 PASS getShorthand("background-position-x", "icon1") is "null" 10 PASS getShorthand("background-position-y", "icon1") is "null" 11 PASS getShorthand("background-position", "icon1") is "null" 12 PASS getShorthand("-webkit-mask-repeat-x", "icon1") is "null" 13 PASS getShorthand("-webkit-mask-repeat-y", "icon1") is "null" 14 PASS getShorthand("-webkit-mask-repeat", "icon1") is "null" 15 PASS getShorthand("-webkit-mask-position-x", "icon1") is "null" 16 PASS getShorthand("-webkit-mask-position-y", "icon1") is "null" 17 PASS getShorthand("-webkit-mask-repeat", "icon1") is "null" 18 PASS getShorthand("background-repeat-x", "icon2") is "null" 19 PASS getShorthand("background-repeat-y", "icon2") is "null" 20 PASS getShorthand("background-repeat", "icon2") is "null" 21 PASS getShorthand("background-position-x", "icon2") is "null" 22 PASS getShorthand("background-position-y", "icon2") is "null" 23 PASS getShorthand("background-position", "icon2") is "null" 24 PASS getShorthand("-webkit-mask-repeat-x", "icon2") is "null" 25 PASS getShorthand("-webkit-mask-repeat-y", "icon2") is "null" 26 PASS getShorthand("-webkit-mask-repeat", "icon2") is "null" 27 PASS getShorthand("-webkit-mask-position-x", "icon2") is "null" 28 PASS getShorthand("-webkit-mask-position-y", "icon2") is "null" 29 PASS getShorthand("-webkit-mask-repeat", "icon2") is "null" 30 30 PASS successfullyParsed is true 31 31 -
trunk/LayoutTests/fast/backgrounds/repeat/margin-shorthand-expected.txt
r70335 r70363 4 4 5 5 6 PASS iconMarginValue() threw exception TypeError: Result of expression 'rules[1]' [undefined] is not an object..6 PASS iconMarginValue() is "null" 7 7 PASS successfullyParsed is true 8 8 -
trunk/LayoutTests/fast/backgrounds/repeat/resources/background-repeat-shorthand.js
r70335 r70363 13 13 var iconDiv = document.getElementById(iconId); 14 14 var rules = window.getMatchedCSSRules(iconDiv,'',false); 15 return rules[1] .style.getPropertyShorthand(longhand);15 return rules[1] ? rules[1].style.getPropertyShorthand(longhand) : 'null'; 16 16 } 17 17 18 should Throw('getShorthand("background-repeat-x", "icon1")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');19 should Throw('getShorthand("background-repeat-y", "icon1")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');20 should Throw('getShorthand("background-repeat", "icon1")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');18 shouldBe('getShorthand("background-repeat-x", "icon1")', '"null"'); 19 shouldBe('getShorthand("background-repeat-y", "icon1")', '"null"'); 20 shouldBe('getShorthand("background-repeat", "icon1")', '"null"'); 21 21 22 should Throw('getShorthand("background-position-x", "icon1")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');23 should Throw('getShorthand("background-position-y", "icon1")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');24 should Throw('getShorthand("background-position", "icon1")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');22 shouldBe('getShorthand("background-position-x", "icon1")', '"null"'); 23 shouldBe('getShorthand("background-position-y", "icon1")', '"null"'); 24 shouldBe('getShorthand("background-position", "icon1")', '"null"'); 25 25 26 should Throw('getShorthand("-webkit-mask-repeat-x", "icon1")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');27 should Throw('getShorthand("-webkit-mask-repeat-y", "icon1")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');28 should Throw('getShorthand("-webkit-mask-repeat", "icon1")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');26 shouldBe('getShorthand("-webkit-mask-repeat-x", "icon1")', '"null"'); 27 shouldBe('getShorthand("-webkit-mask-repeat-y", "icon1")', '"null"'); 28 shouldBe('getShorthand("-webkit-mask-repeat", "icon1")', '"null"'); 29 29 30 should Throw('getShorthand("-webkit-mask-position-x", "icon1")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');31 should Throw('getShorthand("-webkit-mask-position-y", "icon1")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');32 should Throw('getShorthand("-webkit-mask-repeat", "icon1")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');30 shouldBe('getShorthand("-webkit-mask-position-x", "icon1")', '"null"'); 31 shouldBe('getShorthand("-webkit-mask-position-y", "icon1")', '"null"'); 32 shouldBe('getShorthand("-webkit-mask-repeat", "icon1")', '"null"'); 33 33 34 34 35 should Throw('getShorthand("background-repeat-x", "icon2")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');36 should Throw('getShorthand("background-repeat-y", "icon2")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');37 should Throw('getShorthand("background-repeat", "icon2")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');35 shouldBe('getShorthand("background-repeat-x", "icon2")', '"null"'); 36 shouldBe('getShorthand("background-repeat-y", "icon2")', '"null"'); 37 shouldBe('getShorthand("background-repeat", "icon2")', '"null"'); 38 38 39 should Throw('getShorthand("background-position-x", "icon2")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');40 should Throw('getShorthand("background-position-y", "icon2")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');41 should Throw('getShorthand("background-position", "icon2")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');39 shouldBe('getShorthand("background-position-x", "icon2")', '"null"'); 40 shouldBe('getShorthand("background-position-y", "icon2")', '"null"'); 41 shouldBe('getShorthand("background-position", "icon2")', '"null"'); 42 42 43 should Throw('getShorthand("-webkit-mask-repeat-x", "icon2")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');44 should Throw('getShorthand("-webkit-mask-repeat-y", "icon2")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');45 should Throw('getShorthand("-webkit-mask-repeat", "icon2")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');43 shouldBe('getShorthand("-webkit-mask-repeat-x", "icon2")', '"null"'); 44 shouldBe('getShorthand("-webkit-mask-repeat-y", "icon2")', '"null"'); 45 shouldBe('getShorthand("-webkit-mask-repeat", "icon2")', '"null"'); 46 46 47 should Throw('getShorthand("-webkit-mask-position-x", "icon2")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');48 should Throw('getShorthand("-webkit-mask-position-y", "icon2")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');49 should Throw('getShorthand("-webkit-mask-repeat", "icon2")', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');47 shouldBe('getShorthand("-webkit-mask-position-x", "icon2")', '"null"'); 48 shouldBe('getShorthand("-webkit-mask-position-y", "icon2")', '"null"'); 49 shouldBe('getShorthand("-webkit-mask-repeat", "icon2")', '"null"'); 50 50 51 51 -
trunk/LayoutTests/fast/backgrounds/repeat/resources/margin-shorthand.js
r70335 r70363 11 11 var iconDiv = document.getElementById('icon'); 12 12 var rules = window.getMatchedCSSRules(iconDiv,'',false); 13 return rules[1] .style.getPropertyValue('margin');13 return rules[1] ? rules[1].style.getPropertyValue('margin') : 'null'; 14 14 } 15 15 16 should Throw('iconMarginValue()', '"TypeError: Result of expression \'rules[1]\' [undefined] is not an object."');16 shouldBe('iconMarginValue()', '"null"'); 17 17 18 18 var successfullyParsed = true; -
trunk/LayoutTests/fast/css/modify-ua-rules-from-javascript.html
r70335 r70363 9 9 function test() 10 10 { 11 var styleToChange = window.getMatchedCSSRules(document.body, "", false)[0].style; 12 var originalMarginTop = styleToChange.marginTop; 13 styleToChange.marginTop = "200px"; 14 styleToChange.marginTop = originalMarginTop; 15 16 document.getElementById("result").innerHTML = "FAIL"; 11 var cssRulesList = window.getMatchedCSSRules(document.body, "", false)[0]; 12 if (cssRulesList) 13 { 14 var styleToChange = cssRulesList.style; 15 var originalMarginTop = styleToChange.marginTop; 16 styleToChange.marginTop = "200px"; 17 styleToChange.marginTop = originalMarginTop; 18 document.getElementById("result").innerHTML = "FAIL"; 19 } 17 20 } 18 21 </script>
Note: See TracChangeset
for help on using the changeset viewer.