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

Unified Diff: LayoutTests/fast/media/mq-js-media-except-03.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
Index: LayoutTests/fast/media/mq-js-media-except-03.html
diff --git a/LayoutTests/fast/media/mq-js-media-except-03.html b/LayoutTests/fast/media/mq-js-media-except-03.html
index fe3c3dd2a9f9a4b744897e9516ba461b4823c0fe..9d06b8209598080a54c01a60370b63cf59ad76e8 100644
--- a/LayoutTests/fast/media/mq-js-media-except-03.html
+++ b/LayoutTests/fast/media/mq-js-media-except-03.html
@@ -25,11 +25,11 @@ function test() {
return;
}
try {
- // this should throw
+ // this shouldn't throw
document.styleSheets[0].cssRules[1].media.mediaText = ",,,,";
- document.getElementById("result").innerHTML = "Failure. No exception thrown.";
- } catch (e) {
document.getElementById("result").innerHTML = "Success. This text should be green.";
+ } catch (e) {
+ document.getElementById("result").innerHTML = "Failure. Exception thrown.";
document.getElementById("details").innerHTML = "Caught exception: " + e;
}
}
@@ -38,6 +38,6 @@ function test() {
</head>
<body onload="test()">
<p id="result">Failure: test not run</p>
-<p id="details">aaa</p>
+<p id="details"></p>
</body>
</html>
« no previous file with comments | « LayoutTests/fast/media/mq-js-media-except-02-expected.html ('k') | LayoutTests/fast/media/mq-js-media-except-03-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698