| 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 07bc419bfbce4d6a6e0427a143f63aa7a9542762..c32e9558b2c9965e9027ce006046172e4715e26b 100644
|
| --- a/LayoutTests/fast/media/mq-js-media-except-03.html
|
| +++ b/LayoutTests/fast/media/mq-js-media-except-03.html
|
| @@ -1,34 +1,36 @@
|
| <html>
|
| <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/DOM-Level-2-Style/css.html#CSS-CSSMediaRule" />
|
| -<!-- this test shows slight disconnect between css media queries and html4 media descriptors -->
|
| +<link rel="help" href="http://www.w3.org/TR/CSS21/media.html">
|
| +<link rel="help" href="http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSMediaRule">
|
| +
|
| +<!-- this test shows there there is no disconnect between CSS media queries and HTML5 media descriptors -->
|
| <style type="text/css">
|
| -p#result {color: green}
|
| +
|
| +p#result { color: red }
|
|
|
| @media braille {
|
| -/* query will be modified from javascript */
|
| -/* the manipulation contains syntax error, and should fail */
|
| -p#result {color: red}
|
| -}
|
| + /* query will be modified from javascript */
|
| + /* the manipulation contains syntax error, and should fail */
|
| + p#result { color: red }
|
| }
|
| +
|
| </style>
|
| -<script language="javascript">
|
| +<script>
|
| function test() {
|
| try {
|
| - // this shouldn't throw
|
| + // This shouldn't throw.
|
| document.styleSheets[0].media.mediaText = ",,,,";
|
| - document.getElementById("result").innerHTML = "Success. This text should be green.";
|
| + document.getElementById("result").innerHTML = "Success. This text should not be red.";
|
| } catch (e) {
|
| document.getElementById("result").innerHTML = "Failure. ,,,, should be valid media descriptor.";
|
| document.getElementById("details").innerHTML = "Caught exception: " + e;
|
| return;
|
| }
|
| try {
|
| - // this shouldn't throw
|
| + // This shouldn't throw.
|
| document.styleSheets[0].cssRules[1].media.mediaText = ",,,,";
|
| - document.getElementById("result").innerHTML = "Success. This text should be green.";
|
| + document.getElementById("result").innerHTML = "Success. This text should not be red.";
|
| } catch (e) {
|
| document.getElementById("result").innerHTML = "Failure. Exception thrown.";
|
| document.getElementById("details").innerHTML = "Caught exception: " + e;
|
|
|