blob: 4448fc553991d7fbf7af3ec8296f3bf07a7bfcc0 [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='#80D9FF'>
<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.clearTouchPoints();
eventSender.addTouchPoint(colorWellRect.left, colorWellRect.top);
eventSender.touchStart();
eventSender.updateTouchPoint(0, colorWellRect.left + (colorWellRect.width * 4 / 10), colorWellRect.top + (colorWellRect.height * 6 / 10));
eventSender.touchMove();
eventSender.releaseTouchPoint(0);
eventSender.touchEnd();
testRunner.notifyDone();
}
</script>
</body>
</html>