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

Side by Side Diff: sky/engine/core/css/MediaQuerySetTest.cpp

Issue 689853003: Remove CSS Grid Layout and grid media queries. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/css/MediaQueryExp.cpp ('k') | sky/engine/core/css/StylePropertySerializer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/css/MediaQuery.h" 6 #include "core/css/MediaQuery.h"
7 7
8 #include "core/css/MediaList.h" 8 #include "core/css/MediaList.h"
9 #include "wtf/PassOwnPtr.h" 9 #include "wtf/PassOwnPtr.h"
10 #include "wtf/text/StringBuilder.h" 10 #include "wtf/text/StringBuilder.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 {"all and (color)", "(color)", true}, 76 {"all and (color)", "(color)", true},
77 {"all and (min-color: 1)", "(min-color: 1)", true}, 77 {"all and (min-color: 1)", "(min-color: 1)", true},
78 {"all and (min-color: 1.0)", "not all", true}, 78 {"all and (min-color: 1.0)", "not all", true},
79 {"all and (min-color: 2)", "(min-color: 2)", true}, 79 {"all and (min-color: 2)", "(min-color: 2)", true},
80 {"all and (color-index)", "(color-index)", true}, 80 {"all and (color-index)", "(color-index)", true},
81 {"all and (min-color-index: 1)", "(min-color-index: 1)", true}, 81 {"all and (min-color-index: 1)", "(min-color-index: 1)", true},
82 {"all and (monochrome)", "(monochrome)", true}, 82 {"all and (monochrome)", "(monochrome)", true},
83 {"all and (min-monochrome: 1)", "(min-monochrome: 1)", true}, 83 {"all and (min-monochrome: 1)", "(min-monochrome: 1)", true},
84 {"all and (min-monochrome: 2)", "(min-monochrome: 2)", true}, 84 {"all and (min-monochrome: 2)", "(min-monochrome: 2)", true},
85 {"print and (monochrome)", 0, true}, 85 {"print and (monochrome)", 0, true},
86 {"handheld and (grid) and (max-width: 15em)", 0, true},
87 {"handheld and (grid) and (max-device-height: 7em)", 0, true},
88 {"screen and (max-width: 50%)", "not all", true}, 86 {"screen and (max-width: 50%)", "not all", true},
89 {"screen and (max-WIDTH: 500px)", "screen and (max-width: 500px)", true} , 87 {"screen and (max-WIDTH: 500px)", "screen and (max-width: 500px)", true} ,
90 {"screen and (max-width: 24.4em)", 0, true}, 88 {"screen and (max-width: 24.4em)", 0, true},
91 {"screen and (max-width: 24.4EM)", "screen and (max-width: 24.4em)", tru e}, 89 {"screen and (max-width: 24.4EM)", "screen and (max-width: 24.4em)", tru e},
92 {"screen and (max-width: blabla)", "not all", true}, 90 {"screen and (max-width: blabla)", "not all", true},
93 {"screen and (max-width: 1)", "not all", true}, 91 {"screen and (max-width: 1)", "not all", true},
94 {"screen and (max-width: 0)", 0, true}, 92 {"screen and (max-width: 0)", 0, true},
95 {"screen and (max-width: 1deg)", "not all", true}, 93 {"screen and (max-width: 1deg)", "not all", true},
96 {"handheld and (min-width: 20em), \nscreen and (min-width: 20em)", "hand held and (min-width: 20em), screen and (min-width: 20em)", true}, 94 {"handheld and (min-width: 20em), \nscreen and (min-width: 20em)", "hand held and (min-width: 20em), screen and (min-width: 20em)", true},
97 {"print and (min-resolution: 300dpi)", 0, true}, 95 {"print and (min-resolution: 300dpi)", 0, true},
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 162
165 for (unsigned i = 0; testCases[i].input; ++i) { 163 for (unsigned i = 0; testCases[i].input; ++i) {
166 RefPtr<MediaQuerySet> oldParserQuerySet = MediaQuerySet::create(testCase s[i].input); 164 RefPtr<MediaQuerySet> oldParserQuerySet = MediaQuerySet::create(testCase s[i].input);
167 RefPtr<MediaQuerySet> threadSafeQuerySet = MediaQuerySet::createOffMainT hread(testCases[i].input); 165 RefPtr<MediaQuerySet> threadSafeQuerySet = MediaQuerySet::createOffMainT hread(testCases[i].input);
168 testMediaQuery(testCases[i], *oldParserQuerySet, true); 166 testMediaQuery(testCases[i], *oldParserQuerySet, true);
169 testMediaQuery(testCases[i], *threadSafeQuerySet, false); 167 testMediaQuery(testCases[i], *threadSafeQuerySet, false);
170 } 168 }
171 } 169 }
172 170
173 } // namespace 171 } // namespace
OLDNEW
« no previous file with comments | « sky/engine/core/css/MediaQueryExp.cpp ('k') | sky/engine/core/css/StylePropertySerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698