blob: 6c199fe35691ac2e57632d5060d62b4257d20d57 [file] [log] [blame]
<html>
<head><title>ThrowOnDealloc</title>
<script>
function print(message)
{
var paragraph = document.createElement('p');
paragraph.appendChild(document.createTextNode(message));
document.getElementById('console').appendChild(paragraph);
}
function test()
{
if (window.layoutTestController)
layoutTestController.dumpAsText();
if (!window.objCPlugin)
return print('FAIL - no objCPlugin');
// Set a flag to indicate that the object should throw
// an exception on dealloc of the plugin
objCPlugin.throwOnDealloc = true;
}
</script>
</head>
<body onload="test();">
<div id='console'/>
</body>
</html>