| Index: third_party/WebKit/Source/core/dom/custom/CustomElementTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementTest.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementTest.cpp
|
| index 8567a58ac7cad0d4d40f8bcad62d60c60258d8b4..9e6bfa68bd18a48ab69c78cbd6ccd92eb56a6614 100644
|
| --- a/third_party/WebKit/Source/core/dom/custom/CustomElementTest.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/custom/CustomElementTest.cpp
|
| @@ -10,6 +10,7 @@
|
| #include "core/html/HTMLElement.h"
|
| #include "core/testing/DummyPageHolder.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| +#include <ios>
|
| #include <memory>
|
|
|
| namespace blink {
|
| @@ -100,6 +101,20 @@ TEST(CustomElementTest, TestIsValidNamePotentialCustomElementNameChar)
|
| }
|
| }
|
|
|
| +TEST(CustomElementTest, TestIsValidNamePotentialCustomElementName8BitChar)
|
| +{
|
| + // isPotentialCustomElementName8BitChar must match
|
| + // isPotentialCustomElementNameChar, so we just test it returns
|
| + // the same result throughout its range.
|
| + for (UChar ch = 0x0; ch <= 0xff; ++ch) {
|
| + EXPECT_EQ(
|
| + Character::isPotentialCustomElementName8BitChar(ch),
|
| + Character::isPotentialCustomElementNameChar(ch))
|
| + << "isPotentialCustomElementName8BitChar must agree with "
|
| + << "isPotentialCustomElementNameChar: 0x" << std::hex << ch;
|
| + }
|
| +}
|
| +
|
| TEST(CustomElementTest, TestIsValidNamePotentialCustomElementNameCharFalse)
|
| {
|
| struct {
|
|
|