Chromium Code Reviews| Index: LayoutTests/fast/dom/shadow/input-color-in-content.html |
| diff --git a/LayoutTests/fast/dom/shadow/input-color-in-content.html b/LayoutTests/fast/dom/shadow/input-color-in-content.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cdcdb700ef4999364680f9cc5ba91f6ec0821914 |
| --- /dev/null |
| +++ b/LayoutTests/fast/dom/shadow/input-color-in-content.html |
| @@ -0,0 +1,32 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<body> |
| +<script src="../../../fast/js/resources/js-test-pre.js"></script> |
| +<div id="host" tabindex="1"> |
| + <input id="target" type="color" value="#000000"> |
| +</div> |
| +<script> |
| + |
| +shadow = host.webkitCreateShadowRoot(); |
| +shadow.innerHTML = "<content></content>"; |
| +jsTestIsAsync = true; |
| + |
| +if (window.eventSender) { |
| + shouldBeFalse("testRunner.isChooserShown()"); |
| + eventSender.dragMode = false; |
| + eventSender.mouseMoveTo(target.offsetLeft, target.offsetTop + target.offsetHeight / 2); |
| + eventSender.mouseDown(); |
| + eventSender.mouseUp(); |
| + testRunner.setWindowIsKey(false); |
| + window.setTimeout(function() { |
| + window.setTimeout(function() { |
| + shouldBeTrue("testRunner.isChooserShown()"); |
| + finishJSTest(); |
| + }, 0); |
| + }, 0); |
|
esprehn
2013/06/13 02:45:40
Btw, these nested setTimeout calls will be flaky.
|
| +} |
| + |
| +</script> |
| +<script src="../../../fast/js/resources/js-test-post.js"></script> |
| +</body> |
| +</html> |