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

Unified Diff: LayoutTests/fast/css-grid-layout/grid-template-get-set-expected.txt

Issue 18532004: Implement 'grid-template' parsing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined and updated after Ojan's and Elliott's comments Created 7 years, 5 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/grid-template-get-set-expected.txt
diff --git a/LayoutTests/fast/css-grid-layout/grid-template-get-set-expected.txt b/LayoutTests/fast/css-grid-layout/grid-template-get-set-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d251d3d603764049372689278741e050df10f750
--- /dev/null
+++ b/LayoutTests/fast/css-grid-layout/grid-template-get-set-expected.txt
@@ -0,0 +1,31 @@
+This test checks that grid-template is properly parsed.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Test getting grid-template set through CSS.
+PASS window.getComputedStyle(gridWithDefaultTemplate).getPropertyValue('grid-template') is "none"
+PASS window.getComputedStyle(gridWithSingleStringTemplate).getPropertyValue('grid-template') is "'area'"
+PASS window.getComputedStyle(gridWithTwoColumnsTemplate).getPropertyValue('grid-template') is "'first second'"
+PASS window.getComputedStyle(gridWithTwoRowsTemplate).getPropertyValue('grid-template') is "'first' 'second'"
+PASS window.getComputedStyle(gridWithSpanningColumnsTemplate).getPropertyValue('grid-template') is "'span span'"
+PASS window.getComputedStyle(gridWithSpanningRowsDotTemplate).getPropertyValue('grid-template') is "'span' '.'"
+PASS window.getComputedStyle(gridWithDotColumn).getPropertyValue('grid-template') is "'header .' 'footer .'"
+Test grid-template: initial
+PASS window.getComputedStyle(element).getPropertyValue('grid-template') is "'foobar'"
+Test grid-template: inherit
+PASS window.getComputedStyle(parentElement).getPropertyValue('grid-template') is "'foo bar'"
+PASS window.getComputedStyle(element).getPropertyValue('grid-template') is "'foo bar'"
+Test invalid grid-template values.
+PASS window.getComputedStyle(element).getPropertyValue('grid-template') is "none"
+PASS window.getComputedStyle(element).getPropertyValue('grid-template') is "none"
+PASS window.getComputedStyle(element).getPropertyValue('grid-template') is "none"
+PASS window.getComputedStyle(element).getPropertyValue('grid-template') is "none"
+PASS window.getComputedStyle(element).getPropertyValue('grid-template') is "none"
+
+FIXME: We currently don't validate that the named grid areas are <indent>.
+FAIL window.getComputedStyle(element).getPropertyValue('grid-template') should be none. Was 'nav-up'.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698