| OLD | NEW |
| 1 function testGridDefinitionsValues(element, columnValue, rowValue, computedColum
nValue, computedRowValue) | 1 function testGridDefinitionsValues(element, columnValue, rowValue, computedColum
nValue, computedRowValue) |
| 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')", computedColumnValue || columnValue); | 5 shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPro
pertyValue('grid-template-columns')", computedColumnValue || columnValue); |
| 6 shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPro
pertyValue('grid-template-rows')", computedRowValue || rowValue); | 6 shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPro
pertyValue('grid-template-rows')", computedRowValue || 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 function checkGridAutoFlowSetJSValue(newValue, expectedStyleValue, expectedCompu
tedStyleValue) | 54 function checkGridAutoFlowSetJSValue(newValue, expectedStyleValue, expectedCompu
tedStyleValue) |
| 55 { | 55 { |
| 56 element = document.createElement("div"); | 56 element = document.createElement("div"); |
| 57 document.body.appendChild(element); | 57 document.body.appendChild(element); |
| 58 if (newValue) | 58 if (newValue) |
| 59 element.style.gridAutoFlow = newValue; | 59 element.style.gridAutoFlow = newValue; |
| 60 shouldBe("element.style.gridAutoFlow", "'" + expectedStyleValue + "'"); | 60 shouldBe("element.style.gridAutoFlow", "'" + expectedStyleValue + "'"); |
| 61 shouldBe("window.getComputedStyle(element, '').getPropertyValue('grid-auto-f
low')", "'" + expectedComputedStyleValue + "'"); | 61 shouldBe("window.getComputedStyle(element, '').getPropertyValue('grid-auto-f
low')", "'" + expectedComputedStyleValue + "'"); |
| 62 document.body.removeChild(element); | 62 document.body.removeChild(element); |
| 63 } | 63 } |
| 64 |
| 65 function testGridAutoDefinitionsValues(element, computedRowValue, computedColumn
Value) |
| 66 { |
| 67 window.element = element; |
| 68 var elementID = element.id || "element"; |
| 69 shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPro
pertyValue('grid-auto-rows')", computedRowValue); |
| 70 shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPro
pertyValue('grid-auto-columns')", computedColumnValue); |
| 71 } |
| OLD | NEW |