blob: db74ae955df47d689c7c8cd34f32b56d5e657715 [file] [log] [blame]
<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. See https://bugs.webkit.org/show_bug.cgi?id=30355";
} else {
eventSender.mouseMoveTo(60, 60);
eventSender.mouseDown();
eventSender.mouseUp();
}
});
</script>
</head>
<body>
<embed type="application/x-blink-test-plugin" width="100" height="100"></embed><br>
<input id="frame" value="hello"/>
<div id="output"></div>
</body>
</html>