mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-22 04:13:06 +09:00
35 lines
679 B
HTML
35 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>
|