blob: 37c950c15dca6b93713b92684331f5ddf8c0107d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../js/resources/js-test-pre.js"></script>
<script src="resources/microdata-common.js"></script>
</head>
<body>
<p>This tests that itemProp and itemProp.length must be read-only.</p>
<div id="console"></div>
<script>
var element = createElement('div', {itemprop: 'foo'});
shouldBeTrue("element.itemProp = 'test'; element.itemProp.toString() == 'foo'");
shouldBeFalse("element.itemProp.contains('test')");
shouldBeTrue("element.itemProp.length = 0; element.itemProp.length == 1");
</script>
<script src="../../js/resources/js-test-post.js"></script>
</body>
</html>