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

Side by Side Diff: sky/tests/styles/media-queries.sky

Issue 1215023003: Fix tests broken by default text color change. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « sky/tests/lowlevel/iframe-expected.txt ('k') | sky/tests/styles/media-queries-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2
3 <style media="(max-width: 0px)">
4 #test { color: rgb(255, 0, 0); }
5 </style>
6 <div id="does-not-match">Should not be red.</div>
7
8 <style media="(max-width: 10000px)">
9 #matches { color: rgb(255, 0, 0); }
10 </style>
11
12 <div id="matches">Should be red.</div>
13
14 <script>
15 import "../resources/third_party/unittest/unittest.dart";
16 import "../resources/unit.dart";
17
18 import "dart:sky";
19
20 void main() {
21 initUnit();
22
23 test('should allow sheets to apply when they match', () {
24 var element = document.getElementById('matches');
25 expect(window.getComputedStyle(element)["color"], equals("rgb(255, 0, 0)"));
26 });
27
28 test('should cause sheets to be skipped when they do not match', () {
29 var element = document.getElementById('does-not-match');
30 expect(window.getComputedStyle(element)["color"], equals("rgb(0, 0, 0)"));
31 });
32 }
33 </script>
34 </html>
OLDNEW
« no previous file with comments | « sky/tests/lowlevel/iframe-expected.txt ('k') | sky/tests/styles/media-queries-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698