OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "bindings/core/v8/ScriptPromiseResolver.h" | 5 #include "bindings/core/v8/ScriptPromiseResolver.h" |
6 | 6 |
7 #include "bindings/core/v8/ScriptFunction.h" | 7 #include "bindings/core/v8/ScriptFunction.h" |
8 #include "bindings/core/v8/ScriptValue.h" | 8 #include "bindings/core/v8/ScriptValue.h" |
9 #include "bindings/core/v8/V8Binding.h" | 9 #include "bindings/core/v8/V8Binding.h" |
10 #include "core/dom/DOMException.h" | 10 #include "core/dom/DOMException.h" |
11 #include "core/dom/Document.h" | 11 #include "core/dom/Document.h" |
12 #include "core/dom/ExceptionCode.h" | |
13 #include "core/testing/DummyPageHolder.h" | 12 #include "core/testing/DummyPageHolder.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
15 #include <v8.h> | 14 #include <v8.h> |
16 | 15 |
17 namespace blink { | 16 namespace blink { |
18 | 17 |
19 namespace { | 18 namespace { |
20 | 19 |
21 void callback(const v8::FunctionCallbackInfo<v8::Value>& info) { } | 20 void callback(const v8::FunctionCallbackInfo<v8::Value>& info) { } |
22 | 21 |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 resolver->reject(); | 346 resolver->reject(); |
348 v8::MicrotasksScope::PerformCheckpoint(isolate()); | 347 v8::MicrotasksScope::PerformCheckpoint(isolate()); |
349 | 348 |
350 EXPECT_EQ(String(), onFulfilled); | 349 EXPECT_EQ(String(), onFulfilled); |
351 EXPECT_EQ("undefined", onRejected); | 350 EXPECT_EQ("undefined", onRejected); |
352 } | 351 } |
353 | 352 |
354 } // namespace | 353 } // namespace |
355 | 354 |
356 } // namespace blink | 355 } // namespace blink |
OLD | NEW |