webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Static Public Member Functions | List of all members
WTR::TestRunner Class Reference

#include <TestRunner.h>

Inheritance diagram for WTR::TestRunner:
WTR::JSWrappable WTF::RefCounted< JSWrappable > WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase

Public Types

enum  WhatToDump {
  RenderTree, MainFrameText, AllFramesText, Audio,
  DOMAsWebArchive
}
 

Public Member Functions

virtual ~TestRunner ()
 
virtual JSClassRef wrapperClass ()
 
void makeWindowObject (JSContextRef, JSObjectRef windowObject, JSValueRef *exception)
 
bool isWebKit2 () const
 
WKURLRef testURL () const
 
void setTestURL (WKURLRef url)
 
void dumpAsText (bool dumpPixels)
 
void waitForPolicyDelegate ()
 
void dumpChildFramesAsText ()
 
void waitUntilDownloadFinished ()
 
void waitUntilDone ()
 
void notifyDone ()
 
double preciseTime ()
 
double timeout ()
 
void dumpBackForwardList ()
 
void dumpChildFrameScrollPositions ()
 
void dumpEditingCallbacks ()
 
void dumpSelectionRect ()
 
void dumpStatusCallbacks ()
 
void dumpTitleChanges ()
 
void dumpFullScreenCallbacks ()
 
void dumpFrameLoadCallbacks ()
 
void dumpProgressFinishedCallback ()
 
void dumpResourceLoadCallbacks ()
 
void dumpResourceResponseMIMETypes ()
 
void dumpWillCacheResponse ()
 
void dumpApplicationCacheDelegateCallbacks ()
 
void dumpDatabaseCallbacks ()
 
void dumpDOMAsWebArchive ()
 
void dumpPolicyDelegateCallbacks ()
 
void setShouldDumpFrameLoadCallbacks (bool value)
 
void setShouldDumpProgressFinishedCallback (bool value)
 
void keepWebHistory ()
 
void setAcceptsEditing (bool value)
 
void setCanOpenWindows (bool)
 
void setCloseRemainingWindowsWhenComplete (bool value)
 
void setXSSAuditorEnabled (bool)
 
void setShadowDOMEnabled (bool)
 
void setCustomElementsEnabled (bool)
 
void setModernMediaControlsEnabled (bool)
 
void setWebGL2Enabled (bool)
 
void setWebGPUEnabled (bool)
 
void setFetchAPIEnabled (bool)
 
void setAllowUniversalAccessFromFileURLs (bool)
 
void setAllowFileAccessFromFileURLs (bool)
 
void setNeedsStorageAccessFromFileURLsQuirk (bool)
 
void setPluginsEnabled (bool)
 
void setJavaScriptCanAccessClipboard (bool)
 
void setPrivateBrowsingEnabled (bool)
 
void setUseDashboardCompatibilityMode (bool)
 
void setPopupBlockingEnabled (bool)
 
void setAuthorAndUserStylesEnabled (bool)
 
void setCustomPolicyDelegate (bool enabled, bool permissive=false)
 
void addOriginAccessWhitelistEntry (JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains)
 
void removeOriginAccessWhitelistEntry (JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains)
 
void setUserStyleSheetEnabled (bool)
 
void setUserStyleSheetLocation (JSStringRef)
 
void setSpatialNavigationEnabled (bool)
 
void setTabKeyCyclesThroughElements (bool)
 
void setSerializeHTTPLoads ()
 
void dispatchPendingLoadRequests ()
 
void setCacheModel (int)
 
void setAsynchronousSpellCheckingEnabled (bool)
 
void setDownloadAttributeEnabled (bool)
 
void setAllowsAnySSLCertificate (bool)
 
void setEncryptedMediaAPIEnabled (bool)
 
void setSubtleCryptoEnabled (bool)
 
void setMediaStreamEnabled (bool)
 
void setPeerConnectionEnabled (bool)
 
void clearBackForwardList ()
 
void execCommand (JSStringRef name, JSStringRef argument)
 
bool isCommandEnabled (JSStringRef name)
 
unsigned windowCount ()
 
void testRepaint ()
 
void repaintSweepHorizontally ()
 
void display ()
 
void addUserScript (JSStringRef source, bool runAtStart, bool allFrames)
 
void addUserStyleSheet (JSStringRef source, bool allFrames)
 
bool findString (JSStringRef, JSValueRef optionsArray)
 
void clearAllDatabases ()
 
void setDatabaseQuota (uint64_t)
 
JSRetainPtr< JSStringRefpathToLocalResource (JSStringRef)
 
void clearAllApplicationCaches ()
 
void clearApplicationCacheForOrigin (JSStringRef origin)
 
void setAppCacheMaximumSize (uint64_t)
 
long long applicationCacheDiskUsageForOrigin (JSStringRef origin)
 
void disallowIncreaseForApplicationCacheQuota ()
 
bool shouldDisallowIncreaseForApplicationCacheQuota ()
 
JSValueRef originsWithApplicationCache ()
 
bool isPageBoxVisible (int pageIndex)
 
bool isPrinting ()
 
void setPrinting ()
 
void setRejectsProtectionSpaceAndContinueForAuthenticationChallenges (bool)
 
void setHandlesAuthenticationChallenges (bool)
 
void setShouldLogCanAuthenticateAgainstProtectionSpace (bool)
 
void setAuthenticationUsername (JSStringRef)
 
void setAuthenticationPassword (JSStringRef)
 
void setValueForUser (JSContextRef, JSValueRef element, JSStringRef value)
 
