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

Side by Side Diff: LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-underline-position-expected.txt

Issue 40733004: Replace compile flag with runtime check for text-underline-position (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Julien's review #2 (rebased) Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Test to make sure -webkit-text-underline-position property returns values proper ly. 1 Test to make sure text-underline-position property returns values properly.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 Initial value: 6 Initial value:
7 PASS e.style.getPropertyCSSValue('-webkit-text-underline-position') is null 7 PASS e.style.getPropertyCSSValue('text-underline-position') is null
8 FAIL computedStyle.webkitTextUnderlinePosition should be auto (of type string). Was undefined (of type undefined). 8 PASS computedStyle.textUnderlinePosition is 'auto'
9 FAIL computedStyle.getPropertyCSSValue('-webkit-text-underline-position').toStri ng() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot cal l method 'toString' of null 9 PASS computedStyle.getPropertyCSSValue('text-underline-position').toString() is '[object CSSPrimitiveValue]'
10 FAIL computedStyle.getPropertyCSSValue('-webkit-text-underline-position').cssTex t should be auto. Threw exception TypeError: Cannot read property 'cssText' of n ull 10 PASS computedStyle.getPropertyCSSValue('text-underline-position').cssText is 'au to'
11 11
12 Value '': 12 Value '':
13 PASS e.style.getPropertyCSSValue('-webkit-text-underline-position') is null 13 PASS e.style.getPropertyCSSValue('text-underline-position') is null
14 FAIL computedStyle.webkitTextUnderlinePosition should be auto (of type string). Was undefined (of type undefined). 14 PASS computedStyle.textUnderlinePosition is 'auto'
15 FAIL computedStyle.getPropertyCSSValue('-webkit-text-underline-position').toStri ng() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot cal l method 'toString' of null 15 PASS computedStyle.getPropertyCSSValue('text-underline-position').toString() is '[object CSSPrimitiveValue]'
16 FAIL computedStyle.getPropertyCSSValue('-webkit-text-underline-position').cssTex t should be auto. Threw exception TypeError: Cannot read property 'cssText' of n ull 16 PASS computedStyle.getPropertyCSSValue('text-underline-position').cssText is 'au to'
17 17
18 Initial value (explicit): 18 Initial value (explicit):
19 PASS e.style.webkitTextUnderlinePosition is 'initial' 19 PASS e.style.textUnderlinePosition is 'initial'
20 FAIL e.style.getPropertyCSSValue('-webkit-text-underline-position').toString() s hould be [object CSSValue]. Threw exception TypeError: Cannot call method 'toStr ing' of null 20 PASS e.style.getPropertyCSSValue('text-underline-position').toString() is '[obje ct CSSValue]'
21 FAIL e.style.getPropertyCSSValue('-webkit-text-underline-position').cssText shou ld be initial. Threw exception TypeError: Cannot read property 'cssText' of null 21 PASS e.style.getPropertyCSSValue('text-underline-position').cssText is 'initial'
22 FAIL computedStyle.webkitTextUnderlinePosition should be auto (of type string). Was undefined (of type undefined). 22 PASS computedStyle.textUnderlinePosition is 'auto'
23 FAIL computedStyle.getPropertyCSSValue('-webkit-text-underline-position').toStri ng() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot cal l method 'toString' of null 23 PASS computedStyle.getPropertyCSSValue('text-underline-position').toString() is '[object CSSPrimitiveValue]'
24 FAIL computedStyle.getPropertyCSSValue('-webkit-text-underline-position').cssTex t should be auto. Threw exception TypeError: Cannot read property 'cssText' of n ull 24 PASS computedStyle.getPropertyCSSValue('text-underline-position').cssText is 'au to'
25 25
26 Value 'auto': 26 Value 'auto':
27 PASS e.style.webkitTextUnderlinePosition is 'auto' 27 PASS e.style.textUnderlinePosition is 'auto'
28 FAIL e.style.getPropertyCSSValue('-webkit-text-underline-position').toString() s hould be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call meth od 'toString' of null 28 PASS e.style.getPropertyCSSValue('text-underline-position').toString() is '[obje ct CSSPrimitiveValue]'
29 FAIL e.style.getPropertyCSSValue('-webkit-text-underline-position').cssText shou ld be auto. Threw exception TypeError: Cannot read property 'cssText' of null 29 PASS e.style.getPropertyCSSValue('text-underline-position').cssText is 'auto'
30 FAIL computedStyle.webkitTextUnderlinePosition should be auto (of type string). Was undefined (of type undefined). 30 PASS computedStyle.textUnderlinePosition is 'auto'
31 FAIL computedStyle.getPropertyCSSValue('-webkit-text-underline-position').toStri ng() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot cal l method 'toString' of null 31 PASS computedStyle.getPropertyCSSValue('text-underline-position').toString() is '[object CSSPrimitiveValue]'
32 FAIL computedStyle.getPropertyCSSValue('-webkit-text-underline-position').cssTex t should be auto. Threw exception TypeError: Cannot read property 'cssText' of n ull 32 PASS computedStyle.getPropertyCSSValue('text-underline-position').cssText is 'au to'
33 33
34 Value 'alphabetic': 34 Value 'alphabetic':
35 PASS e.style.webkitTextUnderlinePosition is 'alphabetic' 35 PASS e.style.textUnderlinePosition is 'alphabetic'
36 FAIL e.style.getPropertyCSSValue('-webkit-text-underline-position').toString() s hould be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call meth od 'toString' of null 36 PASS e.style.getPropertyCSSValue('text-underline-position').toString() is '[obje ct CSSPrimitiveValue]'
37 FAIL e.style.getPropertyCSSValue('-webkit-text-underline-position').cssText shou ld be alphabetic. Threw exception TypeError: Cannot read property 'cssText' of n ull 37 PASS e.style.getPropertyCSSValue('text-underline-position').cssText is 'alphabet ic'
38 FAIL computedStyle.webkitTextUnderlinePosition should be alphabetic (of type str ing). Was undefined (of type undefined). 38 PASS computedStyle.textUnderlinePosition is 'alphabetic'
39 FAIL computedStyle.getPropertyCSSValue('-webkit-text-underline-position').toStri ng() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot cal l method 'toString' of null 39 PASS computedStyle.getPropertyCSSValue('text-underline-position').toString() is '[object CSSPrimitiveValue]'
40 FAIL computedStyle.getPropertyCSSValue('-webkit-text-underline-position').cssTex t should be alphabetic. Threw exception TypeError: Cannot read property 'cssText ' of null 40 PASS computedStyle.getPropertyCSSValue('text-underline-position').cssText is 'al phabetic'
41 41
42 Value 'under': 42 Value 'under':
43 PASS e.style.webkitTextUnderlinePosition is 'under' 43 PASS e.style.textUnderlinePosition is 'under'
44 FAIL e.style.getPropertyCSSValue('-webkit-text-underline-position').toString() s hould be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot call meth od 'toString' of null 44 PASS e.style.getPropertyCSSValue('text-underline-position').toString() is '[obje ct CSSPrimitiveValue]'
45 FAIL e.style.getPropertyCSSValue('-webkit-text-underline-position').cssText shou ld be under. Threw exception TypeError: Cannot read property 'cssText' of null 45 PASS e.style.getPropertyCSSValue('text-underline-position').cssText is 'under'
46 FAIL computedStyle.webkitTextUnderlinePosition should be under (of type string). Was undefined (of type undefined). 46 PASS computedStyle.textUnderlinePosition is 'under'
47 FAIL computedStyle.getPropertyCSSValue('-webkit-text-underline-position').toStri ng() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot cal l method 'toString' of null 47 PASS computedStyle.getPropertyCSSValue('text-underline-position').toString() is '[object CSSPrimitiveValue]'
48 FAIL computedStyle.getPropertyCSSValue('-webkit-text-underline-position').cssTex t should be under. Threw exception TypeError: Cannot read property 'cssText' of null 48 PASS computedStyle.getPropertyCSSValue('text-underline-position').cssText is 'un der'
49 49
50 Ancestor inherits values from parent: 50 Ancestor inherits values from parent:
51 PASS e.style.getPropertyCSSValue('-webkit-text-underline-position') is null 51 PASS e.style.getPropertyCSSValue('text-underline-position') is null
52 FAIL computedStyle.webkitTextUnderlinePosition should be under (of type string). Was undefined (of type undefined). 52 PASS computedStyle.textUnderlinePosition is 'under'
53 FAIL computedStyle.getPropertyCSSValue('-webkit-text-underline-position').toStri ng() should be [object CSSPrimitiveValue]. Threw exception TypeError: Cannot cal l method 'toString' of null 53 PASS computedStyle.getPropertyCSSValue('text-underline-position').toString() is '[object CSSPrimitiveValue]'
54 FAIL computedStyle.getPropertyCSSValue('-webkit-text-underline-position').cssTex t should be under. Threw exception TypeError: Cannot read property 'cssText' of null 54 PASS computedStyle.getPropertyCSSValue('text-underline-position').cssText is 'un der'
55 55
56 Value 'auto alphabetic': 56 Value 'auto alphabetic':
57 PASS e.style.getPropertyCSSValue('-webkit-text-underline-position') is null 57 PASS e.style.getPropertyCSSValue('text-underline-position') is null
58 58
59 Value 'auto under': 59 Value 'auto under':
60 PASS e.style.getPropertyCSSValue('-webkit-text-underline-position') is null 60 PASS e.style.getPropertyCSSValue('text-underline-position') is null
61 61
62 Value 'under under': 62 Value 'under under':
63 PASS e.style.getPropertyCSSValue('-webkit-text-underline-position') is null 63 PASS e.style.getPropertyCSSValue('text-underline-position') is null
64 64
65 Value 'under under under': 65 Value 'under under under':
66 PASS e.style.getPropertyCSSValue('-webkit-text-underline-position') is null 66 PASS e.style.getPropertyCSSValue('text-underline-position') is null
67 67
68 PASS successfullyParsed is true 68 PASS successfullyParsed is true
69 69
70 TEST COMPLETE 70 TEST COMPLETE
71 71
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698