OLD | NEW |
1 function testElementStyle(propertyJS, propertyCSS, type, value) | 1 function testElementStyle(propertyJS, propertyCSS, type, value) |
2 { | 2 { |
3 shouldBe("e.style." + propertyJS, "'" + value + "'"); | 3 shouldBe("e.style." + propertyJS, "'" + value + "'"); |
4 shouldBe("e.style.getPropertyCSSValue('" + propertyCSS + "').cssText", "'" +
value + "'"); | 4 shouldBe("e.style.getPropertyCSSValue('" + propertyCSS + "').cssText", "'" +
value + "'"); |
5 } | 5 } |
6 | 6 |
7 function testComputedStyle(propertyJS, propertyCSS, type, value) | 7 function testComputedStyle(propertyJS, propertyCSS, type, value) |
8 { | 8 { |
9 computedStyle = window.getComputedStyle(e, null); | 9 computedStyle = window.getComputedStyle(e, null); |
10 shouldBe("computedStyle." + propertyJS, "'" + value + "'"); | 10 shouldBe("computedStyle." + propertyJS, "'" + value + "'"); |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 valueSettingTest('start'); | 40 valueSettingTest('start'); |
41 valueSettingTest('end'); | 41 valueSettingTest('end'); |
42 valueSettingTest('left'); | 42 valueSettingTest('left'); |
43 valueSettingTest('right'); | 43 valueSettingTest('right'); |
44 valueSettingTest('center'); | 44 valueSettingTest('center'); |
45 valueSettingTest('justify'); | 45 valueSettingTest('justify'); |
46 valueSettingTest('auto'); | 46 valueSettingTest('auto'); |
47 | 47 |
48 defaultValue = 'auto' | 48 defaultValue = 'auto' |
49 e.style.webkitTextAlignLast = defaultValue; | 49 e.style.textAlignLast = defaultValue; |
50 invalidValueSettingTest('-webkit-left', defaultValue); | 50 invalidValueSettingTest('-webkit-left', defaultValue); |
51 invalidValueSettingTest('-webkit-right', defaultValue); | 51 invalidValueSettingTest('-webkit-right', defaultValue); |
52 invalidValueSettingTest('-webkit-center', defaultValue); | 52 invalidValueSettingTest('-webkit-center', defaultValue); |
53 invalidValueSettingTest('-webkit-match-parent', defaultValue); | 53 invalidValueSettingTest('-webkit-match-parent', defaultValue); |
54 invalidValueSettingTest('-webkit-auto', defaultValue); | 54 invalidValueSettingTest('-webkit-auto', defaultValue); |
OLD | NEW |