gecko/dom/plugins/test/crashtests/539897-1.html

36 lines
679 B
HTML
Raw Normal View History

2010-03-25 18:49:46 -07:00
<!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>