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

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

Issue 14065029: Improved parse error handling for CSSMQ. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 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-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..5897dde96bdcbd14ffd114dac854766489a22564 100644
--- a/LayoutTests/fast/media/mq-js-media-except-02.html
+++ b/LayoutTests/fast/media/mq-js-media-except-02.html
@@ -2,6 +2,7 @@
<head>
<title>CSS3 media query test: @media css rule media.mediaText property parsing, media query syntax error should be handled correctly.</title>
<link rel="help" href="http://www.w3.org/TR/CSS21/media.html" />
+<link rel="help" href="http://www.w3.org/TR/cssom/#dom-medialist-mediatext" />
<style type="text/css">
p#result {color: green}
@@ -23,8 +24,8 @@ function test() {
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.";
+ } catch (e) {
document.getElementById("details").innerHTML = "Caught exception: " + e;
}
}
« no previous file with comments | « LayoutTests/fast/media/mq-invalid-syntax-02-expected.html ('k') | 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