summaryrefslogtreecommitdiffstats
path: root/dom/plugins/test/crashtests/539897-1.html
blob: f280e62e6e4a8e419ca9699592dc1b986fb8e92d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!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>