| Index: ppapi/example/example.html
|
| ===================================================================
|
| --- ppapi/example/example.html (revision 75471)
|
| +++ ppapi/example/example.html (working copy)
|
| @@ -5,10 +5,20 @@
|
| <script type="text/javascript">
|
| isPluginDefaultSize = true;
|
|
|
| +var foo = 0;
|
| +
|
| function Test() {
|
| plugin = document.getElementById('plugin');
|
| - // Confirm that this no longer segfaults.
|
| - alert(plugin.toString(new Array(10)));
|
| +
|
| + if (foo == 0) {
|
| + foo = plugin.getObject();
|
| + // Confirm that this no longer segfaults.
|
| + //alert(plugin.toString(new Array(10)));
|
| + alert("first time");
|
| + plugin.parentNode.removeChild(plugin);
|
| + } else {
|
| + alert(foo.toString());
|
| + }
|
| }
|
|
|
| function SetPluginSize(width, height) {
|
| @@ -31,6 +41,7 @@
|
| </script>
|
|
|
| <button onclick='Test()'>Test</button>
|
| + <button id="asdf">Asdf</button>
|
| <button onclick='ToggleSize()'>Toggle Size</button>
|
| <div id="fps" style="background-color:white; font-weight:bold; padding:4px; width:200px;">FPS GOES HERE</div>
|
| <div id="size" style="background-color:white; font-weight:bold; padding:4px; width:200px;"></div>
|
|
|