1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/plugins/test/crashtests/539897-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 +<script type="text/javascript"> 1.8 +function crashplugin() { 1.9 + var plugin = document.getElementById('p'); 1.10 + plugin.reinitWidget(); 1.11 + plugin.reinitWidget(); 1.12 +} 1.13 + 1.14 +function getTestCases() { 1.15 + return [ 1.16 + { testPassed: 1.17 + (function () { 1.18 + var plugin = document.getElementById('p'); 1.19 + try { 1.20 + plugin.getPaintCount(); 1.21 + return true; 1.22 + } catch (e) { 1.23 + return false; 1.24 + } 1.25 + }), 1.26 + testDescription: 1.27 + (function () { 1.28 + return "plugin should not crash"; 1.29 + }) 1.30 + } 1.31 + ]; 1.32 +} 1.33 +</script> 1.34 +</head> 1.35 +<body onload="crashplugin();"> 1.36 +<embed id="p" type="application/x-test" wmode="window"/> 1.37 +</body> 1.38 +</html>