Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / window-property-shadowing-onclick.html
blob48a177aa9b9e13a20f8cd824d25be8ab011b1439
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script>
5 description('This tests the ES5.2 behavior where global variables should not trigger setters on the Window object');
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 var onClickCalled = false;
12 var onclick = function(e) {
13 onClickCalled = true;
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);
21 shouldBeFalse('onClickCalled');
23 </script>
24 <script src="../../../resources/js-test.js"></script>