#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/css/properties/longhands.h"
#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/element_traversal.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/html/html_div_element.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
namespace blink {
class AffectedByPseudoTest : public PageTestBase { … };
void AffectedByPseudoTest::SetHtmlInnerHTML(const char* html_content) { … }
void AffectedByPseudoTest::CheckElementsForFocus(
ElementResult expected[],
unsigned expected_count) const { … }
void AffectedByPseudoTest::CheckAffectedByFlagsForHas(
const char* element_id,
std::map<AffectedByFlagName, bool> expected) const { … }
TEST_F(AffectedByPseudoTest, FocusedAscendant) { … }
TEST_F(AffectedByPseudoTest, FocusedAscendantWithType) { … }
TEST_F(AffectedByPseudoTest, FocusedAscendantWithNegatedType) { … }
TEST_F(AffectedByPseudoTest, FocusedSibling) { … }
TEST_F(AffectedByPseudoTest, AffectedByFocusUpdate) { … }
TEST_F(AffectedByPseudoTest, ChildrenOrSiblingsAffectedByFocusUpdate) { … }
TEST_F(AffectedByPseudoTest, InvalidationSetFocusUpdate) { … }
TEST_F(AffectedByPseudoTest, NoInvalidationSetFocusUpdate) { … }
TEST_F(AffectedByPseudoTest, FocusWithinCommonAncestor) { … }
TEST_F(AffectedByPseudoTest, HoverScrollbar) { … }
TEST_F(AffectedByPseudoTest,
AffectedBySubjectHasAndAncestorsOrAncestorSiblingsAffectedByHas) { … }
TEST_F(AffectedByPseudoTest,
AffectedByPseudoInHasAndAncestorsOrSiblingsAffectedByHoverInHas1) { … }
TEST_F(AffectedByPseudoTest,
AffectedByPseudoInHasAndAncestorsOrSiblingsAffectedByHoverInHas2) { … }
TEST_F(AffectedByPseudoTest,
AffectedByNonSubjectHasHasAndAncestorsOrAncestorSiblingsAffectedByHas) { … }
TEST_F(AffectedByPseudoTest,
AffectedByNonSubjectHasHasAndSiblingsAffectedByHas) { … }
TEST_F(AffectedByPseudoTest, AffectedBySubjectHasComplexCase1) { … }
TEST_F(AffectedByPseudoTest, AffectedBySubjectHasComplexCase2) { … }
TEST_F(AffectedByPseudoTest, AffectedBySubjectHasComplexCase3) { … }
TEST_F(AffectedByPseudoTest, AffectedBySubjectHasComplexCase4) { … }
TEST_F(AffectedByPseudoTest, AffectedBySubjectHasComplexCase5) { … }
TEST_F(AffectedByPseudoTest, AffectedBySubjectHasComplexCase6) { … }
TEST_F(AffectedByPseudoTest, AffectedBySubjectHasComplexCase7) { … }
TEST_F(AffectedByPseudoTest, AffectedByNonSubjectHasComplexCase1) { … }
TEST_F(AffectedByPseudoTest, AffectedByNonSubjectHasComplexCase2) { … }
TEST_F(AffectedByPseudoTest, AffectedByNonSubjectHasComplexCase3) { … }
TEST_F(AffectedByPseudoTest, AffectedBySelectorQuery) { … }
TEST_F(AffectedByPseudoTest, AffectedByHasAfterInsertion1) { … }
TEST_F(AffectedByPseudoTest, AffectedByHasAfterInsertion2) { … }
TEST_F(AffectedByPseudoTest, AffectedByHasAfterInsertion3) { … }
TEST_F(AffectedByPseudoTest, AffectedByHasAfterInsertion4) { … }
TEST_F(AffectedByPseudoTest, AffectedByHasAfterInsertion5) { … }
TEST_F(AffectedByPseudoTest, AffectedByHasAfterInsertion6) { … }
TEST_F(AffectedByPseudoTest, AffectedByHasAfterWiping) { … }
TEST_F(AffectedByPseudoTest, AffectedByLogicalCombinationsInHas) { … }
TEST_F(AffectedByPseudoTest,
AncestorsOrSiblingsAffectedByHoverInHasWithFastRejection) { … }
TEST_F(AffectedByPseudoTest, AffectedByHasAfterRemoval1) { … }
TEST_F(AffectedByPseudoTest, AffectedByHasAfterRemoval2) { … }
TEST_F(AffectedByPseudoTest, AffectedByHasAfterRemoval3) { … }
TEST_F(AffectedByPseudoTest, AffectedByHasAfterRemoval4) { … }
TEST_F(AffectedByPseudoTest, AffectedByHasAfterRemoval5) { … }
TEST_F(AffectedByPseudoTest, AffectedByHasAfterRemoval6) { … }
TEST_F(AffectedByPseudoTest, AffectedByHasWithoutNth) { … }
TEST_F(AffectedByPseudoTest, AffectedByPseudoInHasWithNestingParent) { … }
TEST_F(AffectedByPseudoTest, AffectedByPseudoInHasWithNestingComplexParent) { … }
}