OLD | NEW |
1 <body> | 1 <body> |
2 <p>Test equality of plugin object properties.</p> | 2 <p>Test equality of plugin object properties.</p> |
3 <embed id="plugin" type="application/x-webkit-test-netscape"><br> | 3 <embed id="plugin" type="application/x-webkit-test-netscape"><br> |
4 <iframe srcdoc="<script>parent.plugin.remember(parent.document)</script>"></ifra
me> | 4 <iframe srcdoc="<script>parent.plugin.remember(parent.document)</script>"></ifra
me> |
5 <script> | 5 <script> |
6 if (window.testRunner) | 6 if (window.testRunner) |
7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
8 | 8 |
9 window.onload = function() { | 9 window.onload = function() { |
10 var plugin = document.getElementById('plugin'); | 10 var plugin = document.getElementById('plugin'); |
11 var div = document.createElement('div'); | 11 var div = document.createElement('div'); |
12 div.textContent = "Send two references of a JavaScript object to the plugin
for identity comparison in C++ " | 12 div.textContent = "Send two references of a JavaScript object to the plugin
for identity comparison in C++ " |
13 + (plugin.objectsAreSame(document, document) ? "PASS" : "FAIL"); | 13 + (plugin.objectsAreSame(document, document) ? "PASS" : "FAIL"); |
14 document.body.appendChild(div); | 14 document.body.appendChild(div); |
15 } | 15 } |
16 </script> | 16 </script> |
17 </body> | 17 </body> |
OLD | NEW |