#include "third_party/blink/renderer/core/html/forms/html_select_list_element.h"
#include "base/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/web/web_autofill_state.h"
#include "third_party/blink/public/web/web_script_source.h"
#include "third_party/blink/renderer/core/css/properties/longhands.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/html/forms/html_button_element.h"
#include "third_party/blink/renderer/core/html/forms/html_listbox_element.h"
#include "third_party/blink/renderer/core/html/forms/html_option_element.h"
#include "third_party/blink/renderer/core/loader/empty_clients.h"
#include "third_party/blink/renderer/core/script/classic_script.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
namespace blink {
namespace {
void CheckOptions(HeapVector<Member<HTMLOptionElement>> options,
const std::vector<std::string>& expected_option_values) { … }
class OptionsChangedCounterChromeClient : public EmptyChromeClient { … };
}
class HTMLSelectListElementTest : public PageTestBase { … };
TEST_F(HTMLSelectListElementTest, SetAutofillValuePreservesEditedState) { … }
TEST_F(HTMLSelectListElementTest, GetListItemsAdd) { … }
TEST_F(HTMLSelectListElementTest, GetListItemsRemove) { … }
TEST_F(HTMLSelectListElementTest, NotifyClientListItemAdd) { … }
TEST_F(HTMLSelectListElementTest, NotifyClientListItemRemove) { … }
TEST_F(HTMLSelectListElementTest, OwnerSelectList_PartsCustomSlots) { … }
TEST_F(HTMLSelectListElementTest, SetSuggestedValue) { … }
TEST_F(HTMLSelectListElementTest, SetSuggestedValueEmptyString) { … }
TEST_F(HTMLSelectListElementTest, SetSuggestedValueNoMatchingOption) { … }
TEST_F(HTMLSelectListElementTest, SuggestedValueClearedWhenValueSet) { … }
Color GetBorderColorForSuggestedOptionPopover(HTMLSelectListElement* element) { … }
TEST_F(HTMLSelectListElementTest, PreviewButtonHasCustomBorder) { … }
TEST_F(HTMLSelectListElementTest, PreviewButtonHasCustomAutofillBorder) { … }
TEST_F(HTMLSelectListElementTest, PreviewButtonHasNoCustomBorder) { … }
}