OLD | NEW |
1 function testComputedStyle(a_value, c_value) | 1 function testComputedStyle(a_value, c_value) |
2 { | 2 { |
3 shouldBe("window.getComputedStyle(ancestor).getPropertyCSSValue('text-align-
last').cssText", "'" + a_value + "'"); | 3 shouldBe("window.getComputedStyle(ancestor).textAlignLast", "'" + a_value +
"'"); |
4 shouldBe("window.getComputedStyle(child).getPropertyCSSValue('text-align-las
t').cssText", "'" + c_value + "'"); | 4 shouldBe("window.getComputedStyle(child).textAlignLast", "'" + c_value + "'
"); |
5 debug(''); | 5 debug(''); |
6 } | 6 } |
7 | 7 |
8 function ownValueTest(a_value, c_value) | 8 function ownValueTest(a_value, c_value) |
9 { | 9 { |
10 debug("Value of ancestor is '" + a_value + ", while child is '" + c_value +
"':"); | 10 debug("Value of ancestor is '" + a_value + ", while child is '" + c_value +
"':"); |
11 ancestor.style.textAlignLast = a_value; | 11 ancestor.style.textAlignLast = a_value; |
12 child.style.textAlignLast = c_value; | 12 child.style.textAlignLast = c_value; |
13 testComputedStyle(a_value, c_value); | 13 testComputedStyle(a_value, c_value); |
14 } | 14 } |
(...skipping 13 matching lines...) Expand all Loading... |
28 inheritanceTest("start"); | 28 inheritanceTest("start"); |
29 inheritanceTest("end"); | 29 inheritanceTest("end"); |
30 inheritanceTest("left"); | 30 inheritanceTest("left"); |
31 inheritanceTest("right"); | 31 inheritanceTest("right"); |
32 inheritanceTest("center"); | 32 inheritanceTest("center"); |
33 inheritanceTest("justify"); | 33 inheritanceTest("justify"); |
34 inheritanceTest("auto"); | 34 inheritanceTest("auto"); |
35 | 35 |
36 ownValueTest("start", "end"); | 36 ownValueTest("start", "end"); |
37 ownValueTest("left", "right"); | 37 ownValueTest("left", "right"); |
OLD | NEW |