Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Window/lenient-this-issue569043.html

Issue 1539813002: bindings: Fixes [LenientThis] to refer to the correct object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/Window/lenient-this-issue569043-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/Window/lenient-this-issue569043-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698