blob: 6c89000ace88421377d342cf66077899af32e167 [file] [log] [blame] [edit]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test.js"></script>
<script>
description("Tests that parameters to CSSStyleDeclaration API are mandatory.");
var style = document.body.style;
shouldThrow("style.item()", "'TypeError: Not enough arguments'");
shouldThrow("style.removeProperty()", "'TypeError: Not enough arguments'");
shouldThrow("style.getPropertyPriority()", "'TypeError: Not enough arguments'");
shouldThrow("style.getPropertyValue()", "'TypeError: Not enough arguments'");
</script>
</body>
</html>