Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Unified Diff: LayoutTests/fast/css3-text/css3-text-justify/getComputedStyle/script-tests/getComputedStyle-text-justify-inherited.js

Issue 17155007: [CSS3] Parsing the property, text-justify. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parsingTextJustify
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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");

Powered by Google App Engine
This is Rietveld 408576698