summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/plugins/mouse-click-plugin-clears-selection.html
blob: 33f80d879be7f335e0ce801b451fa2b4f9e7cfc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html>
<head>
<script src="../resources/plugin.js"></script>
<script>
startAfterLoadAndFinish(function() {
    inputElement = document.getElementById('frame');
    inputElement.focus();
    inputElement.select();

    if (!window.testRunner) {
        output.textContent = "Test that clicking on a plugin clears the selection on the currently focused element. Click on the plugin; the text in the input control should no longer be highlighted. The rendertree for this test should not contain any selection information. See https://bugs.webkit.org/show_bug.cgi?id=30355";
    } else {
        eventSender.mouseMoveTo(60, 60);
        eventSender.mouseDown();
        eventSender.mouseUp();
    }
});
</script>
</head>
<body>
<embed id="plg" type="application/x-webkit-test-netscape" width="100" height="100" windowedplugin="false"></embed><br>
<input id="frame" value="hello"/>
<div id="output"></div>
</body>
</html>