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

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/CustomElementRegistryTest.cpp

Issue 2812013004: Rewrite references to "wtf/" to "platform/wtf/" in core/{dom,html,xml}. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/dom/custom/CustomElementRegistry.h" 5 #include "core/dom/custom/CustomElementRegistry.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "bindings/core/v8/V8Binding.h" 9 #include "bindings/core/v8/V8Binding.h"
10 #include "core/dom/Document.h" 10 #include "core/dom/Document.h"
11 #include "core/dom/Element.h" 11 #include "core/dom/Element.h"
12 #include "core/dom/ElementDefinitionOptions.h" 12 #include "core/dom/ElementDefinitionOptions.h"
13 #include "core/dom/custom/CEReactionsScope.h" 13 #include "core/dom/custom/CEReactionsScope.h"
14 #include "core/dom/custom/CustomElementDefinition.h" 14 #include "core/dom/custom/CustomElementDefinition.h"
15 #include "core/dom/custom/CustomElementDefinitionBuilder.h" 15 #include "core/dom/custom/CustomElementDefinitionBuilder.h"
16 #include "core/dom/custom/CustomElementDescriptor.h" 16 #include "core/dom/custom/CustomElementDescriptor.h"
17 #include "core/dom/custom/CustomElementTestHelpers.h" 17 #include "core/dom/custom/CustomElementTestHelpers.h"
18 #include "core/dom/shadow/ShadowRoot.h" 18 #include "core/dom/shadow/ShadowRoot.h"
19 #include "core/dom/shadow/ShadowRootInit.h" 19 #include "core/dom/shadow/ShadowRootInit.h"
20 #include "core/testing/DummyPageHolder.h" 20 #include "core/testing/DummyPageHolder.h"
21 #include "platform/ScriptForbiddenScope.h" 21 #include "platform/ScriptForbiddenScope.h"
22 #include "platform/heap/Handle.h" 22 #include "platform/heap/Handle.h"
23 #include "platform/wtf/text/AtomicString.h"
23 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
24 #include "wtf/text/AtomicString.h"
25 25
26 namespace blink { 26 namespace blink {
27 27
28 class CustomElementRegistryTest : public ::testing::Test { 28 class CustomElementRegistryTest : public ::testing::Test {
29 protected: 29 protected:
30 void SetUp() { 30 void SetUp() {
31 page_.reset(DummyPageHolder::Create(IntSize(1, 1)).release()); 31 page_.reset(DummyPageHolder::Create(IntSize(1, 1)).release());
32 } 32 }
33 33
34 void TearDown() { page_ = nullptr; } 34 void TearDown() { page_ = nullptr; }
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 EXPECT_EQ(definition_b, definition); 441 EXPECT_EQ(definition_b, definition);
442 // look up undefined customized built-in element 442 // look up undefined customized built-in element
443 definition = Registry().DefinitionFor(CustomElementDescriptor("a-a", "div")); 443 definition = Registry().DefinitionFor(CustomElementDescriptor("a-a", "div"));
444 EXPECT_EQ(nullptr, definition) << "a-a, div should not be registered"; 444 EXPECT_EQ(nullptr, definition) << "a-a, div should not be registered";
445 } 445 }
446 446
447 // TODO(dominicc): Add tests which adjust the "is" attribute when type 447 // TODO(dominicc): Add tests which adjust the "is" attribute when type
448 // extensions are implemented. 448 // extensions are implemented.
449 449
450 } // namespace blink 450 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698