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

Unified Diff: LayoutTests/platform/chromium-win/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-color-expected.txt

Issue 16337002: Revert "Revert "Implement CSS3TextDecorations runtime flag in favor of CSS3_TEXT"" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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/platform/chromium-win/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-color-expected.txt
diff --git a/LayoutTests/platform/chromium-win/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-color-expected.txt b/LayoutTests/platform/chromium-win/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-color-expected.txt
index 924f8354cdedbb1300c1ecb72f60de850c56b3ed..5c9f565c46110ba044641794e2b9ab7acc047e6f 100644
--- a/LayoutTests/platform/chromium-win/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-color-expected.txt
+++ b/LayoutTests/platform/chromium-win/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-color-expected.txt
@@ -1,100 +1,100 @@
-Test to make sure -webkit-text-decoration-color property returns CSSPrimitiveValue properly.
+Test to make sure text-decoration-color property returns CSSPrimitiveValue properly.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Ancestor should not inherit 'green' value from parent (fallback to initial value):
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgb(0, 0, 0). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.webkitTextDecorationColor should be rgb(0, 0, 0) (of type string). Was undefined (of type undefined).
+PASS e.style.getPropertyCSSValue('text-decoration-color') is null
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 0)'
+PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)'
Parent should contain 'green':
-FAIL e.style.webkitTextDecorationColor should be green (of type string). Was undefined (of type undefined).
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be green. Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgb(0, 128, 0). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.webkitTextDecorationColor should be rgb(0, 128, 0) (of type string). Was undefined (of type undefined).
+PASS e.style.textDecorationColor is 'green'
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'green'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 128, 0)'
+PASS computedStyle.textDecorationColor is 'rgb(0, 128, 0)'
JavaScript setter tests for valid, initial, invalid and blank values:
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null
+PASS e.style.getPropertyCSSValue('text-decoration-color') is null
Valid value 'blue':
-PASS e.style.webkitTextDecorationColor is 'blue'
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be blue. Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgb(0, 0, 255). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.webkitTextDecorationColor should be rgb(0, 0, 255) (of type string). Was undefined (of type undefined).
+PASS e.style.textDecorationColor is 'blue'
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'blue'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 255)'
+PASS computedStyle.textDecorationColor is 'rgb(0, 0, 255)'
Valid value '#FFFFFF':
-FAIL e.style.webkitTextDecorationColor should be rgb(255, 255, 255). Was #FFFFFF.
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgb(255, 255, 255). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgb(255, 255, 255). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.webkitTextDecorationColor should be rgb(255, 255, 255) (of type string). Was undefined (of type undefined).
+PASS e.style.textDecorationColor is 'rgb(255, 255, 255)'
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(255, 255, 255)'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(255, 255, 255)'
+PASS computedStyle.textDecorationColor is 'rgb(255, 255, 255)'
Valid value 'rgb(0, 255, 0)':
-PASS e.style.webkitTextDecorationColor is 'rgb(0, 255, 0)'
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgb(0, 255, 0). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgb(0, 255, 0). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.webkitTextDecorationColor should be rgb(0, 255, 0) (of type string). Was undefined (of type undefined).
+PASS e.style.textDecorationColor is 'rgb(0, 255, 0)'
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 255, 0)'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 255, 0)'
+PASS computedStyle.textDecorationColor is 'rgb(0, 255, 0)'
Valid value 'rgba(100, 100, 100, 0.5)':
-FAIL e.style.webkitTextDecorationColor should be rgba(100, 100, 100, 0.498039). Was rgba(100, 100, 100, 0.5).
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgba(100, 100, 100, 0.498039). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgba(100, 100, 100, 0.498039). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.webkitTextDecorationColor should be rgba(100, 100, 100, 0.498039) (of type string). Was undefined (of type undefined).
+PASS e.style.textDecorationColor is 'rgba(100, 100, 100, 0.498039)'
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgba(100, 100, 100, 0.498039)'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgba(100, 100, 100, 0.498039)'
+PASS computedStyle.textDecorationColor is 'rgba(100, 100, 100, 0.498039)'
Valid value 'hsl(240, 100%, 50%)':
-FAIL e.style.webkitTextDecorationColor should be rgb(0, 0, 255). Was hsl(240, 100%, 50%).
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgb(0, 0, 255). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgb(0, 0, 255). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.webkitTextDecorationColor should be rgb(0, 0, 255) (of type string). Was undefined (of type undefined).
+PASS e.style.textDecorationColor is 'rgb(0, 0, 255)'
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 255)'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 255)'
+PASS computedStyle.textDecorationColor is 'rgb(0, 0, 255)'
Valid value 'hsla(240, 100%, 50%, 0.5)':
-FAIL e.style.webkitTextDecorationColor should be rgba(0, 0, 255, 0.498039). Was hsla(240, 100%, 50%, 0.5).
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgba(0, 0, 255, 0.498039). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgba(0, 0, 255, 0.498039). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.webkitTextDecorationColor should be rgba(0, 0, 255, 0.498039) (of type string). Was undefined (of type undefined).
+PASS e.style.textDecorationColor is 'rgba(0, 0, 255, 0.498039)'
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgba(0, 0, 255, 0.498039)'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgba(0, 0, 255, 0.498039)'
+PASS computedStyle.textDecorationColor is 'rgba(0, 0, 255, 0.498039)'
Initial value:
-PASS e.style.webkitTextDecorationColor is 'initial'
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be initial. Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgb(0, 0, 0). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.webkitTextDecorationColor should be rgb(0, 0, 0) (of type string). Was undefined (of type undefined).
+PASS e.style.textDecorationColor is 'initial'
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSValue]'
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'initial'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 0)'
+PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)'
Invalid value (ie. 'unknown'):
-FAIL e.style.webkitTextDecorationColor should be initial. Was unknown.
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be initial. Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgb(0, 0, 0). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.webkitTextDecorationColor should be rgb(0, 0, 0) (of type string). Was undefined (of type undefined).
+PASS e.style.textDecorationColor is 'initial'
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSValue]'
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'initial'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 0)'
+PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)'
Empty value (resets the property):
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgb(0, 0, 0). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.webkitTextDecorationColor should be rgb(0, 0, 0) (of type string). Was undefined (of type undefined).
+PASS e.style.getPropertyCSSValue('text-decoration-color') is null
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 0)'
+PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)'
Empty value with different 'currentColor' initial value (green):
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call method 'toString' of null
-FAIL computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText should be rgb(0, 128, 0). Threw exception TypeError: Cannot read property 'cssText' of null
-FAIL computedStyle.webkitTextDecorationColor should be rgb(0, 128, 0) (of type string). Was undefined (of type undefined).
+PASS e.style.getPropertyCSSValue('text-decoration-color') is null
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 128, 0)'
+PASS computedStyle.textDecorationColor is 'rgb(0, 128, 0)'
PASS successfullyParsed is true

Powered by Google App Engine
This is Rietveld 408576698