| OLD | NEW |
| 1 <script> | 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."); | 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 | 3 // See also http://crbug.com/494640 |
| 4 | 4 |
| 5 var iframe = document.documentElement.appendChild(document.createElement('iframe
')); | 5 var iframe = document.documentElement.appendChild(document.createElement('iframe
')); |
| 6 iframe.src = 'data:text/plain,hello'; | 6 iframe.src = 'data:text/plain,hello'; |
| 7 iframe.onload = function() { | 7 iframe.onload = function() { |
| 8 var uri = IDBKeyRange.only.call(frames[0], 0).constructor.constructor('retur
n location.href')(); | 8 var uri = IDBKeyRange.only.call(frames[0], 0).constructor.constructor('retur
n location.href')(); |
| 9 console.log(uri); | 9 console.log(uri); |
| 10 if (window.testRunner) { | 10 if (window.testRunner) { |
| 11 testRunner.notifyDone(); | 11 testRunner.notifyDone(); |
| 12 } | 12 } |
| 13 } | 13 } |
| 14 | 14 |
| 15 if (window.testRunner) { | 15 if (window.testRunner) { |
| 16 testRunner.waitUntilDone(); | 16 testRunner.waitUntilDone(); |
| 17 testRunner.dumpAsText(); | 17 testRunner.dumpAsText(); |
| 18 } | 18 } |
| 19 </script> | 19 </script> |
| OLD | NEW |