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

Side by Side Diff: LayoutTests/fast/forms/color/input-color-chooser-shown.html

Issue 801373002: Oilpan: force finalization on color chooser closing tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 | LayoutTests/fast/forms/color/input-color-chooser-shown-readonly.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="../resources/common.js"></script> 5 <script src="../resources/common.js"></script>
6 <div id="host" tabindex="1"> 6 <div id="host" tabindex="1">
7 <input id="target" type="color" value="#000000"> 7 <input id="target" type="color" value="#000000">
8 </div> 8 </div>
9 <script> 9 <script>
10 10
11 if (window.eventSender) { 11 if (window.eventSender) {
12 window.jsTestIsAsync = true 12 window.jsTestIsAsync = true
13 13
14 clickElement(target); 14 clickElement(target);
15 shouldBeTrue("testRunner.isChooserShown()"); 15 shouldBeTrue("testRunner.isChooserShown()");
16 16
17 target.style.display = "none"; 17 target.style.display = "none";
18 18
19 var nwait = 5; 19 var nwait = 5;
20 function testClosed() 20 function testClosed()
21 { 21 {
22 nwait--; 22 nwait--;
23 if (0 < nwait) 23 if (0 < nwait)
24 return window.setTimeout(testClosed, 0); 24 return window.setTimeout(testClosed, 0);
25 // Let an Oilpan GC finalize the popup controller and bring about closur e of color chooser.
26 gc();
25 shouldBeFalse("testRunner.isChooserShown()"); 27 shouldBeFalse("testRunner.isChooserShown()");
26 finishJSTest(); 28 finishJSTest();
27 } 29 }
28 30
29 window.setTimeout(testClosed, 0); 31 window.setTimeout(testClosed, 0);
30 } 32 }
31 33
32 </script> 34 </script>
33 </body> 35 </body>
34 </html> 36 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/color/input-color-chooser-shown-readonly.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698