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

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

Issue 15094019: Fixing inconsistency with Media Query append/deleteMedium. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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
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;
}
}

Powered by Google App Engine
This is Rietveld 408576698