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

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

Issue 15535005: Added window.testRunner.isChooserShown() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moved things to WebTestProxy Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/color/input-color-chooser-shown.html
diff --git a/LayoutTests/fast/forms/color/input-color-chooser-shown.html b/LayoutTests/fast/forms/color/input-color-chooser-shown.html
new file mode 100644
index 0000000000000000000000000000000000000000..5328d378b56656ffb01204fc3b64cd1589680044
--- /dev/null
+++ b/LayoutTests/fast/forms/color/input-color-chooser-shown.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src="../../../fast/js/resources/js-test-pre.js"></script>
+<script src="../resources/common.js"></script>
+<div id="host" tabindex="1">
+ <input id="target" type="color" value="#000000">
+</div>
+<script>
+
+if (window.eventSender) {
+ window.jsTestIsAsync = true
+
+ clickElement(target);
+ shouldBeTrue("testRunner.isChooserShown()");
+
+ target.style.display = "none";
+
+ var nwait = 5;
+ function testClosed()
+ {
+ nwait--;
+ if (0 < nwait)
+ return window.setTimeout(testClosed, 0);
+ shouldBeFalse("testRunner.isChooserShown()");
+ finishJSTest();
+ }
+
+ window.setTimeout(testClosed, 0);
+}
+
+</script>
+<script src="../../../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698