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) |