#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/core/html/custom/custom_element.h"
#include <ios>
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_element_definition_options.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/html/custom/custom_element_definition.h"
#include "third_party/blink/renderer/core/html/custom/custom_element_registry.h"
#include "third_party/blink/renderer/core/html/custom/custom_element_test_helpers.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/svg_names.h"
#include "third_party/blink/renderer/core/testing/dummy_page_holder.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
namespace blink {
static void TestIsPotentialCustomElementName(const AtomicString& str,
bool expected) { … }
static void TestIsPotentialCustomElementNameChar(UChar32 c, bool expected) { … }
TEST(CustomElementTest, TestIsValidNamePotentialCustomElementName) { … }
TEST(CustomElementTest, TestIsValidNamePotentialCustomElementNameChar) { … }
TEST(CustomElementTest, TestIsValidNamePotentialCustomElementName8BitChar) { … }
TEST(CustomElementTest, TestIsValidNamePotentialCustomElementNameCharFalse) { … }
TEST(CustomElementTest, TestIsValidNameHyphenContainingElementNames) { … }
TEST(CustomElementTest, TestIsValidNameEmbedderNames) { … }
TEST(CustomElementTest, StateByParser) { … }
TEST(CustomElementTest, StateByCreateElement) { … }
TEST(CustomElementTest,
CreateElement_TagNameCaseHandlingCreatingCustomElement) { … }
}