void LayoutTestController::evaluateInWebInspector(long callID, JSStringRef script) { #if ENABLE(INSPECTOR) WKRetainPtr<WKStringRef> scriptWK = toWK(script); WKBundleInspectorEvaluateScriptForTest(WKBundlePageGetInspector(InjectedBundle::shared().page()->page()), callID, scriptWK.get()); #endif // ENABLE(INSPECTOR) }
void LayoutTestController::setJavaScriptProfilingEnabled(bool enabled) { WKBundleInspectorSetJavaScriptProfilingEnabled(WKBundlePageGetInspector(InjectedBundle::shared().page()->page()), enabled); }
void LayoutTestController::closeWebInspector() { WKBundleInspectorClose(WKBundlePageGetInspector(InjectedBundle::shared().page()->page())); }
void LayoutTestController::closeWebInspector() { #if ENABLE(INSPECTOR) WKBundleInspectorClose(WKBundlePageGetInspector(InjectedBundle::shared().page()->page())); #endif // ENABLE(INSPECTOR) }
void TestRunner::evaluateInWebInspector(JSStringRef script) { WKRetainPtr<WKStringRef> scriptWK = toWK(script); WKBundleInspectorEvaluateScriptForTest(WKBundlePageGetInspector(InjectedBundle::singleton().page()->page()), scriptWK.get()); }
void TestRunner::closeWebInspector() { WKBundleInspectorClose(WKBundlePageGetInspector(InjectedBundle::singleton().page()->page())); }
void TestRunner::showWebInspector() { WKBundleInspectorShow(WKBundlePageGetInspector(InjectedBundle::singleton().page()->page())); }
void TestRunner::showWebInspector() { #if ENABLE(INSPECTOR) WKBundleInspectorShow(WKBundlePageGetInspector(InjectedBundle::shared().page()->page())); #endif // ENABLE(INSPECTOR) }