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

Unified Diff: LayoutTests/fast/css3-text/css3-text-align-last/getComputedStyle/script-tests/getComputedStyle-text-align-last.js

Issue 19041005: Introduce css3TextEnabled instead of CSS3_TEXT. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing 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-align-last/getComputedStyle/script-tests/getComputedStyle-text-align-last.js
diff --git a/LayoutTests/fast/css3-text/css3-text-align-last/getComputedStyle/script-tests/getComputedStyle-text-align-last.js b/LayoutTests/fast/css3-text/css3-text-align-last/getComputedStyle/script-tests/getComputedStyle-text-align-last.js
index 9521a0c175d1ae9c2d42a6b524b781c6f2af055c..edcdbf22b5214642c61978d1de788f477f5550c5 100644
--- a/LayoutTests/fast/css3-text/css3-text-align-last/getComputedStyle/script-tests/getComputedStyle-text-align-last.js
+++ b/LayoutTests/fast/css3-text/css3-text-align-last/getComputedStyle/script-tests/getComputedStyle-text-align-last.js
@@ -14,27 +14,27 @@ function testComputedStyle(propertyJS, propertyCSS, type, value)
function valueSettingTest(value)
{
debug("Value '" + value + "':");
- e.style.webkitTextAlignLast = value;
- testElementStyle("webkitTextAlignLast", "-webkit-text-align-last", "[object CSSPrimitiveValue]", value);
- testComputedStyle("webkitTextAlignLast", "-webkit-text-align-last", "[object CSSPrimitiveValue]", value);
+ e.style.textAlignLast = value;
+ testElementStyle("textAlignLast", "text-align-last", "[object CSSPrimitiveValue]", value);
+ testComputedStyle("textAlignLast", "text-align-last", "[object CSSPrimitiveValue]", value);
debug('');
}
function invalidValueSettingTest(value, defaultValue)
{
debug("Invalid value test - '" + value + "':");
- e.style.webkitTextAlignLast = value;
- testElementStyle("webkitTextAlignLast", "-webkit-text-align-last", "[object CSSPrimitiveValue]", defaultValue);
- testComputedStyle("webkitTextAlignLast", "-webkit-text-align-last", "[object CSSPrimitiveValue]", defaultValue);
+ e.style.textAlignLast = value;
+ testElementStyle("textAlignLast", "text-align-last", "[object CSSPrimitiveValue]", defaultValue);
+ testComputedStyle("textAlignLast", "text-align-last", "[object CSSPrimitiveValue]", defaultValue);
debug('');
}
-description("This test checks that -webkit-text-align-last parses properly the properties from CSS 3 Text.");
+description("This test checks that text-align-last parses properly the properties from CSS 3 Text.");
e = document.getElementById('test');
debug("Test the initial value:");
-testComputedStyle("webkitTextAlignLast", "-webkit-text-align-last", "[object CSSPrimitiveValue]", 'auto');
+testComputedStyle("textAlignLast", "text-align-last", "[object CSSPrimitiveValue]", 'auto');
debug('');
valueSettingTest('start');

Powered by Google App Engine
This is Rietveld 408576698