3 <script type=
"text/javascript">
4 function deletePlugin() {
6 document
.getElementById('foo').removeChild(document
.getElementById('plugin'));
8 // Forces a style recalculation which actually will delete the plugin.
9 // Without this, the plugin would be deleted later from a timer. If the test
10 // fails, this line will cause the crash.
11 var foo
= document
.getElementById('foo').offsetWidth
;
13 // If we get here, there's no crash so we succeeded.
14 document
.cookie
= "COMPLETION_COOKIE=PASS; path=/";
17 This test tests deleting a the
<object
> synchronously from within a
18 script call. Neither the proxy nor the PPAPI implementation should crash in
21 <object id=
"plugin" type=
"application/x-ppapi-tests" width=
"400" height=
"400" style=
"border:5px solid blue;">
22 <param name=
"customtest" value=
"delete_plugin">