| Index: third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp
|
| index 4aad4add12afb806e1341e4d20e2ac30b0e6acf7..c30b039b342891d9c4dd2e6b9ff0f79d74332331 100644
|
| --- a/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp
|
| @@ -9,6 +9,7 @@
|
| #include "core/dom/Document.h"
|
| #include "core/dom/Element.h"
|
| #include "core/dom/ElementRegistrationOptions.h"
|
| +#include "core/dom/custom/CEReactionsScope.h"
|
| #include "core/dom/custom/CustomElementDefinition.h"
|
| #include "core/dom/custom/CustomElementDefinitionBuilder.h"
|
| #include "core/dom/custom/CustomElementDescriptor.h"
|
| @@ -301,11 +302,14 @@ TEST_F(CustomElementsRegistryFrameTest, define_upgradesInDocumentElements)
|
|
|
| LogUpgradeBuilder builder;
|
| NonThrowableExceptionState shouldNotThrow;
|
| - registry().define(
|
| - "a-a",
|
| - builder,
|
| - ElementRegistrationOptions(),
|
| - shouldNotThrow);
|
| + {
|
| + CEReactionsScope reactions;
|
| + registry().define(
|
| + "a-a",
|
| + builder,
|
| + ElementRegistrationOptions(),
|
| + shouldNotThrow);
|
| + }
|
| LogUpgradeDefinition* definition =
|
| static_cast<LogUpgradeDefinition*>(registry().definitionForName("a-a"));
|
| EXPECT_EQ(1u, definition->m_invocationCount)
|
|
|