Chromium Code Reviews| Index: LayoutTests/fast/css3-text/css3-text-justify/getComputedStyle/script-tests/getComputedStyle-text-justify-inherited.js |
| diff --git a/LayoutTests/fast/css3-text/css3-text-align-last/getComputedStyle/script-tests/getComputedStyle-text-align-last-inherited.js b/LayoutTests/fast/css3-text/css3-text-justify/getComputedStyle/script-tests/getComputedStyle-text-justify-inherited.js |
| similarity index 52% |
| copy from LayoutTests/fast/css3-text/css3-text-align-last/getComputedStyle/script-tests/getComputedStyle-text-align-last-inherited.js |
| copy to LayoutTests/fast/css3-text/css3-text-justify/getComputedStyle/script-tests/getComputedStyle-text-justify-inherited.js |
| index a035e6fcb4556d137705d55e56092607db8ac817..0383b125cc2440f8acca305487e1cd0488286a6d 100644 |
| --- a/LayoutTests/fast/css3-text/css3-text-align-last/getComputedStyle/script-tests/getComputedStyle-text-align-last-inherited.js |
| +++ b/LayoutTests/fast/css3-text/css3-text-justify/getComputedStyle/script-tests/getComputedStyle-text-justify-inherited.js |
| @@ -1,37 +1,34 @@ |
| function testComputedStyle(a_value, c_value) |
| { |
| - shouldBe("window.getComputedStyle(ancestor).getPropertyCSSValue('text-align-last').cssText", "'" + a_value + "'"); |
| - shouldBe("window.getComputedStyle(child).getPropertyCSSValue('text-align-last').cssText", "'" + c_value + "'"); |
| + shouldBe("window.getComputedStyle(ancestor).getPropertyCSSValue('text-justify').cssText", "'" + a_value + "'"); |
| + shouldBe("window.getComputedStyle(child).getPropertyCSSValue('text-justify').cssText", "'" + c_value + "'"); |
| debug(''); |
| } |
| function ownValueTest(a_value, c_value) |
| { |
| debug("Value of ancestor is '" + a_value + ", while child is '" + c_value + "':"); |
| - ancestor.style.textAlignLast = a_value; |
| - child.style.textAlignLast = c_value; |
| + ancestor.style.textJustify = a_value; |
| + child.style.textJustify = c_value; |
| testComputedStyle(a_value, c_value); |
| } |
| function inheritanceTest(a_value) |
| { |
| debug("Value of ancestor is '" + a_value + "':"); |
| - ancestor.style.textAlignLast = a_value; |
| + ancestor.style.textJustify = a_value; |
| testComputedStyle(a_value, a_value); |
| } |
| -description("This test checks that the value of text-align-last is properly inherited to the child."); |
| +description("This test checks that the value of text-justify is properly inherited to the child."); |
| ancestor = document.getElementById('ancestor'); |
| child = document.getElementById('child'); |
| -inheritanceTest("start"); |
| -inheritanceTest("end"); |
| -inheritanceTest("left"); |
| -inheritanceTest("right"); |
| -inheritanceTest("center"); |
| -inheritanceTest("justify"); |
| inheritanceTest("auto"); |
| +inheritanceTest("none"); |
| +inheritanceTest("inter-word"); |
| +inheritanceTest("distribute"); |
|
Julien - ping for review
2013/07/15 22:05:47
Do we really need separate tests for inherited vs
|
| -ownValueTest("start", "end"); |
| -ownValueTest("left", "right"); |
| +ownValueTest("inter-word", "distribute"); |
| +ownValueTest("none", "distribute"); |