| 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>
|
|
|
|
|