blob: d0a3d1d47fc0d59fc44bcadf3fa3feb2a7be401b [file] [log] [blame]
cdumez@apple.com2485e362016-07-27 21:33:57 +00001<!DOCTYPE html>
2<html>
3<head>
4<style>
5@media screen { a { text-weight: bold } }
6</style>
7</head>
8<body>
9<script src="../../resources/js-test-pre.js"></script>
10<script>
11description("Tests that the parameters to MediaList.item() / deleteMedium() / appendMedium() are mandatory.");
12
13var mediaList = document.getElementsByTagName("style")[0].sheet.media;
14shouldBe("mediaList.__proto__", "MediaList.prototype");
15
16shouldThrow("mediaList.item()", "'TypeError: Not enough arguments'");
17shouldThrow("mediaList.deleteMedium()", "'TypeError: Not enough arguments'");
18shouldThrow("mediaList.appendMedium()", "'TypeError: Not enough arguments'");
19</script>
20<script src="../../resources/js-test-post.js"></script>
21</body>
22</html>