webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
InspectorTest Class Reference
Inheritance diagram for InspectorTest:
WebViewTest Test CustomInspectorTest

Public Types

enum  InspectorEvents {
  OpenWindow, BringToFront, Closed, Attach,
  Detach
}
 
- Public Types inherited from Test
enum  ResourcesDir { WebKit2GTKResources, WebKit2Resources }
 

Public Member Functions

 MAKE_GLIB_TEST_FIXTURE (InspectorTest)
 
 InspectorTest ()
 
 ~InspectorTest ()
 
virtual bool openWindow ()
 
virtual bool bringToFront ()
 
virtual void closed ()
 
virtual bool attach ()
 
virtual bool detach ()
 
void show ()
 
void resizeViewAndAttach ()
 
void detachAndWaitUntilWindowOpened ()
 
void close ()
 
- Public Member Functions inherited from WebViewTest
 MAKE_GLIB_TEST_FIXTURE (WebViewTest)
 
 WebViewTest ()
 
virtual ~WebViewTest ()
 
void initializeWebView ()
 
virtual void loadURI (const char *uri)
 
virtual void loadHtml (const char *html, const char *baseURI)
 
virtual void loadPlainText (const char *plainText)
 
virtual void loadRequest (WebKitURIRequest *)
 
virtual void loadBytes (GBytes *, const char *mimeType, const char *encoding, const char *baseURI)
 
void loadAlternateHTML (const char *html, const char *contentURI, const char *baseURI)
 
void goBack ()
 
void goForward ()
 
void goToBackForwardListItem (WebKitBackForwardListItem *)
 
void quitMainLoop ()
 
void quitMainLoopAfterProcessingPendingEvents ()
 
void wait (double seconds)
 
void waitUntilLoadFinished ()
 
void waitUntilTitleChangedTo (const char *expectedTitle)
 
void waitUntilTitleChanged ()
 
void showInWindow (GtkWindowType=GTK_WINDOW_POPUP)
 
void showInWindowAndWaitUntilMapped (GtkWindowType=GTK_WINDOW_POPUP, int width=0, int height=0)
 
void resizeView (int width, int height)
 
void selectAll ()
 
const char * mainResourceData (size_t &mainResourceDataSize)
 
bool isEditable ()
 
void setEditable (bool)
 
void mouseMoveTo (int x, int y, unsigned mouseModifiers=0)
 
void clickMouseButton (int x, int y, unsigned button=1, unsigned mouseModifiers=0)
 
void keyStroke (unsigned keyVal, unsigned keyModifiers=0)
 
void emitPopupMenuSignal ()
 
WebKitJavascriptResultrunJavaScriptAndWaitUntilFinished (const char *javascript, GError **)
 
WebKitJavascriptResultrunJavaScriptFromGResourceAndWaitUntilFinished (const char *resource, GError **)
 
cairo_surface_tgetSnapshotAndWaitUntilReady (WebKitSnapshotRegion, WebKitSnapshotOptions)
 
bool runWebProcessTest (const char *suiteName, const char *testName)
 
void initializeWebExtensions () final
 
- Public Member Functions inherited from Test
 MAKE_GLIB_TEST_FIXTURE (Test)
 
 Test ()
 
 ~Test ()
 
void assertObjectIsDeletedWhenTestFinishes (GObject *object)
 
void addLogFatalFlag (unsigned flag)
 
void removeLogFatalFlag (unsigned flag)
 

Static Public Member Functions

static gboolean openWindowCallback (WebKitWebInspector *, InspectorTest *test)
 
static gboolean bringToFrontCallback (WebKitWebInspector *, InspectorTest *test)
 
static void closedCallback (WebKitWebInspector *, InspectorTest *test)
 
static gboolean attachCallback (WebKitWebInspector *, InspectorTest *test)
 
static gboolean detachCallback (WebKitWebInspector *, InspectorTest *test)
 
static gboolean showIdle (InspectorTest *test)
 
static void canAttachChanged (InspectorTest *test)
 
static gboolean detachIdle (InspectorTest *test)
 
- Static Public Member Functions inherited from WebViewTest
static char * javascriptResultToCString (WebKitJavascriptResult *)
 
static double javascriptResultToNumber (WebKitJavascriptResult *)
 
static bool javascriptResultToBoolean (WebKitJavascriptResult *)
 
static bool javascriptResultIsNull (WebKitJavascriptResult *)
 
static bool javascriptResultIsUndefined (WebKitJavascriptResult *)
 
static gboolean webProcessCrashed (WebKitWebView *, WebViewTest *)
 
- Static Public Member Functions inherited from Test
static const char * dataDirectory ()
 
static void initializeWebExtensionsCallback (WebKitWebContext *context, Test *test)
 
