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

Side by Side Diff: sky/engine/core/css/MediaQueryEvaluatorTest.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/MediaQueryEvaluator.cpp ('k') | sky/engine/core/css/MediaQueryExp.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/MediaQueryEvaluator.h" 6 #include "core/css/MediaQueryEvaluator.h"
7 7
8 #include "core/MediaTypeNames.h" 8 #include "core/MediaTypeNames.h"
9 #include "core/css/MediaList.h" 9 #include "core/css/MediaList.h"
10 #include "core/css/MediaValuesCached.h" 10 #include "core/css/MediaValuesCached.h"
(...skipping 18 matching lines...) Expand all
29 {"screen and (color)", 1}, 29 {"screen and (color)", 1},
30 {"not screen and (color)", 0}, 30 {"not screen and (color)", 0},
31 {"screen and (device-aspect-ratio: 16/9)", 0}, 31 {"screen and (device-aspect-ratio: 16/9)", 0},
32 {"screen and (device-aspect-ratio: 1/1)", 1}, 32 {"screen and (device-aspect-ratio: 1/1)", 1},
33 {"all and (min-color: 2)", 1}, 33 {"all and (min-color: 2)", 1},
34 {"all and (min-color: 32)", 0}, 34 {"all and (min-color: 32)", 0},
35 {"all and (min-color-index: 0)", 1}, 35 {"all and (min-color-index: 0)", 1},
36 {"all and (min-color-index: 1)", 0}, 36 {"all and (min-color-index: 1)", 0},
37 {"all and (monochrome)", 0}, 37 {"all and (monochrome)", 0},
38 {"all and (min-monochrome: 0)", 1}, 38 {"all and (min-monochrome: 0)", 1},
39 {"all and (grid: 0)", 1},
40 {"(resolution: 2dppx)", 1}, 39 {"(resolution: 2dppx)", 1},
41 {"(resolution: 1dppx)", 0}, 40 {"(resolution: 1dppx)", 0},
42 {"(orientation: portrait)", 1}, 41 {"(orientation: portrait)", 1},
43 {"(orientation: landscape)", 0}, 42 {"(orientation: landscape)", 0},
44 {"tv and (scan: progressive)", 0}, 43 {"tv and (scan: progressive)", 0},
45 {"(pointer: coarse)", 0}, 44 {"(pointer: coarse)", 0},
46 {"(pointer: fine)", 1}, 45 {"(pointer: fine)", 1},
47 {"(hover: hover)", 1}, 46 {"(hover: hover)", 1},
48 {"(hover: on-demand)", 0}, 47 {"(hover: on-demand)", 0},
49 {"(hover: none)", 0}, 48 {"(hover: none)", 0},
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 RefPtr<FrameView> view = pageHolder->frame().view(); 127 RefPtr<FrameView> view = pageHolder->frame().view();
129 pageHolder->frame().setView(nullptr); 128 pageHolder->frame().setView(nullptr);
130 MediaQueryEvaluator mediaQueryEvaluator(&pageHolder->frame()); 129 MediaQueryEvaluator mediaQueryEvaluator(&pageHolder->frame());
131 RefPtr<MediaQuerySet> querySet = MediaQuerySet::create("foobar"); 130 RefPtr<MediaQuerySet> querySet = MediaQuerySet::create("foobar");
132 bool output = false; 131 bool output = false;
133 ASSERT_EQ(output, mediaQueryEvaluator.eval(querySet.get())); 132 ASSERT_EQ(output, mediaQueryEvaluator.eval(querySet.get()));
134 pageHolder->frame().setView(view); 133 pageHolder->frame().setView(view);
135 } 134 }
136 135
137 } // namespace 136 } // namespace
OLDNEW
« no previous file with comments | « sky/engine/core/css/MediaQueryEvaluator.cpp ('k') | sky/engine/core/css/MediaQueryExp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698