void setAudioResult (JSContextRef, JSValueRef data)
 
void setBlockAllPlugins (bool shouldBlock)
 
WhatToDump whatToDump () const
 
bool shouldDumpAllFrameScrollPositions () const
 
bool shouldDumpBackForwardListsForAllWindows () const
 
bool shouldDumpEditingCallbacks () const
 
bool shouldDumpMainFrameScrollPosition () const
 
bool shouldDumpStatusCallbacks () const
 
bool shouldDumpTitleChanges () const
 
bool shouldDumpPixels () const
 
bool shouldDumpFullScreenCallbacks () const
 
bool shouldDumpFrameLoadCallbacks () const
 
bool shouldDumpProgressFinishedCallback () const
 
bool shouldDumpResourceLoadCallbacks () const
 
bool shouldDumpResourceResponseMIMETypes () const
 
bool shouldDumpWillCacheResponse () const
 
bool shouldDumpApplicationCacheDelegateCallbacks () const
 
bool shouldDumpDatabaseCallbacks () const
 
bool shouldDumpSelectionRect () const
 
bool shouldDumpPolicyCallbacks () const
 
bool isPolicyDelegateEnabled () const
 
bool isPolicyDelegatePermissive () const
 
bool waitToDump () const
 
void waitToDumpWatchdogTimerFired ()
 
void invalidateWaitToDumpWatchdogTimer ()
 
bool shouldFinishAfterDownload () const
 
bool shouldAllowEditing () const
 
bool shouldCloseExtraWindowsAfterRunningTest () const
 
void evaluateScriptInIsolatedWorld (JSContextRef, unsigned worldID, JSStringRef script)
 
void showWebInspector ()
 
void closeWebInspector ()
 
void evaluateInWebInspector (JSStringRef script)
 
JSRetainPtr< JSStringRefinspectorTestStubURL ()
 
void setPOSIXLocale (JSStringRef)
 
bool willSendRequestReturnsNull () const
 
void setWillSendRequestReturnsNull (bool f)
 
bool willSendRequestReturnsNullOnRedirect () const
 
void setWillSendRequestReturnsNullOnRedirect (bool f)
 
void setWillSendRequestAddsHTTPBody (JSStringRef body)
 
String willSendRequestHTTPBody () const
 
void setTextDirection (JSStringRef)
 
void setShouldStayOnPageAfterHandlingBeforeUnload (bool)
 
void setDefersLoading (bool)
 
void setStopProvisionalFrameLoads ()
 
bool shouldStopProvisionalFrameLoads () const
 
bool globalFlag () const
 
void setGlobalFlag (bool value)
 
double databaseDefaultQuota () const
 
void setDatabaseDefaultQuota (double quota)
 
double databaseMaxQuota () const
 
void setDatabaseMaxQuota (double quota)
 
void addChromeInputField (JSValueRef)
 
void removeChromeInputField (JSValueRef)
 
void focusWebView (JSValueRef)
 
void setBackingScaleFactor (double, JSValueRef)
 
void setWindowIsKey (bool)
 
void setViewSize (double width, double height)
 
void callAddChromeInputFieldCallback ()
 
void callRemoveChromeInputFieldCallback ()
 
void callFocusWebViewCallback ()
 
void callSetBackingScaleFactorCallback ()
 
void overridePreference (JSStringRef preference, JSStringRef value)
 
void setAlwaysAcceptCookies (bool)
 
void setHasCustomFullScreenBehavior (bool value)
 
bool hasCustomFullScreenBehavior () const
 
void setGeolocationPermission (bool)
 
void setMockGeolocationPosition (double latitude, double longitude, double accuracy, JSValueRef altitude, JSValueRef altitudeAccuracy, JSValueRef heading, JSValueRef speed)
 
void setMockGeolocationPositionUnavailableError (JSStringRef message)
 
bool isGeolocationProviderActive ()
 
void setUserMediaPermission (bool)
 
void setUserMediaPersistentPermissionForOrigin (bool permission, JSStringRef origin, JSStringRef parentOrigin)
 
unsigned userMediaPermissionRequestCountForOrigin (JSStringRef origin, JSStringRef parentOrigin) const
 
void resetUserMediaPermissionRequestCountForOrigin (JSStringRef origin, JSStringRef parentOrigin)
 
void setPageVisibility (JSStringRef state)
 
void resetPageVisibility ()
 
bool callShouldCloseOnWebView ()
 
void setCustomTimeout (int duration)
 
void queueBackNavigation (unsigned howFarBackward)
 
void queueForwardNavigation (unsigned howFarForward)
 
void queueLoad (JSStringRef url, JSStringRef target, bool shouldOpenExternalURLs)
 
void queueLoadHTMLString (JSStringRef content, JSStringRef baseURL, JSStringRef unreachableURL)
 
void queueReload ()
 
void queueLoadingScript (JSStringRef script)
 
void queueNonLoadingScript (JSStringRef script)
 
bool secureEventInputIsEnabled () const
 
JSValueRef failNextNewCodeBlock ()
 
JSValueRef numberOfDFGCompiles (JSValueRef theFunction)
 
JSValueRef neverInlineFunction (JSValueRef theFunction)
 
bool shouldDecideNavigationPolicyAfterDelay () const
 
void setShouldDecideNavigationPolicyAfterDelay (bool)
 
void setNavigationGesturesEnabled (bool)
 
void setIgnoresViewportScaleLimits (bool)
 
void setShouldDownloadUndisplayableMIMETypes (bool)
 
