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

Unified Diff: LayoutTests/fast/dom/shadow/input-color-in-content.html

Issue 15680005: Element::recalcStyle() overly reattach()-es InsertionPoints. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated test and test expectations 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/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>

Powered by Google App Engine
This is Rietveld 408576698