OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../../resources/testharness.js"></script> | |
3 <script src="../../../resources/testharnessreport.js"></script> | |
4 <div id="host"> | |
5 <input id="colorPick" type="color" /> | |
6 <label for="colorPick" id="labelPick">Pick a color</label> | |
7 </div> | |
8 <script> | |
9 test (function() { | |
10 assert_true(window.eventSender !== null); | |
11 }, "window.eventSender is required for the test to run"); | |
12 | |
13 test (function() { | |
14 var colorPicker = document.getElementById("colorPick"); | |
15 colorPicker.style.display = "none"; | |
16 var labelPick = document.getElementById("labelPick"); | |
17 var x = labelPick.offsetLeft + labelPick.offsetWidth/2; | |
18 var y = labelPick.offsetTop + labelPick.offsetHeight/2; | |
19 eventSender.mouseMoveTo(x, y); | |
20 eventSender.mouseDown(); | |
21 eventSender.mouseUp(); | |
22 assert_true(testRunner.isChooserShown()); | |
23 | |
24 var div = document.getElementById('host'); | |
25 document.body.removeChild(div); | |
tkent
2016/07/01 06:54:08
In this case, HTMLInputElement::removedFrom() is c
ramya.v
2016/07/01 09:14:45
Can you please provide a test case of document des
tkent
2016/07/01 09:23:28
for example,
1. click a label associated to input
ramya.v
2016/07/01 10:05:50
Made below test case.
<!DOCTYPE html>
<input type
tkent
2016/07/04 01:25:59
Thank you for the investigation. So, this CL won'
ramya.v
2016/07/04 04:47:56
Filed a bug in crbug.com/625525.
Done.
| |
26 setTimeout(function() { assert_false(testRunner.isChooserShown()); }, 5000); | |
tkent
2016/07/01 06:54:08
This doesn't work. This is a sync test.
ramya.v
2016/07/01 09:14:45
Did not get you? Test case shows pass. Is this li
tkent
2016/07/01 09:23:28
I didn't try this patch. But this assert_false()
ramya.v
2016/07/01 10:05:50
Thanks got your point :) Will remove testing this
| |
27 }, "Tests click on label for color picker with display none should show chooser" ); | |
28 </script> | |
OLD | NEW |