void runUIScript (JSStringRef script, JSValueRef callback)
 
void runUIScriptCallback (unsigned callbackID, JSStringRef result)
 
void installDidBeginSwipeCallback (JSValueRef)
 
void installWillEndSwipeCallback (JSValueRef)
 
void installDidEndSwipeCallback (JSValueRef)
 
void installDidRemoveSwipeSnapshotCallback (JSValueRef)
 
void callDidBeginSwipeCallback ()
 
void callWillEndSwipeCallback ()
 
void callDidEndSwipeCallback ()
 
void callDidRemoveSwipeSnapshotCallback ()
 
void clearTestRunnerCallbacks ()
 
void accummulateLogsForChannel (JSStringRef channel)
 
unsigned imageCountInGeneralPasteboard () const
 
void connectMockGamepad (unsigned index)
 
void disconnectMockGamepad (unsigned index)
 
void setMockGamepadDetails (unsigned index, JSStringRef gamepadID, unsigned axisCount, unsigned buttonCount)
 
void setMockGamepadAxisValue (unsigned index, unsigned axisIndex, double value)
 
void setMockGamepadButtonValue (unsigned index, unsigned buttonIndex, double value)
 
void installStatisticsDidModifyDataRecordsCallback (JSValueRef callback)
 
void statisticsDidModifyDataRecordsCallback ()
 
void statisticsFireDataModificationHandler ()
 
void setStatisticsPrevalentResource (JSStringRef hostName, bool value)
 
bool isStatisticsPrevalentResource (JSStringRef hostName)
 
void setStatisticsHasHadUserInteraction (JSStringRef hostName, bool value)
 
bool isStatisticsHasHadUserInteraction (JSStringRef hostName)
 
void setStatisticsSubframeUnderTopFrameOrigin (JSStringRef hostName, JSStringRef topFrameHostName)
 
void setStatisticsSubresourceUnderTopFrameOrigin (JSStringRef hostName, JSStringRef topFrameHostName)
 
void setStatisticsSubresourceUniqueRedirectTo (JSStringRef hostName, JSStringRef hostNameRedirectedTo)
 
void setStatisticsTimeToLiveUserInteraction (double seconds)
 
void setStatisticsNotifyPagesWhenDataRecordsWereScanned (bool)
 
void setStatisticsShouldClassifyResourcesBeforeDataRecordsRemoval (bool)
 
void setStatisticsMinimumTimeBetweeenDataRecordsRemoval (double)
 
void statisticsResetToConsistentState ()
 
void setOpenPanelFiles (JSValueRef)
 
- Public Member Functions inherited from WTR::JSWrappable
virtual ~JSWrappable ()
 
- Public Member Functions inherited from WTF::RefCounted< JSWrappable >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::RefCountedBase
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 

Static Public Member Functions

static Ref< TestRunnercreate ()
 
static unsigned worldIDForWorld (WKBundleScriptWorldRef)
 
static void grantWebNotificationPermission (JSStringRef origin)
 
static void denyWebNotificationPermission (JSStringRef origin)
 
static void removeAllWebNotificationPermissions ()
 
static void simulateWebNotificationClick (JSValueRef notification)
 

Additional Inherited Members

- Protected Member Functions inherited from WTF::RefCounted< JSWrappable >
 RefCounted ()
 
 RefCounted ()
 
 RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
- Protected Member Functions inherited from WTF::RefCountedBase
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 

Member Enumeration Documentation

◆ WhatToDump

Enumerator
RenderTree 
MainFrameText 
AllFramesText 
Audio 
DOMAsWebArchive 

Constructor & Destructor Documentation

◆ ~TestRunner()

TestRunner::~TestRunner ( )
virtual

Member Function Documentation

◆ accummulateLogsForChannel()

void TestRunner::accummulateLogsForChannel ( JSStringRef  channel)

◆ addChromeInputField()

void TestRunner::addChromeInputField ( JSValueRef  callback)

◆ addOriginAccessWhitelistEntry()

void TestRunner::addOriginAccessWhitelistEntry ( JSStringRef  sourceOrigin,
JSStringRef  destinationProtocol,
JSStringRef  destinationHost,
bool  allowDestinationSubdomains 
)

◆ addUserScript()

void TestRunner::addUserScript ( JSStringRef  source,
bool  runAtStart,
bool  allFrames 
)

◆ addUserStyleSheet()

void TestRunner::addUserStyleSheet ( JSStringRef  source,
bool  allFrames 
)

◆ applicationCacheDiskUsageForOrigin()

long long TestRunner::applicationCacheDiskUsageForOrigin ( JSStringRef  origin)

◆ callAddChromeInputFieldCallback()

void TestRunner::callAddChromeInputFieldCallback ( )

◆ callDidBeginSwipeCallback()

void TestRunner::callDidBeginSwipeCallback ( )

◆ callDidEndSwipeCallback()

void TestRunner::callDidEndSwipeCallback ( )

◆ callDidRemoveSwipeSnapshotCallback()

void TestRunner::callDidRemoveSwipeSnapshotCallback ( )

◆ callFocusWebViewCallback()

void TestRunner::callFocusWebViewCallback ( )

◆ callRemoveChromeInputFieldCallback()

void TestRunner::callRemoveChromeInputFieldCallback ( )

◆ callSetBackingScaleFactorCallback()

void TestRunner::callSetBackingScaleFactorCallback ( )

◆ callShouldCloseOnWebView()

bool TestRunner::callShouldCloseOnWebView ( )

