OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ScriptRunner.h" | 5 #include "core/dom/ScriptRunner.h" |
6 | 6 |
7 #include "bindings/core/v8/HTMLScriptElementOrSVGScriptElement.h" | 7 #include "bindings/core/v8/HTMLScriptElementOrSVGScriptElement.h" |
8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
9 #include "core/dom/ScriptLoader.h" | 9 #include "core/dom/ScriptLoader.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 MOCK_METHOD0(DispatchLoadEvent, void()); | 35 MOCK_METHOD0(DispatchLoadEvent, void()); |
36 MOCK_METHOD0(DispatchErrorEvent, void()); | 36 MOCK_METHOD0(DispatchErrorEvent, void()); |
37 MOCK_CONST_METHOD0(AsyncAttributeValue, bool()); | 37 MOCK_CONST_METHOD0(AsyncAttributeValue, bool()); |
38 MOCK_CONST_METHOD0(CharsetAttributeValue, String()); | 38 MOCK_CONST_METHOD0(CharsetAttributeValue, String()); |
39 MOCK_CONST_METHOD0(CrossOriginAttributeValue, String()); | 39 MOCK_CONST_METHOD0(CrossOriginAttributeValue, String()); |
40 MOCK_CONST_METHOD0(DeferAttributeValue, bool()); | 40 MOCK_CONST_METHOD0(DeferAttributeValue, bool()); |
41 MOCK_CONST_METHOD0(EventAttributeValue, String()); | 41 MOCK_CONST_METHOD0(EventAttributeValue, String()); |
42 MOCK_CONST_METHOD0(ForAttributeValue, String()); | 42 MOCK_CONST_METHOD0(ForAttributeValue, String()); |
43 MOCK_CONST_METHOD0(IntegrityAttributeValue, String()); | 43 MOCK_CONST_METHOD0(IntegrityAttributeValue, String()); |
44 MOCK_CONST_METHOD0(LanguageAttributeValue, String()); | 44 MOCK_CONST_METHOD0(LanguageAttributeValue, String()); |
| 45 MOCK_CONST_METHOD0(NomoduleAttributeValue, bool()); |
45 MOCK_CONST_METHOD0(SourceAttributeValue, String()); | 46 MOCK_CONST_METHOD0(SourceAttributeValue, String()); |
46 MOCK_CONST_METHOD0(TypeAttributeValue, String()); | 47 MOCK_CONST_METHOD0(TypeAttributeValue, String()); |
47 | 48 |
48 MOCK_METHOD0(TextFromChildren, String()); | 49 MOCK_METHOD0(TextFromChildren, String()); |
49 MOCK_CONST_METHOD0(TextContent, String()); | 50 MOCK_CONST_METHOD0(TextContent, String()); |
50 MOCK_CONST_METHOD0(HasSourceAttribute, bool()); | 51 MOCK_CONST_METHOD0(HasSourceAttribute, bool()); |
51 MOCK_CONST_METHOD0(IsConnected, bool()); | 52 MOCK_CONST_METHOD0(IsConnected, bool()); |
52 MOCK_CONST_METHOD0(HasChildren, bool()); | 53 MOCK_CONST_METHOD0(HasChildren, bool()); |
53 MOCK_CONST_METHOD0(IsNonceableElement, bool()); | 54 MOCK_CONST_METHOD0(IsNonceableElement, bool()); |
54 MOCK_CONST_METHOD0(InitiatorName, AtomicString()); | 55 MOCK_CONST_METHOD0(InitiatorName, AtomicString()); |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 | 465 |
465 // m_scriptRunner is gone. We need to make sure that ScriptRunner::Task do not | 466 // m_scriptRunner is gone. We need to make sure that ScriptRunner::Task do not |
466 // access dead object. | 467 // access dead object. |
467 EXPECT_CALL(*script_loader1, Execute()).Times(0); | 468 EXPECT_CALL(*script_loader1, Execute()).Times(0); |
468 EXPECT_CALL(*script_loader2, Execute()).Times(0); | 469 EXPECT_CALL(*script_loader2, Execute()).Times(0); |
469 | 470 |
470 platform_->RunUntilIdle(); | 471 platform_->RunUntilIdle(); |
471 } | 472 } |
472 | 473 |
473 } // namespace blink | 474 } // namespace blink |
OLD | NEW |