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

Unified 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, 6 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
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/styles/media-queries.sky
diff --git a/sky/tests/styles/media-queries.sky b/sky/tests/styles/media-queries.sky
deleted file mode 100644
index 9938e9b1babc2d7b8e2d6124eff613d735a3da86..0000000000000000000000000000000000000000
--- a/sky/tests/styles/media-queries.sky
+++ /dev/null
@@ -1,34 +0,0 @@
-<html>
-
-<style media="(max-width: 0px)">
- #test { color: rgb(255, 0, 0); }
-</style>
-<div id="does-not-match">Should not be red.</div>
-
-<style media="(max-width: 10000px)">
- #matches { color: rgb(255, 0, 0); }
-</style>
-
-<div id="matches">Should be red.</div>
-
-<script>
-import "../resources/third_party/unittest/unittest.dart";
-import "../resources/unit.dart";
-
-import "dart:sky";
-
-void main() {
- initUnit();
-
- test('should allow sheets to apply when they match', () {
- var element = document.getElementById('matches');
- expect(window.getComputedStyle(element)["color"], equals("rgb(255, 0, 0)"));
- });
-
- test('should cause sheets to be skipped when they do not match', () {
- var element = document.getElementById('does-not-match');
- expect(window.getComputedStyle(element)["color"], equals("rgb(0, 0, 0)"));
- });
-}
-</script>
-</html>
« 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