◆ callWillEndSwipeCallback()

void TestRunner::callWillEndSwipeCallback ( )

◆ clearAllApplicationCaches()

void TestRunner::clearAllApplicationCaches ( )

◆ clearAllDatabases()

void TestRunner::clearAllDatabases ( )

◆ clearApplicationCacheForOrigin()

void TestRunner::clearApplicationCacheForOrigin ( JSStringRef  origin)

◆ clearBackForwardList()

void TestRunner::clearBackForwardList ( )

◆ clearTestRunnerCallbacks()

void TestRunner::clearTestRunnerCallbacks ( )

◆ closeWebInspector()

void TestRunner::closeWebInspector ( )

◆ connectMockGamepad()

void TestRunner::connectMockGamepad ( unsigned  index)

◆ create()

Ref< TestRunner > TestRunner::create ( )
static

◆ databaseDefaultQuota()

double WTR::TestRunner::databaseDefaultQuota ( ) const
inline

◆ databaseMaxQuota()

double WTR::TestRunner::databaseMaxQuota ( ) const
inline

◆ denyWebNotificationPermission()

void TestRunner::denyWebNotificationPermission ( JSStringRef  origin)
static

◆ disallowIncreaseForApplicationCacheQuota()

void TestRunner::disallowIncreaseForApplicationCacheQuota ( )

◆ disconnectMockGamepad()

void TestRunner::disconnectMockGamepad ( unsigned  index)

◆ dispatchPendingLoadRequests()

void TestRunner::dispatchPendingLoadRequests ( )

◆ display()

void TestRunner::display ( )

◆ dumpApplicationCacheDelegateCallbacks()

void WTR::TestRunner::dumpApplicationCacheDelegateCallbacks ( )
inline

◆ dumpAsText()

void TestRunner::dumpAsText ( bool  dumpPixels)

◆ dumpBackForwardList()

void WTR::TestRunner::dumpBackForwardList ( )
inline

◆ dumpChildFramesAsText()

void WTR::TestRunner::dumpChildFramesAsText ( )
inline

◆ dumpChildFrameScrollPositions()

void WTR::TestRunner::dumpChildFrameScrollPositions ( )
inline

◆ dumpDatabaseCallbacks()

void WTR::TestRunner::dumpDatabaseCallbacks ( )
inline

◆ dumpDOMAsWebArchive()

void WTR::TestRunner::dumpDOMAsWebArchive ( )
inline

◆ dumpEditingCallbacks()

void WTR::TestRunner::dumpEditingCallbacks ( )
inline

◆ dumpFrameLoadCallbacks()

void WTR::TestRunner::dumpFrameLoadCallbacks ( )
inline

◆ dumpFullScreenCallbacks()

void WTR::TestRunner::dumpFullScreenCallbacks ( )
inline

◆ dumpPolicyDelegateCallbacks()

void WTR::TestRunner::dumpPolicyDelegateCallbacks ( )
inline

◆ dumpProgressFinishedCallback()

void WTR::TestRunner::dumpProgressFinishedCallback ( )
inline

◆ dumpResourceLoadCallbacks()

void WTR::TestRunner::dumpResourceLoadCallbacks ( )
inline

◆ dumpResourceResponseMIMETypes()

void WTR::TestRunner::dumpResourceResponseMIMETypes ( )
inline

◆ dumpSelectionRect()

void WTR::TestRunner::dumpSelectionRect ( )
inline

◆ dumpStatusCallbacks()

void WTR::TestRunner::dumpStatusCallbacks ( )
inline

◆ dumpTitleChanges()

void WTR::TestRunner::dumpTitleChanges ( )
inline

◆ dumpWillCacheResponse()

void WTR::TestRunner::dumpWillCacheResponse ( )
inline

◆ evaluateInWebInspector()

void TestRunner::evaluateInWebInspector ( JSStringRef  script)

◆ evaluateScriptInIsolatedWorld()

void TestRunner::evaluateScriptInIsolatedWorld ( JSContextRef  context,
unsigned  worldID,
JSStringRef  script 
)

◆ execCommand()

void TestRunner::execCommand ( JSStringRef  name,
JSStringRef  argument 
)

◆ failNextNewCodeBlock()

JSValueRef TestRunner::failNextNewCodeBlock ( )

◆ findString()

bool TestRunner::findString ( JSStringRef  target,
JSValueRef  optionsArray 
)

◆ focusWebView()

void TestRunner::focusWebView ( JSValueRef  callback)

◆ globalFlag()

bool WTR::TestRunner::globalFlag ( ) const
inline

◆ grantWebNotificationPermission()

void TestRunner::grantWebNotificationPermission ( JSStringRef  origin)
static

◆ hasCustomFullScreenBehavior()

bool WTR::TestRunner::hasCustomFullScreenBehavior ( ) const
inline

◆ imageCountInGeneralPasteboard()

unsigned TestRunner::imageCountInGeneralPasteboard ( ) const

◆ inspectorTestStubURL()

JSRetainPtr< JSStringRef > TestRunner::inspectorTestStubURL ( )

◆ installDidBeginSwipeCallback()

void TestRunner::installDidBeginSwipeCallback ( JSValueRef  callback)

◆ installDidEndSwipeCallback()

void TestRunner::installDidEndSwipeCallback ( JSValueRef  callback)

◆ installDidRemoveSwipeSnapshotCallback()

void TestRunner::installDidRemoveSwipeSnapshotCallback ( JSValueRef  callback)

◆ installStatisticsDidModifyDataRecordsCallback()

