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

Unified Diff: Source/web/tests/CustomEventTest.cpp

Issue 310423002: Remove the remaining ScriptState::current etc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/modules/serviceworkers/ServiceWorker.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/CustomEventTest.cpp
diff --git a/Source/web/tests/CustomEventTest.cpp b/Source/web/tests/CustomEventTest.cpp
index a652618f7a9f63a0389b1737d709da31be95792d..b411c580d61a16c0fbcb9676596cfec45ec803ef 100644
--- a/Source/web/tests/CustomEventTest.cpp
+++ b/Source/web/tests/CustomEventTest.cpp
@@ -108,7 +108,7 @@ TEST(CustomEventTest, InitWithSerializedScriptValue)
v8::Isolate* isolate = toIsolate(frame->frame());
V8TestingScope scope(isolate);
customEvent.initCustomEvent("blah", false, false, WebSerializedScriptValue::serialize(v8::Boolean::New(isolate, true)));
- RefPtr<EventListener> listener = TestListener::create(ScriptState::current(isolate));
+ RefPtr<EventListener> listener = TestListener::create(scope.scriptState());
frame->frame()->document()->addEventListener("blah", listener, false);
frame->frame()->document()->dispatchEvent(event);
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorker.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698