blob: ebf581421cdc621be2145e2f51314b1f6b4ba461 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<script>
description("This test should trigger exceptions on HTMLTableElement, and verify that the messages are reasonably helpful.");
var t = document.createElement('table');
shouldThrow("t.caption = document.body");
shouldThrow("t.tHead = document.body");
shouldBe("t.createTFoot()", "t.tFoot");
shouldBeNonNull("t.tFoot");
shouldNotThrow("t.tFoot = null");
shouldBeNull("t.tFoot");
shouldThrow("t.tFoot = document.body");
shouldThrow("t.insertRow(-2)");
shouldThrow("t.insertRow(1)");
t.insertRow();
shouldThrow("t.deleteRow(-2)");
shouldThrow("t.deleteRow(2)");
shouldThrow("t.deleteRow()");
</script>
</body>
</html>