| OLD | NEW |
| 1 function testGridDefinitionsValues(element, columnValue, rowValue) | 1 function testGridDefinitionsValues(element, columnValue, rowValue) |
| 2 { | 2 { |
| 3 window.element = element; | 3 window.element = element; |
| 4 var elementID = element.id || "element"; | 4 var elementID = element.id || "element"; |
| 5 shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPro
pertyValue('grid-template-columns')", columnValue); | 5 shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPro
pertyValue('grid-template-columns')", columnValue); |
| 6 shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPro
pertyValue('grid-template-rows')", rowValue); | 6 shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPro
pertyValue('grid-template-rows')", rowValue); |
| 7 } | 7 } |
| 8 | 8 |
| 9 function testGridDefinitionsSetJSValues(columnValue, rowValue, computedColumnVal
ue, computedRowValue, jsColumnValue, jsRowValue) | 9 function testGridDefinitionsSetJSValues(columnValue, rowValue, computedColumnVal
ue, computedRowValue, jsColumnValue, jsRowValue) |
| 10 { | 10 { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 document.body.removeChild(element); | 62 document.body.removeChild(element); |
| 63 } | 63 } |
| 64 | 64 |
| 65 function testGridAutoDefinitionsValues(element, computedRowValue, computedColumn
Value) | 65 function testGridAutoDefinitionsValues(element, computedRowValue, computedColumn
Value) |
| 66 { | 66 { |
| 67 window.element = element; | 67 window.element = element; |
| 68 var elementID = element.id || "element"; | 68 var elementID = element.id || "element"; |
| 69 shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPro
pertyValue('grid-auto-rows')", computedRowValue); | 69 shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPro
pertyValue('grid-auto-rows')", computedRowValue); |
| 70 shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPro
pertyValue('grid-auto-columns')", computedColumnValue); | 70 shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPro
pertyValue('grid-auto-columns')", computedColumnValue); |
| 71 } | 71 } |
| 72 |
| 73 function testGridGapDefinitionsValues(element, computedRowGap, computedColumnGap
) |
| 74 { |
| 75 shouldBeEqualToString("window.getComputedStyle(" + element + ", '').getPrope
rtyValue('grid-row-gap')", computedRowGap); |
| 76 shouldBeEqualToString("window.getComputedStyle(" + element + ", '').getPrope
rtyValue('grid-column-gap')", computedColumnGap); |
| 77 } |
| OLD | NEW |