blob: 5d13046874f409edcc8f3d65680b45118d717530 [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'>
<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 hueSlider = popupDocument.querySelector('hue-slider');
const hueSliderRect = hueSlider.getBoundingClientRect();
eventSender.clearTouchPoints();
eventSender.addTouchPoint(hueSliderRect.left, hueSliderRect.top);
eventSender.touchStart();
eventSender.updateTouchPoint(0, hueSliderRect.left + (hueSliderRect.width / 3), hueSliderRect.top);
eventSender.touchMove();
eventSender.releaseTouchPoint(0);
eventSender.touchEnd();
testRunner.notifyDone();
}
</script>
</body>
</html>