void TestRunner::installStatisticsDidModifyDataRecordsCallback ( JSValueRef  callback)

◆ installWillEndSwipeCallback()

void TestRunner::installWillEndSwipeCallback ( JSValueRef  callback)

◆ invalidateWaitToDumpWatchdogTimer()

void TestRunner::invalidateWaitToDumpWatchdogTimer ( )

◆ isCommandEnabled()

bool TestRunner::isCommandEnabled ( JSStringRef  name)

◆ isGeolocationProviderActive()

bool TestRunner::isGeolocationProviderActive ( )

◆ isPageBoxVisible()

bool TestRunner::isPageBoxVisible ( int  pageIndex)

◆ isPolicyDelegateEnabled()

bool WTR::TestRunner::isPolicyDelegateEnabled ( ) const
inline

◆ isPolicyDelegatePermissive()

bool WTR::TestRunner::isPolicyDelegatePermissive ( ) const
inline

◆ isPrinting()

bool WTR::TestRunner::isPrinting ( )
inline

◆ isStatisticsHasHadUserInteraction()

bool TestRunner::isStatisticsHasHadUserInteraction ( JSStringRef  hostName)

◆ isStatisticsPrevalentResource()

bool TestRunner::isStatisticsPrevalentResource ( JSStringRef  hostName)

◆ isWebKit2()

bool WTR::TestRunner::isWebKit2 ( ) const
inline

◆ keepWebHistory()

void TestRunner::keepWebHistory ( )

◆ makeWindowObject()

void TestRunner::makeWindowObject ( JSContextRef  context,
JSObjectRef  windowObject,
JSValueRef exception 
)

◆ neverInlineFunction()

JSValueRef TestRunner::neverInlineFunction ( JSValueRef  theFunction)

◆ notifyDone()

void TestRunner::notifyDone ( )

◆ numberOfDFGCompiles()

JSValueRef TestRunner::numberOfDFGCompiles ( JSValueRef  theFunction)

◆ originsWithApplicationCache()

JSValueRef TestRunner::originsWithApplicationCache ( )

◆ overridePreference()

void TestRunner::overridePreference ( JSStringRef  preference,
JSStringRef  value 
)

◆ pathToLocalResource()

JSRetainPtr< JSStringRef > TestRunner::pathToLocalResource ( JSStringRef  url)

◆ preciseTime()

double TestRunner::preciseTime ( )

◆ queueBackNavigation()

void TestRunner::queueBackNavigation ( unsigned  howFarBackward)

◆ queueForwardNavigation()

void TestRunner::queueForwardNavigation ( unsigned  howFarForward)

◆ queueLoad()

void TestRunner::queueLoad ( JSStringRef  url,
JSStringRef  target,
bool  shouldOpenExternalURLs 
)

◆ queueLoadHTMLString()

void TestRunner::queueLoadHTMLString ( JSStringRef  content,
JSStringRef  baseURL,
JSStringRef  unreachableURL 
)

◆ queueLoadingScript()

void TestRunner::queueLoadingScript ( JSStringRef  script)

◆ queueNonLoadingScript()

void TestRunner::queueNonLoadingScript ( JSStringRef  script)

◆ queueReload()

void TestRunner::queueReload ( )

◆ removeAllWebNotificationPermissions()

void TestRunner::removeAllWebNotificationPermissions ( )
static

◆ removeChromeInputField()

void TestRunner::removeChromeInputField ( JSValueRef  callback)

◆ removeOriginAccessWhitelistEntry()

void TestRunner::removeOriginAccessWhitelistEntry ( JSStringRef  sourceOrigin,
JSStringRef  destinationProtocol,
JSStringRef  destinationHost,
bool  allowDestinationSubdomains 
)

◆ repaintSweepHorizontally()

void WTR::TestRunner::repaintSweepHorizontally ( )
inline

◆ resetPageVisibility()

void TestRunner::resetPageVisibility ( )

◆ resetUserMediaPermissionRequestCountForOrigin()

void TestRunner::resetUserMediaPermissionRequestCountForOrigin ( JSStringRef  origin,
JSStringRef  parentOrigin 
)

◆ runUIScript()

void TestRunner::runUIScript ( JSStringRef  script,
JSValueRef  callback 
)

◆ runUIScriptCallback()

void TestRunner::runUIScriptCallback ( unsigned  callbackID,
JSStringRef  result 
)

◆ secureEventInputIsEnabled()

bool TestRunner::secureEventInputIsEnabled ( ) const

◆ setAcceptsEditing()

void WTR::TestRunner::setAcceptsEditing ( bool  value)
inline

◆ setAllowFileAccessFromFileURLs()

void TestRunner::setAllowFileAccessFromFileURLs ( bool  enabled)

◆ setAllowsAnySSLCertificate()

void TestRunner::setAllowsAnySSLCertificate ( bool  enabled)

◆ setAllowUniversalAccessFromFileURLs()

void TestRunner::setAllowUniversalAccessFromFileURLs ( bool  enabled)

◆ setAlwaysAcceptCookies()

void TestRunner::setAlwaysAcceptCookies ( bool  accept)

◆ setAppCacheMaximumSize()

void TestRunner::setAppCacheMaximumSize ( uint64_t  size)

◆ setAsynchronousSpellCheckingEnabled()

void TestRunner::setAsynchronousSpellCheckingEnabled ( bool  enabled)

◆ setAudioResult()

void TestRunner::setAudioResult ( JSContextRef  context,
JSValueRef  data 
)

