blob: d0aa07db62fcdc2245c4a1578628570b9954344d [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test-pre.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.getPropertyCSSValue()", "'TypeError: Not enough arguments'");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>