mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
36 lines
679 B
HTML
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>
|