◆ setAuthenticationPassword()

void TestRunner::setAuthenticationPassword ( JSStringRef  password)

◆ setAuthenticationUsername()

void TestRunner::setAuthenticationUsername ( JSStringRef  username)

◆ setAuthorAndUserStylesEnabled()

void TestRunner::setAuthorAndUserStylesEnabled ( bool  enabled)

◆ setBackingScaleFactor()

void TestRunner::setBackingScaleFactor ( double  backingScaleFactor,
JSValueRef  callback 
)

◆ setBlockAllPlugins()

void TestRunner::setBlockAllPlugins ( bool  shouldBlock)

◆ setCacheModel()

void TestRunner::setCacheModel ( int  model)

◆ setCanOpenWindows()

void TestRunner::setCanOpenWindows ( bool  )

◆ setCloseRemainingWindowsWhenComplete()

void WTR::TestRunner::setCloseRemainingWindowsWhenComplete ( bool  value)
inline

◆ setCustomElementsEnabled()

void TestRunner::setCustomElementsEnabled ( bool  enabled)

◆ setCustomPolicyDelegate()

void TestRunner::setCustomPolicyDelegate ( bool  enabled,
bool  permissive = false 
)

◆ setCustomTimeout()

void WTR::TestRunner::setCustomTimeout ( int  duration)
inline

◆ setDatabaseDefaultQuota()

void WTR::TestRunner::setDatabaseDefaultQuota ( double  quota)
inline

◆ setDatabaseMaxQuota()

void WTR::TestRunner::setDatabaseMaxQuota ( double  quota)
inline

◆ setDatabaseQuota()

void TestRunner::setDatabaseQuota ( uint64_t  quota)

◆ setDefersLoading()

void TestRunner::setDefersLoading ( bool  shouldDeferLoading)

◆ setDownloadAttributeEnabled()

void TestRunner::setDownloadAttributeEnabled ( bool  enabled)

◆ setEncryptedMediaAPIEnabled()

void TestRunner::setEncryptedMediaAPIEnabled ( bool  enabled)

◆ setFetchAPIEnabled()

void TestRunner::setFetchAPIEnabled ( bool  enabled)

◆ setGeolocationPermission()

void TestRunner::setGeolocationPermission ( bool  enabled)

◆ setGlobalFlag()

void WTR::TestRunner::setGlobalFlag ( bool  value)
inline

◆ setHandlesAuthenticationChallenges()

void TestRunner::setHandlesAuthenticationChallenges ( bool  handlesAuthenticationChallenges)

◆ setHasCustomFullScreenBehavior()

void WTR::TestRunner::setHasCustomFullScreenBehavior ( bool  value)
inline

◆ setIgnoresViewportScaleLimits()

void TestRunner::setIgnoresViewportScaleLimits ( bool  value)

◆ setJavaScriptCanAccessClipboard()

void TestRunner::setJavaScriptCanAccessClipboard ( bool  enabled)

◆ setMediaStreamEnabled()

void TestRunner::setMediaStreamEnabled ( bool  enabled)

◆ setMockGamepadAxisValue()

void TestRunner::setMockGamepadAxisValue ( unsigned  index,
unsigned  axisIndex,
double  value 
)

◆ setMockGamepadButtonValue()

void TestRunner::setMockGamepadButtonValue ( unsigned  index,
unsigned  buttonIndex,
double  value 
)

◆ setMockGamepadDetails()

void TestRunner::setMockGamepadDetails ( unsigned  index,
JSStringRef  gamepadID,
unsigned  axisCount,
unsigned  buttonCount 
)

◆ setMockGeolocationPosition()

void TestRunner::setMockGeolocationPosition ( double  latitude,
double  longitude,
double  accuracy,
JSValueRef  altitude,
JSValueRef  altitudeAccuracy,
JSValueRef  heading,
JSValueRef  speed 
)

◆ setMockGeolocationPositionUnavailableError()

void TestRunner::setMockGeolocationPositionUnavailableError ( JSStringRef  message)

◆ setModernMediaControlsEnabled()

void TestRunner::setModernMediaControlsEnabled ( bool  enabled)

◆ setNavigationGesturesEnabled()

void TestRunner::setNavigationGesturesEnabled ( bool  value)

◆ setNeedsStorageAccessFromFileURLsQuirk()

void TestRunner::setNeedsStorageAccessFromFileURLsQuirk ( bool  needsQuirk)

◆ setOpenPanelFiles()

void TestRunner::setOpenPanelFiles ( JSValueRef  filesValue)

◆ setPageVisibility()

void TestRunner::setPageVisibility ( JSStringRef  state)

◆ setPeerConnectionEnabled()

void TestRunner::setPeerConnectionEnabled ( bool  enabled)

◆ setPluginsEnabled()

void TestRunner::setPluginsEnabled ( bool  enabled)

◆ setPopupBlockingEnabled()

void TestRunner::setPopupBlockingEnabled ( bool  enabled)

◆ setPOSIXLocale()

void TestRunner::setPOSIXLocale ( JSStringRef  locale)

◆ setPrinting()

void WTR::TestRunner::setPrinting ( )
inline

◆ setPrivateBrowsingEnabled()

void TestRunner::setPrivateBrowsingEnabled ( bool  enabled)

◆ setRejectsProtectionSpaceAndContinueForAuthenticationChallenges()

void TestRunner::setRejectsProtectionSpaceAndContinueForAuthenticationChallenges ( bool  value)

◆ setSerializeHTTPLoads()

void TestRunner::setSerializeHTTPLoads ( )

