gecko/modules/plugin/test/crashtests/539897-1.html
2010-03-26 14:49:46 +13:00

36 lines
679 B
HTML

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function crashplugin() {
var plugin = document.getElementById('p');
plugin.reinitWidget();
plugin.reinitWidget();
}
function getTestCases() {
return [
{ testPassed:
(function () {
var plugin = document.getElementById('p');
try {
plugin.getPaintCount();
return true;
} catch (e) {
return false;
}
}),
testDescription:
(function () {
return "plugin should not crash";
})
}
];
}
</script>
</head>
<body onload="crashplugin();">
<embed id="p" type="application/x-test" wmode="window"/>
</body>
</html>