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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css-grid-layout/resources/grid-definitions-parsing-utils.js
diff --git a/LayoutTests/fast/css-grid-layout/resources/grid-definitions-parsing-utils.js b/LayoutTests/fast/css-grid-layout/resources/grid-definitions-parsing-utils.js
index edbcd7c8a331102046623de503cb824b4579d0d0..f0876da142bad0d8bd229102690c110b37254e81 100644
--- a/LayoutTests/fast/css-grid-layout/resources/grid-definitions-parsing-utils.js
+++ b/LayoutTests/fast/css-grid-layout/resources/grid-definitions-parsing-utils.js
@@ -61,3 +61,11 @@ function checkGridAutoFlowSetJSValue(newValue, expectedStyleValue, expectedCompu
shouldBe("window.getComputedStyle(element, '').getPropertyValue('grid-auto-flow')", "'" + expectedComputedStyleValue + "'");
document.body.removeChild(element);
}
+
+function testGridAutoDefinitionsValues(element, computedRowValue, computedColumnValue)
+{
+ window.element = element;
+ var elementID = element.id || "element";
+ shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPropertyValue('grid-auto-rows')", computedRowValue);
+ shouldBeEqualToString("window.getComputedStyle(" + elementID + ", '').getPropertyValue('grid-auto-columns')", computedColumnValue);
+}

Powered by Google App Engine
This is Rietveld 408576698