4 <script src=
"../resources/common.js"></script>
5 <script src=
"../../../resources/js-test.js"></script>
9 <input id=
"input" type=
"date" style=
"font-family:ahem; font-size:16px;">
10 <button id=
"js-btn-test" type=
"button"></button>
13 description('Tests, after clicking mouse on clearInputButton of date input type, will release mouse capture in case of preventdefault.');
15 var input
= document
.getElementById('input');
16 input
.value
= '2345-07-19';
18 var btn
= document
.getElementById('js-btn-test');
21 btn
.addEventListener('click', function ()
26 document
.addEventListener('mouseup', function (evt
)
31 var clearButton
= getElementByPseudoId(internals
.oldestShadowRoot(input
),'-webkit-clear-button');
32 clickElement(clearButton
);
33 shouldBeEqualToString('input.value', '');
36 shouldBeEqualToString('output', 'Clicked');