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)\""); |