| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <iframe name="frame1"></iframe> |
| 4 <script src="../../../resources/js-test.js"></script> |
| 5 <div id="description"></div> |
| 6 <div id="console"></div> |
| 7 <script> |
| 8 "use strict"; |
| 9 |
| 10 description("Test that Issue 569043 has been fixed and [LenientThis] and 'super'
are working as expected."); |
| 11 if (window.testRunner) { |
| 12 testRunner.dumpAsText(); |
| 13 } |
| 14 |
| 15 class A { |
| 16 inject() { |
| 17 super.onmousedown = Function; // not [LenientThis] |
| 18 super.onmouseenter = Function; // [LenientThis] |
| 19 } |
| 20 } |
| 21 |
| 22 A.prototype.__proto__ = window; |
| 23 |
| 24 var a = new A(); |
| 25 |
| 26 a.inject.call(frame1) |
| 27 |
| 28 shouldBe("window.onmousedown", "Function"); |
| 29 shouldBe("window.onmouseenter", "Function"); |
| 30 shouldBeNull("frame1.onmousedown"); |
| 31 shouldBeNull("frame1.onmouseenter"); |
| 32 </script> |
| 33 </html> |
| OLD | NEW |