◆ setShadowDOMEnabled()

void TestRunner::setShadowDOMEnabled ( bool  enabled)

◆ setShouldDecideNavigationPolicyAfterDelay()

void TestRunner::setShouldDecideNavigationPolicyAfterDelay ( bool  value)

◆ setShouldDownloadUndisplayableMIMETypes()

void TestRunner::setShouldDownloadUndisplayableMIMETypes ( bool  value)

◆ setShouldDumpFrameLoadCallbacks()

void WTR::TestRunner::setShouldDumpFrameLoadCallbacks ( bool  value)
inline

◆ setShouldDumpProgressFinishedCallback()

void WTR::TestRunner::setShouldDumpProgressFinishedCallback ( bool  value)
inline

◆ setShouldLogCanAuthenticateAgainstProtectionSpace()

void TestRunner::setShouldLogCanAuthenticateAgainstProtectionSpace ( bool  value)

◆ setShouldStayOnPageAfterHandlingBeforeUnload()

void TestRunner::setShouldStayOnPageAfterHandlingBeforeUnload ( bool  shouldStayOnPage)

◆ setSpatialNavigationEnabled()

void TestRunner::setSpatialNavigationEnabled ( bool  enabled)

◆ setStatisticsHasHadUserInteraction()

void TestRunner::setStatisticsHasHadUserInteraction ( JSStringRef  hostName,
bool  value 
)

◆ setStatisticsMinimumTimeBetweeenDataRecordsRemoval()

void TestRunner::setStatisticsMinimumTimeBetweeenDataRecordsRemoval ( double  seconds)

◆ setStatisticsNotifyPagesWhenDataRecordsWereScanned()

void TestRunner::setStatisticsNotifyPagesWhenDataRecordsWereScanned ( bool  value)

◆ setStatisticsPrevalentResource()

void TestRunner::setStatisticsPrevalentResource ( JSStringRef  hostName,
bool  value 
)

◆ setStatisticsShouldClassifyResourcesBeforeDataRecordsRemoval()

void TestRunner::setStatisticsShouldClassifyResourcesBeforeDataRecordsRemoval ( bool  value)

◆ setStatisticsSubframeUnderTopFrameOrigin()

void TestRunner::setStatisticsSubframeUnderTopFrameOrigin ( JSStringRef  hostName,
JSStringRef  topFrameHostName 
)

◆ setStatisticsSubresourceUnderTopFrameOrigin()

void TestRunner::setStatisticsSubresourceUnderTopFrameOrigin ( JSStringRef  hostName,
JSStringRef  topFrameHostName 
)

◆ setStatisticsSubresourceUniqueRedirectTo()

void TestRunner::setStatisticsSubresourceUniqueRedirectTo ( JSStringRef  hostName,
JSStringRef  hostNameRedirectedTo 
)

◆ setStatisticsTimeToLiveUserInteraction()

void TestRunner::setStatisticsTimeToLiveUserInteraction ( double  seconds)

◆ setStopProvisionalFrameLoads()

void WTR::TestRunner::setStopProvisionalFrameLoads ( )
inline

◆ setSubtleCryptoEnabled()

void TestRunner::setSubtleCryptoEnabled ( bool  enabled)

◆ setTabKeyCyclesThroughElements()

void TestRunner::setTabKeyCyclesThroughElements ( bool  enabled)

◆ setTestURL()

void WTR::TestRunner::setTestURL ( WKURLRef  url)
inline

◆ setTextDirection()

void TestRunner::setTextDirection ( JSStringRef  direction)

◆ setUseDashboardCompatibilityMode()

void TestRunner::setUseDashboardCompatibilityMode ( bool  enabled)

◆ setUserMediaPermission()

void TestRunner::setUserMediaPermission ( bool  enabled)

◆ setUserMediaPersistentPermissionForOrigin()

void TestRunner::setUserMediaPersistentPermissionForOrigin ( bool  permission,
JSStringRef  origin,
JSStringRef  parentOrigin 
)

◆ setUserStyleSheetEnabled()

void TestRunner::setUserStyleSheetEnabled ( bool  enabled)

◆ setUserStyleSheetLocation()

void TestRunner::setUserStyleSheetLocation ( JSStringRef  location)

◆ setValueForUser()

void TestRunner::setValueForUser ( JSContextRef  context,
JSValueRef  element,
JSStringRef  value 
)

◆ setViewSize()

void TestRunner::setViewSize ( double  width,
double  height 
)

◆ setWebGL2Enabled()

void TestRunner::setWebGL2Enabled ( bool  enabled)

◆ setWebGPUEnabled()

void TestRunner::setWebGPUEnabled ( bool  enabled)

◆ setWillSendRequestAddsHTTPBody()

void WTR::TestRunner::setWillSendRequestAddsHTTPBody ( JSStringRef  body)
inline

◆ setWillSendRequestReturnsNull()

void WTR::TestRunner::setWillSendRequestReturnsNull ( bool  f)
inline

◆ setWillSendRequestReturnsNullOnRedirect()

void WTR::TestRunner::setWillSendRequestReturnsNullOnRedirect ( bool  f)
inline

◆ setWindowIsKey()

void TestRunner::setWindowIsKey ( bool  isKey)

◆ setXSSAuditorEnabled()

void TestRunner::setXSSAuditorEnabled ( bool  enabled)

◆ shouldAllowEditing()

bool WTR::TestRunner::shouldAllowEditing ( ) const
inline

◆ shouldCloseExtraWindowsAfterRunningTest()

