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

Side by Side Diff: LayoutTests/fast/css-grid-layout/grid-template-shorthand-get-set-expected.txt

Issue 149373004: [CSS Grid Layout] Implementation of the grid-template shorthand. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@grid-template-working
Patch Set: New approach: simpler code, reusing track-list parsing and allow rewinding. Created 6 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 This test checks that the 'grid-template' shorthand is properly parsed and the l onghand properties correctly assigned.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Test getting grid-template-areas set through CSS.
7 PASS window.getComputedStyle(gridTemplateWithNone, '').getPropertyValue('grid-te mplate-columns') is "none"
8 PASS window.getComputedStyle(gridTemplateWithNone, '').getPropertyValue('grid-te mplate-rows') is "none"
9 PASS window.getComputedStyle(gridTemplateWithNone, '').getPropertyValue('grid-te mplate-areas') is "none"
10 PASS window.getComputedStyle(gridTemplateSimpleForm, '').getPropertyValue('grid- template-columns') is "10px"
11 PASS window.getComputedStyle(gridTemplateSimpleForm, '').getPropertyValue('grid- template-rows') is "15px"
12 PASS window.getComputedStyle(gridTemplateSimpleForm, '').getPropertyValue('grid- template-areas') is "none"
13 PASS window.getComputedStyle(gridTemplateSimpleFormWithNoneColumns, '').getPrope rtyValue('grid-template-columns') is "none"
14 PASS window.getComputedStyle(gridTemplateSimpleFormWithNoneColumns, '').getPrope rtyValue('grid-template-rows') is "15px"
15 PASS window.getComputedStyle(gridTemplateSimpleFormWithNoneColumns, '').getPrope rtyValue('grid-template-areas') is "none"
16 PASS window.getComputedStyle(gridTemplateSimpleFormWithNoneRows, '').getProperty Value('grid-template-columns') is "10px"
17 PASS window.getComputedStyle(gridTemplateSimpleFormWithNoneRows, '').getProperty Value('grid-template-rows') is "none"
18 PASS window.getComputedStyle(gridTemplateSimpleFormWithNoneRows, '').getProperty Value('grid-template-areas') is "none"
19 PASS window.getComputedStyle(gridTemplateSimpleFormWithNone, '').getPropertyValu e('grid-template-columns') is "none"
20 PASS window.getComputedStyle(gridTemplateSimpleFormWithNone, '').getPropertyValu e('grid-template-rows') is "none"
21 PASS window.getComputedStyle(gridTemplateSimpleFormWithNone, '').getPropertyValu e('grid-template-areas') is "none"
22 PASS window.getComputedStyle(gridTemplateComplexForm, '').getPropertyValue('grid -template-columns') is "10px"
23 PASS window.getComputedStyle(gridTemplateComplexForm, '').getPropertyValue('grid -template-rows') is "15px"
24 PASS window.getComputedStyle(gridTemplateComplexForm, '').getPropertyValue('grid -template-areas') is "\"a\""
25 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNames, '').getProper tyValue('grid-template-columns') is "10px"
26 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNames, '').getProper tyValue('grid-template-rows') is "(head) 15px (tail)"
27 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNames, '').getProper tyValue('grid-template-areas') is "\"a\""
28 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleColumns , '').getPropertyValue('grid-template-columns') is "10px"
29 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleColumns , '').getPropertyValue('grid-template-rows') is "(head) 15px (tail)"
30 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleColumns , '').getPropertyValue('grid-template-areas') is "\"a b\""
31 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRows, ' ').getPropertyValue('grid-template-columns') is "10px"
32 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRows, ' ').getPropertyValue('grid-template-rows') is "(head1) 15px (tail1 head2) 20px (t ail2)"
33 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRows, ' ').getPropertyValue('grid-template-areas') is "\"a\" \"b\""
34 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAnd Columns, '').getPropertyValue('grid-template-columns') is "(first) 10px (nav nav 2) 15px (nav nav2) 15px"
35 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAnd Columns, '').getPropertyValue('grid-template-rows') is "100px (nav nav2) 25px (n av nav2) 25px (last)"
36 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAnd Columns, '').getPropertyValue('grid-template-areas') is "\"a b c\" \"d e f\" \"g h i\""
37 PASS window.getComputedStyle(gridTemplateComplexFormWithAuto, '').getPropertyVal ue('grid-template-columns') is "10px"
38 PASS window.getComputedStyle(gridTemplateComplexFormWithAuto, '').getPropertyVal ue('grid-template-rows') is "0px"
39 PASS window.getComputedStyle(gridTemplateComplexFormWithAuto, '').getPropertyVal ue('grid-template-areas') is "\"a\""
40 PASS window.getComputedStyle(gridTemplateComplexFormOnlyAreas, '').getPropertyVa lue('grid-template-columns') is "none"
41 PASS window.getComputedStyle(gridTemplateComplexFormOnlyAreas, '').getPropertyVa lue('grid-template-rows') is "0px"
42 PASS window.getComputedStyle(gridTemplateComplexFormOnlyAreas, '').getPropertyVa lue('grid-template-areas') is "\"a\""
43
44 Test getting wrong values for grid-template shorthand through CSS (they should r esolve to the default: 'none')
45 PASS window.getComputedStyle(gridTemplateMultipleSlash, '').getPropertyValue('gr id-template-columns') is "none"
46 PASS window.getComputedStyle(gridTemplateMultipleSlash, '').getPropertyValue('gr id-template-rows') is "none"
47 PASS window.getComputedStyle(gridTemplateMultipleSlash, '').getPropertyValue('gr id-template-areas') is "none"
48 PASS window.getComputedStyle(gridTemplateSimpleFormJustColumns, '').getPropertyV alue('grid-template-columns') is "none"
49 PASS window.getComputedStyle(gridTemplateSimpleFormJustColumns, '').getPropertyV alue('grid-template-rows') is "none"
50 PASS window.getComputedStyle(gridTemplateSimpleFormJustColumns, '').getPropertyV alue('grid-template-areas') is "none"
51 PASS window.getComputedStyle(gridTemplateSimpleFormNoRows, '').getPropertyValue( 'grid-template-columns') is "none"
52 PASS window.getComputedStyle(gridTemplateSimpleFormNoRows, '').getPropertyValue( 'grid-template-rows') is "none"
53 PASS window.getComputedStyle(gridTemplateSimpleFormNoRows, '').getPropertyValue( 'grid-template-areas') is "none"
54 PASS window.getComputedStyle(gridTemplateSimpleFormNoColumns, '').getPropertyVal ue('grid-template-columns') is "none"
55 PASS window.getComputedStyle(gridTemplateSimpleFormNoColumns, '').getPropertyVal ue('grid-template-rows') is "none"
56 PASS window.getComputedStyle(gridTemplateSimpleFormNoColumns, '').getPropertyVal ue('grid-template-areas') is "none"
57 PASS window.getComputedStyle(gridTemplateSimpleFormNoColumnSize, '').getProperty Value('grid-template-columns') is "none"
58 PASS window.getComputedStyle(gridTemplateSimpleFormNoColumnSize, '').getProperty Value('grid-template-rows') is "none"
59 PASS window.getComputedStyle(gridTemplateSimpleFormNoColumnSize, '').getProperty Value('grid-template-areas') is "none"
60 PASS window.getComputedStyle(gridTemplateSimpleFormWithFitContent, '').getProper tyValue('grid-template-columns') is "none"
61 PASS window.getComputedStyle(gridTemplateSimpleFormWithFitContent, '').getProper tyValue('grid-template-rows') is "none"
62 PASS window.getComputedStyle(gridTemplateSimpleFormWithFitContent, '').getProper tyValue('grid-template-areas') is "none"
63 PASS window.getComputedStyle(gridTemplateSimpleFormWithWrongRepeat, '').getPrope rtyValue('grid-template-columns') is "none"
64 PASS window.getComputedStyle(gridTemplateSimpleFormWithWrongRepeat, '').getPrope rtyValue('grid-template-rows') is "none"
65 PASS window.getComputedStyle(gridTemplateSimpleFormWithWrongRepeat, '').getPrope rtyValue('grid-template-areas') is "none"
66 PASS window.getComputedStyle(gridTemplateSimpleFormWithMisplacedNone1, '').getPr opertyValue('grid-template-columns') is "none"
67 PASS window.getComputedStyle(gridTemplateSimpleFormWithMisplacedNone1, '').getPr opertyValue('grid-template-rows') is "none"
68 PASS window.getComputedStyle(gridTemplateSimpleFormWithMisplacedNone1, '').getPr opertyValue('grid-template-areas') is "none"
69 PASS window.getComputedStyle(gridTemplateSimpleFormWithMisplacedNone2, '').getPr opertyValue('grid-template-columns') is "none"
70 PASS window.getComputedStyle(gridTemplateSimpleFormWithMisplacedNone2, '').getPr opertyValue('grid-template-rows') is "none"
71 PASS window.getComputedStyle(gridTemplateSimpleFormWithMisplacedNone2, '').getPr opertyValue('grid-template-areas') is "none"
72 PASS window.getComputedStyle(gridTemplateSimpleFormWithMisplacedNone3, '').getPr opertyValue('grid-template-columns') is "none"
73 PASS window.getComputedStyle(gridTemplateSimpleFormWithMisplacedNone3, '').getPr opertyValue('grid-template-rows') is "none"
74 PASS window.getComputedStyle(gridTemplateSimpleFormWithMisplacedNone3, '').getPr opertyValue('grid-template-areas') is "none"
75 PASS window.getComputedStyle(gridTemplateSimpleFormWithMisplacedNone4, '').getPr opertyValue('grid-template-columns') is "none"
76 PASS window.getComputedStyle(gridTemplateSimpleFormWithMisplacedNone4, '').getPr opertyValue('grid-template-rows') is "none"
77 PASS window.getComputedStyle(gridTemplateSimpleFormWithMisplacedNone4, '').getPr opertyValue('grid-template-areas') is "none"
78 PASS window.getComputedStyle(gridTemplateComplexFormWithRepeat, '').getPropertyV alue('grid-template-columns') is "none"
79 PASS window.getComputedStyle(gridTemplateComplexFormWithRepeat, '').getPropertyV alue('grid-template-rows') is "none"
80 PASS window.getComputedStyle(gridTemplateComplexFormWithRepeat, '').getPropertyV alue('grid-template-areas') is "none"
81 PASS window.getComputedStyle(gridTemplateComplexFormWithWrongRepeat, '').getProp ertyValue('grid-template-columns') is "none"
82 PASS window.getComputedStyle(gridTemplateComplexFormWithWrongRepeat, '').getProp ertyValue('grid-template-rows') is "none"
83 PASS window.getComputedStyle(gridTemplateComplexFormWithWrongRepeat, '').getProp ertyValue('grid-template-areas') is "none"
84 PASS window.getComputedStyle(griTemplateComplexFormdWithFitAvailable, '').getPro pertyValue('grid-template-columns') is "none"
85 PASS window.getComputedStyle(griTemplateComplexFormdWithFitAvailable, '').getPro pertyValue('grid-template-rows') is "none"
86 PASS window.getComputedStyle(griTemplateComplexFormdWithFitAvailable, '').getPro pertyValue('grid-template-areas') is "none"
87 PASS window.getComputedStyle(gridTemplateComplexFormNoColumnSize, '').getPropert yValue('grid-template-columns') is "none"
88 PASS window.getComputedStyle(gridTemplateComplexFormNoColumnSize, '').getPropert yValue('grid-template-rows') is "none"
89 PASS window.getComputedStyle(gridTemplateComplexFormNoColumnSize, '').getPropert yValue('grid-template-areas') is "none"
90 PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize1, '').getP ropertyValue('grid-template-columns') is "none"
91 PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize1, '').getP ropertyValue('grid-template-rows') is "none"
92 PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize1, '').getP ropertyValue('grid-template-areas') is "none"
93 PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize2, '').getP ropertyValue('grid-template-columns') is "none"
94 PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize2, '').getP ropertyValue('grid-template-rows') is "none"
95 PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize2, '').getP ropertyValue('grid-template-areas') is "none"
96
97 Test the initial value
98 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-column s') is "none"
99 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
100 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-areas' ) is "none"
101 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is 'none'
102 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is 'no ne'
103 PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is 'n one'
104
105 Test getting and setting grid-template shorthand through JS
106 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "18px"
107 PASS element.style.gridTemplateColumns is "18px"
108 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "66 px"
109 PASS element.style.gridTemplateRows is "66px"
110 PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "n one"
111 PASS element.style.gridTemplateAreas is "none"
112 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "10px"
113 PASS element.style.gridTemplateColumns is "10px"
114 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "(h ead) 15px (tail)"
115 PASS element.style.gridTemplateRows is "(head) 15px (tail)"
116 PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "\ "a\""
117 PASS element.style.gridTemplateAreas is "\"a\""
118 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
119 PASS element.style.gridTemplateColumns is "none"
120 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "0p x"
121 PASS element.style.gridTemplateRows is "auto"
122 PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "\ "a\""
123 PASS element.style.gridTemplateAreas is "\"a\""
124 PASS successfullyParsed is true
125
126 TEST COMPLETE
127
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698