void TestRunner::reset() { m_hasDumped = false; m_loadFinished = false; m_textDump = false; m_canOpenWindows = false; m_waitForDone = false; m_disallowIncreaseForApplicationCacheQuota = false; m_timeoutTimer.stop(); m_topLoadingFrame = 0; m_waitForPolicy = false; m_handleErrorPages = false; m_webHistory = 0; m_globalFlag = false; m_userStyleSheetEnabled = false; m_desktopNotificationAllowedOrigins.clear(); m_ignoreDesktopNotification = false; m_isGeolocationPermissionSet = false; m_isPrinting = false; m_geolocationPermission = false; DumpRenderTreeSupportQt::setDeferMainResourceDataLoad(true); DumpRenderTreeSupportQt::setWillSendRequestReturnsNullOnRedirect(false); DumpRenderTreeSupportQt::setWillSendRequestReturnsNull(false); DumpRenderTreeSupportQt::setWillSendRequestClearHeaders(QStringList()); DumpRenderTreeSupportQt::clearScriptWorlds(); DumpRenderTreeSupportQt::resetGeolocationMock(m_drt->webPage()); setIconDatabaseEnabled(false); clearAllDatabases(); // The default state for DRT is to block third-party cookies, mimicing the Mac port setAlwaysAcceptCookies(false); emit hidePage(); }
void TestRunner::reset() { m_hasDumped = false; m_loadFinished = false; m_textDump = false; m_audioDump = false; m_shouldDumpPixels = true; m_dumpBackForwardList = false; m_dumpChildrenAsText = false; m_dumpChildFrameScrollPositions = false; m_canOpenWindows = false; m_waitForDone = false; m_disallowIncreaseForApplicationCacheQuota = false; m_dumpTitleChanges = false; m_dumpDatabaseCallbacks = false; m_dumpApplicationCacheDelegateCallbacks = false; m_dumpStatusCallbacks = false; m_timeoutTimer.stop(); m_topLoadingFrame = 0; m_waitForPolicy = false; m_handleErrorPages = false; m_webHistory = 0; m_globalFlag = false; m_userStyleSheetEnabled = false; m_ignoreDesktopNotification = false; m_isGeolocationPermissionSet = false; m_isPrinting = false; m_geolocationPermission = false; m_audioData.clear(); DumpRenderTreeSupportQt::dumpEditingCallbacks(false); DumpRenderTreeSupportQt::dumpFrameLoader(false); DumpRenderTreeSupportQt::dumpProgressFinishedCallback(false); DumpRenderTreeSupportQt::dumpUserGestureInFrameLoader(false); DumpRenderTreeSupportQt::dumpResourceLoadCallbacks(false); DumpRenderTreeSupportQt::dumpResourceResponseMIMETypes(false); DumpRenderTreeSupportQt::dumpWillCacheResponseCallbacks(false); DumpRenderTreeSupportQt::setDeferMainResourceDataLoad(true); DumpRenderTreeSupportQt::setWillSendRequestReturnsNullOnRedirect(false); DumpRenderTreeSupportQt::setWillSendRequestReturnsNull(false); DumpRenderTreeSupportQt::setWillSendRequestClearHeaders(QStringList()); DumpRenderTreeSupportQt::clearScriptWorlds(); DumpRenderTreeSupportQt::setCustomPolicyDelegate(false, false); DumpRenderTreeSupportQt::dumpHistoryCallbacks(false); DumpRenderTreeSupportQt::dumpVisitedLinksCallbacks(false); DumpRenderTreeSupportQt::resetGeolocationMock(m_drt->pageAdapter()); DumpRenderTreeSupportQt::dumpNotification(false); setIconDatabaseEnabled(false); clearAllDatabases(); removeAllWebNotificationPermissions(); // The default state for DRT is to block third-party cookies, mimicing the Mac port setAlwaysAcceptCookies(false); emit hidePage(); }