Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index 13f0a035c1e34c8b93ffef5c0e14801c57a8daf3..20a2776883ff89dd7491bb120a2bbbcf83d3c5f5 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -2271,9 +2271,27 @@ ScriptPromise Internals::createRejectedPromise(ScriptState* scriptState, ScriptV |
return promise; |
} |
-ScriptPromise Internals::addOneToPromise(ExecutionContext* context, ScriptPromise promise) |
+ScriptPromise Internals::addOneToPromise(ScriptState* scriptState, ScriptPromise promise) |
{ |
- return promise.then(AddOneFunction::create(context)); |
+ return promise.then(AddOneFunction::create(scriptState->executionContext())); |
+} |
+ |
+ScriptPromise Internals::promiseCheck(ScriptState* scriptState, long arg1, bool arg2, const Dictionary& arg3, const String& arg4, const Vector<String>& arg5, ExceptionState& exceptionState) |
+{ |
+ if (arg2) |
+ return ScriptPromise::cast(scriptState, v8String(scriptState->isolate(), "done")); |
+ exceptionState.throwDOMException(InvalidStateError, "Thrown from the native implementation."); |
+ return ScriptPromise(); |
+} |
+ |
+ScriptPromise Internals::promiseCheckWithoutExceptionState(ScriptState* scriptState, const Dictionary& arg1, const String& arg2, const Vector<String>& arg3) |
+{ |
+ return ScriptPromise::cast(scriptState, v8String(scriptState->isolate(), "done")); |
+} |
+ |
+ScriptPromise Internals::promiseCheckRange(ScriptState* scriptState, long arg1) |
+{ |
+ return ScriptPromise::cast(scriptState, v8String(scriptState->isolate(), "done")); |
} |
void Internals::trace(Visitor* visitor) |