static void objectFinalized (Test *test, GObject *finalizedObject)
 
static CString getResourcesDir (ResourcesDir resourcesDir=WebKit2GTKResources)
 
static bool cairoSurfacesEqual (cairo_surface_t *s1, cairo_surface_t *s2)
 

Public Attributes

WebKitWebInspectorm_inspector
 
Vector< InspectorEventsm_events
 
- Public Attributes inherited from WebViewTest
GRefPtr< WebKitUserContentManagerm_userContentManager
 
WebKitWebViewm_webView { nullptr }
 
GMainLoopm_mainLoop
 
CString m_activeURI
 
GtkWidgetm_parentWindow { nullptr }
 
CString m_expectedTitle
 
WebKitJavascriptResultm_javascriptResult { nullptr }
 
GError ** m_javascriptError { nullptr }
 
GUniquePtr< char > m_resourceData { nullptr }
 
size_t m_resourceDataSize { 0 }
 
cairo_surface_tm_surface { nullptr }
 
bool m_expectedWebProcessCrash { false }
 
- Public Attributes inherited from Test
const char * name
 
bool(* func )(FileTest *t, BN_CTX *ctx)
 
HashSet< GObject * > m_watchedObjects
 
GRefPtr< WebKitWebContextm_webContext
 

Static Public Attributes

static const unsigned gMinimumAttachedInspectorWidth = 750
 
static const unsigned gMinimumAttachedInspectorHeight = 250
 
- Static Public Attributes inherited from WebViewTest
static bool shouldInitializeWebViewInConstructor = true
 
- Static Public Attributes inherited from Test
static uint32_t s_webExtensionID = 0
 

Member Enumeration Documentation

◆ InspectorEvents

Enumerator
OpenWindow 
BringToFront 
Closed 
Attach 
Detach 

Constructor & Destructor Documentation

◆ InspectorTest()

InspectorTest::InspectorTest ( )
inline

◆ ~InspectorTest()

InspectorTest::~InspectorTest ( )
inline

Member Function Documentation

◆ attach()

virtual bool InspectorTest::attach ( )
inlinevirtual

Reimplemented in CustomInspectorTest.

◆ attachCallback()

static gboolean InspectorTest::attachCallback ( WebKitWebInspector ,
InspectorTest test 
)
inlinestatic

◆ bringToFront()

virtual bool InspectorTest::bringToFront ( )
inlinevirtual

◆ bringToFrontCallback()

static gboolean InspectorTest::bringToFrontCallback ( WebKitWebInspector ,
InspectorTest test 
)
inlinestatic

◆ canAttachChanged()

static void InspectorTest::canAttachChanged ( InspectorTest test)
inlinestatic

◆ close()

void InspectorTest::close ( )
inline

◆ closed()

virtual void InspectorTest::closed ( )
inlinevirtual

Reimplemented in CustomInspectorTest.

◆ closedCallback()

static void InspectorTest::closedCallback ( WebKitWebInspector ,
InspectorTest test 
)
inlinestatic

◆ detach()

virtual bool InspectorTest::detach ( )
inlinevirtual

Reimplemented in CustomInspectorTest.

◆ detachAndWaitUntilWindowOpened()

void InspectorTest::detachAndWaitUntilWindowOpened ( )
inline

◆ detachCallback()

static gboolean InspectorTest::detachCallback ( WebKitWebInspector ,
InspectorTest test 
)
inlinestatic

◆ detachIdle()

static gboolean InspectorTest::detachIdle ( InspectorTest test)
inlinestatic

◆ MAKE_GLIB_TEST_FIXTURE()

InspectorTest::MAKE_GLIB_TEST_FIXTURE ( InspectorTest  )

◆ openWindow()

virtual bool InspectorTest::openWindow ( )
inlinevirtual

Reimplemented in CustomInspectorTest.

◆ openWindowCallback()

static gboolean InspectorTest::openWindowCallback ( WebKitWebInspector ,
InspectorTest test 
)
inlinestatic

◆ resizeViewAndAttach()

void InspectorTest::resizeViewAndAttach ( )
inline

◆ show()

void InspectorTest::show ( )
inline

◆ showIdle()

static gboolean InspectorTest::showIdle ( InspectorTest test)
inlinestatic

Member Data Documentation

◆ gMinimumAttachedInspectorHeight

const unsigned InspectorTest::gMinimumAttachedInspectorHeight = 250
static

◆ gMinimumAttachedInspectorWidth

const unsigned InspectorTest::gMinimumAttachedInspectorWidth = 750
static

◆ m_events

Vector<InspectorEvents> InspectorTest::m_events

◆ m_inspector

WebKitWebInspector* InspectorTest::m_inspector

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