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

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

Issue 2292433002: 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 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 "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"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 bool runConstructor(Element* element) override 211 bool runConstructor(Element* element) override
212 { 212 {
213 if (constructionStack().isEmpty() 213 if (constructionStack().isEmpty()
214 || constructionStack().last() != element) 214 || constructionStack().last() != element)
215 return false; 215 return false;
216 constructionStack().last().clear(); 216 constructionStack().last().clear();
217 return true; 217 return true;
218 } 218 }
219 219
220 HTMLElement* createElementSync(Document&, const QualifiedName&) override 220 HTMLElement* createElementSync(Document&, const QualifiedName&, ExceptionSta te*) override
221 { 221 {
222 return nullptr; 222 return nullptr;
223 } 223 }
224
225 HTMLElement* createElementSync(Document&, const QualifiedName&, ExceptionSta te&) override
226 {
227 return nullptr;
228 }
229 }; 224 };
230 225
231 // Classes which use trace macros cannot be local because of the 226 // Classes which use trace macros cannot be local because of the
232 // traceImpl template. 227 // traceImpl template.
233 class LogUpgradeDefinition : public TestCustomElementDefinition { 228 class LogUpgradeDefinition : public TestCustomElementDefinition {
234 WTF_MAKE_NONCOPYABLE(LogUpgradeDefinition); 229 WTF_MAKE_NONCOPYABLE(LogUpgradeDefinition);
235 public: 230 public:
236 LogUpgradeDefinition(const CustomElementDescriptor& descriptor) 231 LogUpgradeDefinition(const CustomElementDescriptor& descriptor)
237 : TestCustomElementDefinition(descriptor, { 232 : TestCustomElementDefinition(descriptor, {
238 "attr1", 233 "attr1",
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 << "adoptNode() should invoke adoptedCallback"; 470 << "adoptNode() should invoke adoptedCallback";
476 471
477 EXPECT_EQ(2u, definition->m_logs.size()) 472 EXPECT_EQ(2u, definition->m_logs.size())
478 << "adoptNode() should not invoke other callbacks"; 473 << "adoptNode() should not invoke other callbacks";
479 } 474 }
480 475
481 // TODO(dominicc): Add tests which adjust the "is" attribute when type 476 // TODO(dominicc): Add tests which adjust the "is" attribute when type
482 // extensions are implemented. 477 // extensions are implemented.
483 478
484 } // namespace blink 479 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698