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

Side by Side Diff: LayoutTests/fast/css-grid-layout/resources/grid-definitions-parsing-utils.js

Issue 548263002: [CSSGridLayout] Resolved value of grid-template-* to include every track (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698