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

Unified Diff: LayoutTests/fast/forms/select/menulist-type-ahead-find.html

Issue 1013303004: Fix issue on <select> style change when popup is visible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed test expectation Created 5 years, 9 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/select/menulist-type-ahead-find.html
diff --git a/LayoutTests/fast/forms/select/menulist-type-ahead-find.html b/LayoutTests/fast/forms/select/menulist-type-ahead-find.html
index bfe6e8f52fe3eb0fcbce8a3a70717c7386ca5a7c..d784b07967146a812f50ba46de3b39f15c385c62 100644
--- a/LayoutTests/fast/forms/select/menulist-type-ahead-find.html
+++ b/LayoutTests/fast/forms/select/menulist-type-ahead-find.html
@@ -4,13 +4,17 @@
<script>
function recordIt()
{
- document.getElementById("res").innerText = "PASS";
+ var res = document.getElementById("res");
+ if (res.innerText != "FAIL")
+ res.innerText = "PASS";
}
function testIt(ch, expected)
{
document.getElementById("sel").focus();
eventSender.keyDown(ch);
+ if (document.getElementById("sel").selectedIndex != expected)
+ document.getElementById("res").innerText = "FAIL";
}
function test()
@@ -19,7 +23,7 @@ function test()
return;
testRunner.dumpAsText();
- testIt("c", "cherry");
+ testIt("c", 2);
}
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698