| Index: third_party/WebKit/LayoutTests/fast/dom/StyleSheet/css-medialist-item.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/css-medialist-item.html b/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/css-medialist-item.html
|
| index 847b5ee696d4eac3db52edaf311cae8c80dd60fa..0551120c61cf11d6a8b9f18dc9f2518c2280bdc3 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/css-medialist-item.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/css-medialist-item.html
|
| @@ -4,6 +4,21 @@
|
| <script src="../../../resources/js-test.js"></script>
|
| </head>
|
| <body>
|
| -<script src="script-tests/css-medialist-item.js"></script>
|
| +<script>
|
| +description("This tests indexing outside the range of the media list object.");
|
| +
|
| +var styleElement = document.createElement('style');
|
| +styleElement.setAttribute('media', 'screen, print');
|
| +document.documentElement.appendChild(styleElement)
|
| +var mediaList = document.styleSheets[document.styleSheets.length - 1].media;
|
| +
|
| +shouldEvaluateTo('mediaList.length', 2);
|
| +shouldBeEqualToString('mediaList[0]', 'screen');
|
| +shouldBeEqualToString('mediaList[1]', 'print');
|
| +shouldBeUndefined('mediaList[2]');
|
| +shouldBeUndefined('mediaList[-1]')
|
| +
|
| +document.documentElement.removeChild(styleElement);
|
| +</script>
|
| </body>
|
| </html>
|
|
|