| OLD | NEW |
| 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/CustomElementsRegistry.h" | 5 #include "core/dom/custom/CustomElementsRegistry.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "bindings/core/v8/ScriptValue.h" | 8 #include "bindings/core/v8/ScriptValue.h" |
| 9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
| 10 #include "core/dom/Element.h" | 10 #include "core/dom/Element.h" |
| 11 #include "core/dom/ElementRegistrationOptions.h" | 11 #include "core/dom/ElementRegistrationOptions.h" |
| 12 #include "core/dom/custom/CEReactionsScope.h" | 12 #include "core/dom/custom/CEReactionsScope.h" |
| 13 #include "core/dom/custom/CustomElementDefinition.h" | 13 #include "core/dom/custom/CustomElementDefinition.h" |
| 14 #include "core/dom/custom/CustomElementDefinitionBuilder.h" | 14 #include "core/dom/custom/CustomElementDefinitionBuilder.h" |
| 15 #include "core/dom/custom/CustomElementDescriptor.h" | 15 #include "core/dom/custom/CustomElementDescriptor.h" |
| 16 #include "core/dom/custom/CustomElementTestHelpers.h" | 16 #include "core/dom/custom/CustomElementTestHelpers.h" |
| 17 #include "core/dom/shadow/ShadowRoot.h" | 17 #include "core/dom/shadow/ShadowRoot.h" |
| 18 #include "core/dom/shadow/ShadowRootInit.h" | 18 #include "core/dom/shadow/ShadowRootInit.h" |
| 19 #include "core/html/HTMLDocument.h" | |
| 20 #include "core/testing/DummyPageHolder.h" | 19 #include "core/testing/DummyPageHolder.h" |
| 21 #include "platform/ScriptForbiddenScope.h" | 20 #include "platform/ScriptForbiddenScope.h" |
| 22 #include "platform/heap/Handle.h" | 21 #include "platform/heap/Handle.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 24 #include "wtf/text/AtomicString.h" | 23 #include "wtf/text/AtomicString.h" |
| 25 #include <memory> | 24 #include <memory> |
| 26 | 25 |
| 27 namespace blink { | 26 namespace blink { |
| 28 | 27 |
| 29 class CustomElementsRegistryTestBase : public ::testing::Test { | 28 class CustomElementsRegistryTestBase : public ::testing::Test { |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 << "remove() should invoke disconnectedCallback"; | 467 << "remove() should invoke disconnectedCallback"; |
| 469 | 468 |
| 470 EXPECT_EQ(1u, definition->m_logs.size()) | 469 EXPECT_EQ(1u, definition->m_logs.size()) |
| 471 << "remove() should not invoke other callbacks"; | 470 << "remove() should not invoke other callbacks"; |
| 472 } | 471 } |
| 473 | 472 |
| 474 // TODO(dominicc): Add tests which adjust the "is" attribute when type | 473 // TODO(dominicc): Add tests which adjust the "is" attribute when type |
| 475 // extensions are implemented. | 474 // extensions are implemented. |
| 476 | 475 |
| 477 } // namespace blink | 476 } // namespace blink |
| OLD | NEW |