bool WTR::TestRunner::shouldCloseExtraWindowsAfterRunningTest ( ) const
inline

◆ shouldDecideNavigationPolicyAfterDelay()

bool WTR::TestRunner::shouldDecideNavigationPolicyAfterDelay ( ) const
inline

◆ shouldDisallowIncreaseForApplicationCacheQuota()

bool WTR::TestRunner::shouldDisallowIncreaseForApplicationCacheQuota ( )
inline

◆ shouldDumpAllFrameScrollPositions()

bool WTR::TestRunner::shouldDumpAllFrameScrollPositions ( ) const
inline

◆ shouldDumpApplicationCacheDelegateCallbacks()

bool WTR::TestRunner::shouldDumpApplicationCacheDelegateCallbacks ( ) const
inline

◆ shouldDumpBackForwardListsForAllWindows()

bool WTR::TestRunner::shouldDumpBackForwardListsForAllWindows ( ) const
inline

◆ shouldDumpDatabaseCallbacks()

bool WTR::TestRunner::shouldDumpDatabaseCallbacks ( ) const
inline

◆ shouldDumpEditingCallbacks()

bool WTR::TestRunner::shouldDumpEditingCallbacks ( ) const
inline

◆ shouldDumpFrameLoadCallbacks()

bool WTR::TestRunner::shouldDumpFrameLoadCallbacks ( ) const
inline

◆ shouldDumpFullScreenCallbacks()

bool WTR::TestRunner::shouldDumpFullScreenCallbacks ( ) const
inline

◆ shouldDumpMainFrameScrollPosition()

bool WTR::TestRunner::shouldDumpMainFrameScrollPosition ( ) const
inline

◆ shouldDumpPixels()

bool WTR::TestRunner::shouldDumpPixels ( ) const
inline

◆ shouldDumpPolicyCallbacks()

bool WTR::TestRunner::shouldDumpPolicyCallbacks ( ) const
inline

◆ shouldDumpProgressFinishedCallback()

bool WTR::TestRunner::shouldDumpProgressFinishedCallback ( ) const
inline

◆ shouldDumpResourceLoadCallbacks()

bool WTR::TestRunner::shouldDumpResourceLoadCallbacks ( ) const
inline

◆ shouldDumpResourceResponseMIMETypes()

bool WTR::TestRunner::shouldDumpResourceResponseMIMETypes ( ) const
inline

◆ shouldDumpSelectionRect()

bool WTR::TestRunner::shouldDumpSelectionRect ( ) const
inline

◆ shouldDumpStatusCallbacks()

bool WTR::TestRunner::shouldDumpStatusCallbacks ( ) const
inline

◆ shouldDumpTitleChanges()

bool WTR::TestRunner::shouldDumpTitleChanges ( ) const
inline

◆ shouldDumpWillCacheResponse()

bool WTR::TestRunner::shouldDumpWillCacheResponse ( ) const
inline

◆ shouldFinishAfterDownload()

bool WTR::TestRunner::shouldFinishAfterDownload ( ) const
inline

◆ shouldStopProvisionalFrameLoads()

bool WTR::TestRunner::shouldStopProvisionalFrameLoads ( ) const
inline

◆ showWebInspector()

void TestRunner::showWebInspector ( )

◆ simulateWebNotificationClick()

void TestRunner::simulateWebNotificationClick ( JSValueRef  notification)
static

◆ statisticsDidModifyDataRecordsCallback()

void TestRunner::statisticsDidModifyDataRecordsCallback ( )

◆ statisticsFireDataModificationHandler()

void TestRunner::statisticsFireDataModificationHandler ( )

◆ statisticsResetToConsistentState()

void TestRunner::statisticsResetToConsistentState ( )

◆ testRepaint()

void WTR::TestRunner::testRepaint ( )
inline

◆ testURL()

WKURLRef WTR::TestRunner::testURL ( ) const
inline

◆ timeout()

double WTR::TestRunner::timeout ( )
inline

◆ userMediaPermissionRequestCountForOrigin()

unsigned TestRunner::userMediaPermissionRequestCountForOrigin ( JSStringRef  origin,
JSStringRef  parentOrigin 
) const

◆ waitForPolicyDelegate()

void TestRunner::waitForPolicyDelegate ( )

◆ waitToDump()

bool WTR::TestRunner::waitToDump ( ) const
inline

◆ waitToDumpWatchdogTimerFired()

void TestRunner::waitToDumpWatchdogTimerFired ( )

◆ waitUntilDone()

void TestRunner::waitUntilDone ( )

◆ waitUntilDownloadFinished()

void TestRunner::waitUntilDownloadFinished ( )

◆ whatToDump()

WhatToDump WTR::TestRunner::whatToDump ( ) const
inline

◆ willSendRequestHTTPBody()

String WTR::TestRunner::willSendRequestHTTPBody ( ) const
inline

◆ willSendRequestReturnsNull()

bool WTR::TestRunner::willSendRequestReturnsNull ( ) const
inline

◆ willSendRequestReturnsNullOnRedirect()

bool WTR::TestRunner::willSendRequestReturnsNullOnRedirect ( ) const
inline

◆ windowCount()

unsigned TestRunner::windowCount ( )

◆ worldIDForWorld()

unsigned TestRunner::worldIDForWorld ( WKBundleScriptWorldRef  world)
static

◆ wrapperClass()

JSClassRef TestRunner::wrapperClass ( )
virtual

Implements WTR::JSWrappable.


The documentation for this class was generated from the following files: