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

Unified Diff: LayoutTests/fast/media/mq-js-update-media.html

Issue 692433003: Don't require getPropertyCSSValue in fast tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/media/mq-js-update-media.html
diff --git a/LayoutTests/fast/media/mq-js-update-media.html b/LayoutTests/fast/media/mq-js-update-media.html
index c94efcb840d5c355a069bfa4ecd47b486c6e3ea3..a3085a893cdc3ffa0b8f340d0c34281984baf211 100644
--- a/LayoutTests/fast/media/mq-js-update-media.html
+++ b/LayoutTests/fast/media/mq-js-update-media.html
@@ -14,7 +14,7 @@
var divComputedStyle = window.getComputedStyle(divElement);
test(function() {
- assert_true(divComputedStyle.getPropertyCSSValue('background-color').getRGBColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) == 255,
+ assert_true(divComputedStyle.backgroundColor == "rgb(255, 0, 0)",
"Div should have rgb(255, 0, 0) background color.")
},
"Testing that background color is red. Media query \"all and (color)\"");
@@ -23,7 +23,7 @@
styleElement.setAttribute("media", "(monochrome) and (color)");
test(function() {
- assert_true(divComputedStyle.getPropertyCSSValue('background-color').getRGBColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) == 0,
+ assert_true(divComputedStyle.backgroundColor == "rgba(0, 0, 0, 0)",
"New media query doesn't match, div should not have background color.")
},
"Testing that updated media query doesn't match and background color is not red. Media query \"(monochrome) and (color)\"");

Powered by Google App Engine
This is Rietveld 408576698