diff options
Diffstat (limited to 'WebKitTools/TestWebKitAPI/InjectedBundleController.cpp')
-rw-r--r-- | WebKitTools/TestWebKitAPI/InjectedBundleController.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/WebKitTools/TestWebKitAPI/InjectedBundleController.cpp b/WebKitTools/TestWebKitAPI/InjectedBundleController.cpp index dc563ac..2674801 100644 --- a/WebKitTools/TestWebKitAPI/InjectedBundleController.cpp +++ b/WebKitTools/TestWebKitAPI/InjectedBundleController.cpp @@ -81,7 +81,7 @@ void InjectedBundleController::didReceiveMessage(WKBundleRef bundle, WKStringRef assert(WKGetTypeID(messageBody) == WKStringGetTypeID()); WKStringRef messageBodyString = static_cast<WKStringRef>(messageBody); - self->initializeTestNamed(Util::toSTD(messageBodyString)); + self->initializeTestNamed(bundle, Util::toSTD(messageBodyString)); return; } @@ -98,7 +98,7 @@ void InjectedBundleController::dumpTestNames() printf("%s\n", (*it).first.c_str()); } -void InjectedBundleController::initializeTestNamed(const std::string& identifier) +void InjectedBundleController::initializeTestNamed(WKBundleRef bundle, const std::string& identifier) { CreateInjectedBundleTestFunction createTestFunction = m_createInjectedBundleTestFunctions[identifier]; if (!createTestFunction) { @@ -107,7 +107,7 @@ void InjectedBundleController::initializeTestNamed(const std::string& identifier } m_currentTest = createTestFunction(identifier); - m_currentTest->initialize(); + m_currentTest->initialize(bundle); } void InjectedBundleController::registerCreateInjectedBundleTestFunction(const std::string& identifier, CreateInjectedBundleTestFunction function) |