blob: bd54a4a441382bce85a3082d6e2eb253f920233b [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../../resources/js-test-pre.js"></script>
<script>
description("This tests the descriptor of CSSStyleDeclaration properties.");
var descriptor = Object.getOwnPropertyDescriptor(document.body.style.__proto__, 'color');
shouldBeType("descriptor['get']", "Function");
shouldBeType("descriptor['set']", "Function");
shouldBeTrue("descriptor['enumerable']");
shouldBeTrue("descriptor['configurable']");
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>