зеркало из https://github.com/mozilla/gecko-dev.git
36 строки
679 B
HTML
36 строки
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>
|