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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Window/window-property-shadowing-onclick.html

Issue 1360233007: bindings: Moves event handlers and methods of Window to the instance object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script>
4
5 description('This tests the ES5.2 behavior where global variables should not tri gger setters on the Window object');
6
7 if (window.testRunner)
8 testRunner.dumpAsText();
9
10 var onClickCalled = false;
11
12 var onclick = function(e) {
13 onClickCalled = true;
14 };
15
16 var e = document.createEvent('MouseEvents');
17 e.initMouseEvent('click', true, true, window,
18 0, 0, 0, 0, 0, false, false, false, false, 0, null);
19 document.dispatchEvent(e);
20
21 shouldBeFalse('onClickCalled');
22
23 </script>
24 <script src="../../../resources/js-test.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698