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 50% |
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 b51243d1cb00975dae86a045caa6ebc13bab71f6..471527c47f7c24db2583370c2b93020f0772161f 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('-webkit-text-align-last').cssText", "'" + a_value + "'"); |
- shouldBe("window.getComputedStyle(child).getPropertyCSSValue('-webkit-text-align-last').cssText", "'" + c_value + "'"); |
+ shouldBe("window.getComputedStyle(ancestor).getPropertyCSSValue('-webkit-text-justify').cssText", "'" + a_value + "'"); |
+ shouldBe("window.getComputedStyle(child).getPropertyCSSValue('-webkit-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.webkitTextAlignLast = a_value; |
- child.style.webkitTextAlignLast = c_value; |
+ ancestor.style.webkitTextJustify = a_value; |
+ child.style.webkitTextJustify = c_value; |
testComputedStyle(a_value, c_value); |
} |
function inheritanceTest(a_value) |
{ |
debug("Value of ancestor is '" + a_value + "':"); |
- ancestor.style.webkitTextAlignLast = a_value; |
+ ancestor.style.webkitTextJustify = a_value; |
testComputedStyle(a_value, a_value); |
} |
-description("This test checks that the value of -webkit-text-align-last is properly inherited to the child."); |
+description("This test checks that the value of -webkit-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"); |
-ownValueTest("start", "end"); |
-ownValueTest("left", "right"); |
+ownValueTest("inter-word", "none"); |
+ownValueTest("inter-word", "distribute"); |