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

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

Issue 14578010: Fixing inconsistency with the media query spec and other browsers (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
« no previous file with comments | « no previous file | LayoutTests/fast/media/mq-js-media-except-02-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/media/mq-js-media-except-02.html
diff --git a/LayoutTests/fast/media/mq-js-media-except-02.html b/LayoutTests/fast/media/mq-js-media-except-02.html
index 657c98ed156082c02015b98acee637456352b842..63f6f2676341d7bc5c3806098ebf4708c6016203 100644
--- a/LayoutTests/fast/media/mq-js-media-except-02.html
+++ b/LayoutTests/fast/media/mq-js-media-except-02.html
@@ -20,13 +20,16 @@ p#result {color: red}
</style>
<script language="javascript">
function test() {
+ // The following is valid according to the CSS 2.1 note: "Media Queries
+ // supercedes this error handling.", as it is malformed and should be
+ // represented as "not all".
try {
- // this should throw
document.styleSheets[0].cssRules[1].media.mediaText = "screen and resolution > 40dpi";
- } catch (e) {
document.getElementById("result").innerHTML = "This text should be green.";
- document.getElementById("details").innerHTML = "Caught exception: " + e;
- }
+ document.getElementById("details").innerHTML = "New media: " + document.styleSheets[0].cssRules[1].media.mediaText;
+ } catch(e) {
+ document.getElementById("details").innerHTML = "An exception was caught: " + e
+ }
}
</script>
« no previous file with comments | « no previous file | LayoutTests/fast/media/mq-js-media-except-02-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698