2 <script src=
"../../resources/js-test.js"></script>
3 <a href='about:blank' target='_blank'
></a>
5 description('Check that a javascript generated mouse click is not enough to open a new tab.');
6 if (window
.testRunner
) {
7 testRunner
.setCanOpenWindows();
8 testRunner
.setPopupBlockingEnabled(true);
11 document
.querySelector('a').dispatchEvent(new MouseEvent('click', {ctrlKey
: true, metaKey
: true}));
13 if (window
.testRunner
)
14 shouldBe("testRunner.windowCount()", "1");