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

Unified Diff: Source/bindings/v8/ScriptPromiseTest.cpp

Issue 180743013: Ensure DOMWrapperWorld always exists in all webkit_unit_tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/v8/ScriptPromiseResolverTest.cpp ('k') | Source/bindings/v8/V8Binding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ScriptPromiseTest.cpp
diff --git a/Source/bindings/v8/ScriptPromiseTest.cpp b/Source/bindings/v8/ScriptPromiseTest.cpp
index 2eb97f3695a4bdd0e3f7b9b140d7017c99dce011..a33cd0eafe9c0dbb1c16bdc7807fe2e6cdabd6b1 100644
--- a/Source/bindings/v8/ScriptPromiseTest.cpp
+++ b/Source/bindings/v8/ScriptPromiseTest.cpp
@@ -47,21 +47,17 @@ class ScriptPromiseTest : public testing::Test {
public:
ScriptPromiseTest()
: m_isolate(v8::Isolate::GetCurrent())
- , m_handleScope(m_isolate)
- , m_context(m_isolate, v8::Context::New(m_isolate))
- , m_contextScope(m_context.newLocal(m_isolate))
{
}
void SetUp()
{
- // FIXME: Create a new world and pass it to V8PerContextData.
- m_perContextData = V8PerContextData::create(m_context.newLocal(m_isolate), 0);
+ m_scope = V8BindingTestScope::create(m_isolate);
}
void TearDown()
{
- m_perContextData.clear();
+ m_scope.clear();
}
V8PromiseCustom::PromiseState state(ScriptPromise promise)
@@ -71,10 +67,9 @@ public:
protected:
v8::Isolate* m_isolate;
- v8::HandleScope m_handleScope;
- ScopedPersistent<v8::Context> m_context;
- v8::Context::Scope m_contextScope;
- OwnPtr<V8PerContextData> m_perContextData;
+
+private:
+ OwnPtr<V8BindingTestScope> m_scope;
};
TEST_F(ScriptPromiseTest, castPromise)
« no previous file with comments | « Source/bindings/v8/ScriptPromiseResolverTest.cpp ('k') | Source/bindings/v8/V8Binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698