2 <script src=
"../../../resources/js-test.js"></script>
5 description('This tests the ES5.2 behavior where global variables should not trigger setters on the Window object');
8 testRunner
.dumpAsText();
10 var onClickCalled
= false;
12 var onclick = function(e
) {
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');
24 <script src=
"../../../resources/js-test.js"></script>