Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/color/display-none-input-color-chooser-shown.html

Issue 2110783002: Open a color input with display:none via a label (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated testcase to include closure of popup when parent is removed Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/forms/ColorInputType.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/forms/ColorInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698