Index: LayoutTests/fast/media/mq-js-media-except-01.html |
diff --git a/LayoutTests/fast/media/mq-js-media-except-01.html b/LayoutTests/fast/media/mq-js-media-except-01.html |
index cf68ec86798cbcf2b5435128f8401d52e37c8438..85087220807361c133757d14882b58e4e3a091bc 100644 |
--- a/LayoutTests/fast/media/mq-js-media-except-01.html |
+++ b/LayoutTests/fast/media/mq-js-media-except-01.html |
@@ -13,9 +13,10 @@ p#result { color: green;} |
function test() { |
try { |
document.styleSheets[0].cssRules[0].media.deleteMedium("all and ("); |
+ document.getElementById("result").innerHTML = "Success. This text should be green."; |
} |
catch(e) { |
- document.getElementById("result").innerHTML = "Success." |
+ document.getElementById("result").innerHTML = "Failure. 'all and (' is not a valid medium and should be ignored." |
document.getElementById("details").innerHTML = "Following exception was caught: " + e; |
} |
} |