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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElementTest.cpp

Issue 2307533002: CL for perf tryjob on linux (Closed)
Patch Set: Created 4 years, 3 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: 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 {
« no previous file with comments | « third_party/WebKit/Source/core/dom/custom/CustomElement.cpp ('k') | third_party/WebKit/Source/platform/text/Character.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698