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

Unified Diff: LayoutTests/fast/forms/select/menulist-popup-type-ahead-style-change.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-popup-type-ahead-style-change.html
diff --git a/LayoutTests/fast/forms/select/menulist-update-text-popup.html b/LayoutTests/fast/forms/select/menulist-popup-type-ahead-style-change.html
similarity index 70%
copy from LayoutTests/fast/forms/select/menulist-update-text-popup.html
copy to LayoutTests/fast/forms/select/menulist-popup-type-ahead-style-change.html
index 0ae9e9d196a87753026662076063162afa04ceab..b0f3c183b6db7ace693a137cb594be1561757519 100644
--- a/LayoutTests/fast/forms/select/menulist-update-text-popup.html
+++ b/LayoutTests/fast/forms/select/menulist-popup-type-ahead-style-change.html
@@ -1,4 +1,6 @@
-Tests &lt;select&gt; text update when popup is visible and selectionIndex changes.<br>
+<!DOCTYPE html>
+Tests &lt;select&gt; style change when popup is visible after selection is changed
+by keyboard typeahead. The selection should not change when style changes.
Needs run-layout-test.<br>
<div style="position: absolute; top: 50px">
<select id="select">
@@ -14,12 +16,14 @@ if (window.testRunner && window.eventSender) {
var select = document.getElementById('select');
select.focus();
eventSender.keyDown(' ', null);
- select.selectedIndex = 2;
+ select.offsetTop;
+ eventSender.keyDown('C', null);
+ select.offsetTop;
+ select.style.backgroundColor = 'yellow';
// We need to show in the result the title text of the select when popup is visible.
// Must dump renderer tree here otherwise run-layout-test will close the popup.
// The title text should be "C".
output.textContent = internals.elementLayoutTreeAsText(select.parentNode);
- testRunner.notifyDone();
}
</script>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/forms/select/menulist-popup-type-ahead-style-change-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698