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

Unified Diff: sky/tests/styles/media-queries.sky

Issue 942553002: Make element.style["color"] work in Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add back removeProperty Created 5 years, 10 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/styles/inline-style.sky ('k') | no next file » | 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
index ff4f618738d9cf04d244be8db2b6b9d9688a90cd..9938e9b1babc2d7b8e2d6124eff613d735a3da86 100644
--- a/sky/tests/styles/media-queries.sky
+++ b/sky/tests/styles/media-queries.sky
@@ -22,14 +22,12 @@ void main() {
test('should allow sheets to apply when they match', () {
var element = document.getElementById('matches');
- expect(window.getComputedStyle(element).getPropertyValue("color"),
- equals("rgb(255, 0, 0)"));
+ 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).getPropertyValue("color"),
- "rgb(0, 0, 0)");
+ expect(window.getComputedStyle(element)["color"], equals("rgb(0, 0, 0)"));
});
}
</script>
« no previous file with comments | « sky/tests/styles/inline-style.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698