OLD | NEW |
(Empty) | |
| 1 <script> |
| 2 console.log("Tests that static operations return DOM wrappers which are associat
ed with the caller's context, not associated with |this| which can be faked."); |
| 3 // See also http://crbug.com/494640 |
| 4 |
| 5 var iframe = document.documentElement.appendChild(document.createElement('iframe
')); |
| 6 iframe.src = 'data:text/plain,hello'; |
| 7 iframe.onload = function() { |
| 8 var uri = IDBKeyRange.only.call(frames[0], 0).constructor.constructor('retur
n location.href')(); |
| 9 console.log(uri); |
| 10 if (window.testRunner) { |
| 11 testRunner.notifyDone(); |
| 12 } |
| 13 } |
| 14 |
| 15 if (window.testRunner) { |
| 16 testRunner.waitUntilDone(); |
| 17 testRunner.dumpAsText(); |
| 18 } |
| 19 </script> |
OLD | NEW |