Index: LayoutTests/fast/css3-text/css3-text-indent/getComputedStyle/script-tests/getComputedStyle-text-indent.js |
diff --git a/LayoutTests/fast/css3-text/css3-text-indent/getComputedStyle/script-tests/getComputedStyle-text-indent.js b/LayoutTests/fast/css3-text/css3-text-indent/getComputedStyle/script-tests/getComputedStyle-text-indent.js |
index 9eaca07bb42d8f1b748e5d15491033b961c077ac..dddd33a6a85cb054a52fccb5dd7479871c5112b7 100644 |
--- a/LayoutTests/fast/css3-text/css3-text-indent/getComputedStyle/script-tests/getComputedStyle-text-indent.js |
+++ b/LayoutTests/fast/css3-text/css3-text-indent/getComputedStyle/script-tests/getComputedStyle-text-indent.js |
@@ -37,26 +37,57 @@ debug("Test the initial value:"); |
testComputedStyle("textIndent", "text-indent", '0px'); |
debug(''); |
-valueSettingTest('10em', '10em', '100px'); |
-valueSettingTest('20ex', '20ex', '200px'); |
+valueSettingTest('100px', '100px', '100px'); |
+valueSettingTest('20em', '20em', '200px'); |
valueSettingTest('50%', '50%', '50%'); |
valueSettingTest('calc(10px + 20px)', 'calc(30px)', '30px'); |
-valueSettingTest('10em each-line', '10em each-line', '100px each-line'); |
-valueSettingTest('each-line 10em', '10em each-line', '100px each-line'); |
-valueSettingTest('20ex each-line', '20ex each-line', '200px each-line'); |
-valueSettingTest('each-line 20ex', '20ex each-line', '200px each-line'); |
+valueSettingTest('100px each-line', '100px each-line', '100px each-line'); |
+valueSettingTest('each-line 100px', 'each-line 100px', '100px each-line'); |
+valueSettingTest('20em each-line', '20em each-line', '200px each-line'); |
+valueSettingTest('each-line 20em', 'each-line 20em', '200px each-line'); |
valueSettingTest('30% each-line', '30% each-line', '30% each-line'); |
-valueSettingTest('each-line 30%', '30% each-line', '30% each-line'); |
+valueSettingTest('each-line 30%', 'each-line 30%', '30% each-line'); |
valueSettingTest('calc(10px + 20px) each-line', 'calc(30px) each-line', '30px each-line'); |
-valueSettingTest('each-line calc(10px + 20px)', 'calc(30px) each-line', '30px each-line'); |
+valueSettingTest('each-line calc(10px + 20px)', 'each-line calc(30px)', '30px each-line'); |
+valueSettingTest('100px hanging', '100px hanging', '100px hanging'); |
+valueSettingTest('hanging 100px', 'hanging 100px', '100px hanging'); |
+valueSettingTest('20em hanging', '20em hanging', '200px hanging'); |
+valueSettingTest('hanging 20em', 'hanging 20em', '200px hanging'); |
+valueSettingTest('30% hanging', '30% hanging', '30% hanging'); |
+valueSettingTest('hanging 30%', 'hanging 30%', '30% hanging'); |
+valueSettingTest('calc(10px + 20px) hanging', 'calc(30px) hanging', '30px hanging'); |
+valueSettingTest('hanging calc(10px + 20px)', 'hanging calc(30px)', '30px hanging'); |
+valueSettingTest('100px each-line hanging', '100px each-line hanging', '100px each-line hanging'); |
+valueSettingTest('each-line 100px hanging', 'each-line 100px hanging', '100px each-line hanging'); |
+valueSettingTest('each-line hanging 100px', 'each-line hanging 100px', '100px each-line hanging'); |
+valueSettingTest('100px hanging each-line', '100px hanging each-line', '100px each-line hanging'); |
+valueSettingTest('hanging 100px each-line', 'hanging 100px each-line', '100px each-line hanging'); |
+valueSettingTest('hanging each-line 100px', 'hanging each-line 100px', '100px each-line hanging'); |
+valueSettingTest('30% each-line hanging', '30% each-line hanging', '30% each-line hanging'); |
+valueSettingTest('each-line 30% hanging', 'each-line 30% hanging', '30% each-line hanging'); |
+valueSettingTest('each-line hanging 30%', 'each-line hanging 30%', '30% each-line hanging'); |
+valueSettingTest('30% hanging each-line', '30% hanging each-line', '30% each-line hanging'); |
+valueSettingTest('hanging 30% each-line', 'hanging 30% each-line', '30% each-line hanging'); |
+valueSettingTest('hanging each-line 30%', 'hanging each-line 30%', '30% each-line hanging'); |
debug(''); |
defaultValue = '0px' |
e.style.textIndent = defaultValue; |
invalidValueSettingTest('10m', defaultValue); |
+invalidValueSettingTest('100px 100px', defaultValue); |
+invalidValueSettingTest('100px line', defaultValue); |
+invalidValueSettingTest('100px hang', defaultValue); |
invalidValueSettingTest('10m each-line', defaultValue); |
invalidValueSettingTest('each-line 10m', defaultValue); |
-invalidValueSettingTest('10em 10em', defaultValue); |
+invalidValueSettingTest('10m hangning', defaultValue); |
+invalidValueSettingTest('hanging 10m', defaultValue); |
+invalidValueSettingTest('10m each-line hanging', defaultValue); |
invalidValueSettingTest('each-line', defaultValue); |
-invalidValueSettingTest('10em each-line 10em', defaultValue); |
-invalidValueSettingTest('each-line 10em each-line', defaultValue); |
+invalidValueSettingTest('hanging', defaultValue); |
+invalidValueSettingTest('each-line hanging', defaultValue); |
+invalidValueSettingTest('100px each-line 100px', defaultValue); |
+invalidValueSettingTest('100px hanging 100px', defaultValue); |
+invalidValueSettingTest('each-line 100px each-line', defaultValue); |
+invalidValueSettingTest('hanging 100px hanging', defaultValue); |
+invalidValueSettingTest('100px line hanging', defaultValue); |
+invalidValueSettingTest('100px each-line hang', defaultValue); |