Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / main-world-does-not-override-keystate.html
blob8e1766a43357fabccca05f47976aaa2686b448c8
1 <!DOCTYPE html>
2 <script>
3 function test()
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.dumpNavigationPolicy();
8 window.addEventListener('keydown', function(event) {
9 var mouseEvent = new MouseEvent('click', { ctrlKey: true, metaKey: true });
10 var link = document.getElementById('link');
11 link.dispatchEvent(mouseEvent);
12 });
13 eventSender.keyDown("a");
16 </script>
17 <body onload="test()">
18 <p>Tests that adding a ctrl modifier to a click on a link from the main world triggers a foreground tab.</p>
19 <a href="blank" id="link">link</a>
20 </body>