blob: 0b9821f9b94231c95569b2df45a2d12ddcd1121b [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
testRunner.waitUntilDone();
</script>
<script src='../../../fast/forms/resources/picker-common.js'></script>
</head>
<body>
<input type='color' id='color' value='#A8A8A8'>
<p id='description' style='opacity: 0'></p>
<div id='console' style='opacity: 0'></div>
<script>
openPickerAppearanceOnly(document.getElementById('color'), openPickerSuccessfulCallback);
function openPickerSuccessfulCallback() {
popupWindow.focus();
const popupDocument = popupWindow.document;
const colorWell = popupDocument.querySelector('color-well');
const colorWellRect = colorWell.getBoundingClientRect();
eventSender.mouseMoveTo(Math.floor(colorWellRect.left),
Math.floor(colorWellRect.bottom));
eventSender.mouseDown();
eventSender.mouseUp();
for (let i = 0; i < 25; i++) {
eventSender.keyDown('ArrowRight');
}
testRunner.notifyDone();
}
</script>
</body>
</html>