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

Unified Diff: third_party/WebKit/LayoutTests/external/csswg-test/css-grid-1/grid-definition/grid-support-grid-template-areas-001.xht

Issue 2670473003: [css-grid] Import W3C Test Suite (Closed)
Patch Set: Add comment about skipped tests Created 3 years, 11 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: third_party/WebKit/LayoutTests/external/csswg-test/css-grid-1/grid-definition/grid-support-grid-template-areas-001.xht
diff --git a/third_party/WebKit/LayoutTests/external/csswg-test/css-grid-1/grid-definition/grid-support-grid-template-areas-001.xht b/third_party/WebKit/LayoutTests/external/csswg-test/css-grid-1/grid-definition/grid-support-grid-template-areas-001.xht
new file mode 100644
index 0000000000000000000000000000000000000000..2f88e747f9dc7bebad063802bfb30cab3661c154
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/csswg-test/css-grid-1/grid-definition/grid-support-grid-template-areas-001.xht
@@ -0,0 +1,77 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Grid Layout Test: Support for 'grid-template-ares' property</title>
+ <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
+ <link rel="help" href="http://www.w3.org/TR/css-grid-1/#grid-template-areas-property" title="5.2 Named Areas: the 'grid-template-areas' property" />
+ <meta name="flags" content="ahem dom" />
+ <meta name="assert" content="This test checks that 'grid-template-areas' is supported in a grid. So you can define the grid structure." />
+ <script src="/resources/testharness.js" type="text/javascript"></script>
+ <script src="/resources/testharnessreport.js" type="text/javascript"></script>
+ <script src="support/testing-utils.js" type="text/javascript"></script>
+ <style type="text/css"><![CDATA[
+ #grid {
+ display: grid;
+ }
+ ]]></style>
+ </head>
+ <body>
+ <div id="log"></div>
+
+ <div id="grid"></div>
+
+ <script type="text/javascript"><![CDATA[
+ // Single values.
+ TestingUtils.testGridTemplateAreas('grid', 'none', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"a"', '"a"');
+ TestingUtils.testGridTemplateAreas('grid', '"."', '"."');
+ TestingUtils.testGridTemplateAreas('grid', '"lower UPPER 10 -minus _low 1-st ©copy_right line¶"', '"lower UPPER 10 -minus _low 1-st ©copy_right line¶"');
+ TestingUtils.testGridTemplateAreas('grid', '"a b"', '"a b"');
+ TestingUtils.testGridTemplateAreas('grid', '"a b" "c d"', '"a b" "c d"');
+ TestingUtils.testGridTemplateAreas('grid', '"a b" "c d"', ['"a b" "c d"', '"a b" "c d"']);
+ TestingUtils.testGridTemplateAreas('grid', '"a b""c d"', '"a b" "c d"');
+ TestingUtils.testGridTemplateAreas('grid', '"a b"\t"c d"', '"a b" "c d"');
+ TestingUtils.testGridTemplateAreas('grid', '"a b"\n"c d"', '"a b" "c d"');
+ TestingUtils.testGridTemplateAreas('grid', '"a b" "a b"', '"a b" "a b"');
+ TestingUtils.testGridTemplateAreas('grid', '"a a" "b b"', '"a a" "b b"');
+ TestingUtils.testGridTemplateAreas('grid', '". a ." "b a c"', '". a ." "b a c"');
+ TestingUtils.testGridTemplateAreas('grid', '".. a ..." "b a c"', ['". a ." "b a c"', '".. a ..." "b a c"']);
+ TestingUtils.testGridTemplateAreas('grid', '".a..." "b a c"', ['". a ." "b a c"', '".a..." "b a c"']);
+ TestingUtils.testGridTemplateAreas('grid', '"head head" "nav main" "foot ."', '"head head" "nav main" "foot ."');
+ TestingUtils.testGridTemplateAreas('grid', '"head head" "nav main" "foot ...."', ['"head head" "nav main" "foot ."', '"head head" "nav main" "foot ...."']);
+ TestingUtils.testGridTemplateAreas('grid', '"head head" "nav main" "foot."', ['"head head" "nav main" "foot ."', '"head head" "nav main" "foot."']);
+ TestingUtils.testGridTemplateAreas('grid', '". header header ." "nav main main main" "nav footer footer ."', '". header header ." "nav main main main" "nav footer footer ."');
+ TestingUtils.testGridTemplateAreas('grid', '"... header header ...." "nav main main main" "nav footer footer ...."', ['". header header ." "nav main main main" "nav footer footer ."', '"... header header ...." "nav main main main" "nav footer footer ...."']);
+ TestingUtils.testGridTemplateAreas('grid', '"...header header...." "nav main main main" "nav footer footer...."', ['". header header ." "nav main main main" "nav footer footer ."', '"...header header...." "nav main main main" "nav footer footer...."']);
+ TestingUtils.testGridTemplateAreas('grid', '"title stats" "score stats" "board board" "ctrls ctrls"', '"title stats" "score stats" "board board" "ctrls ctrls"');
+ TestingUtils.testGridTemplateAreas('grid', '"title board" "stats board" "score ctrls"', '"title board" "stats board" "score ctrls"');
+ TestingUtils.testGridTemplateAreas('grid', '". a" "b a" ". a"', '". a" "b a" ". a"');
+ TestingUtils.testGridTemplateAreas('grid', '".. a" "b a" "... a"', ['". a" "b a" ". a"', '".. a" "b a" "... a"']);
+ TestingUtils.testGridTemplateAreas('grid', '"..a" "b a" ".a"', ['". a" "b a" ". a"', '"..a" "b a" ".a"']);
+ TestingUtils.testGridTemplateAreas('grid', '"a a a" "b b b"', '"a a a" "b b b"');
+ TestingUtils.testGridTemplateAreas('grid', '". ." "a a"', '". ." "a a"');
+ TestingUtils.testGridTemplateAreas('grid', '"... ...." "a a"', ['". ." "a a"', '"... ...." "a a"']);
+
+ // Reset values.
+ document.getElementById('grid').style.gridTemplateAreas = '';
+
+ // Wrong values.
+ TestingUtils.testGridTemplateAreas('grid', 'a', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"a" "b c"', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"a b" "c" "d e"', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"a b c" "d e"', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"a b"-"c d"', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"a b" - "c d"', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"a b" . "c d"', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"a b a"', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"a" "b" "a"', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"a b" "b b"', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"b a" "b b"', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"a b" "b a"', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"a ." ". a"', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '","', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"10%"', 'none');
+ TestingUtils.testGridTemplateAreas('grid', '"USD$"', 'none');
+ ]]></script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698