| Index: third_party/WebKit/LayoutTests/fast/dom/Window/lenient-this-issue569043.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/Window/lenient-this-issue569043.html b/third_party/WebKit/LayoutTests/fast/dom/Window/lenient-this-issue569043.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a7329a71ae04168a45d856fe7c4159b2feefd1db
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/Window/lenient-this-issue569043.html
|
| @@ -0,0 +1,33 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<iframe name="frame1"></iframe>
|
| +<script src="../../../resources/js-test.js"></script>
|
| +<div id="description"></div>
|
| +<div id="console"></div>
|
| +<script>
|
| +"use strict";
|
| +
|
| +description("Test that Issue 569043 has been fixed and [LenientThis] and 'super' are working as expected.");
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| +}
|
| +
|
| +class A {
|
| + inject() {
|
| + super.onmousedown = Function; // not [LenientThis]
|
| + super.onmouseenter = Function; // [LenientThis]
|
| + }
|
| +}
|
| +
|
| +A.prototype.__proto__ = window;
|
| +
|
| +var a = new A();
|
| +
|
| +a.inject.call(frame1)
|
| +
|
| +shouldBe("window.onmousedown", "Function");
|
| +shouldBe("window.onmouseenter", "Function");
|
| +shouldBeNull("frame1.onmousedown");
|
| +shouldBeNull("frame1.onmouseenter");
|
| +</script>
|
| +</html>
|
|
|