Class: Test

Oracle® JavaScript Extension Toolkit (JET)
17.0.0

F92240-01

Since:
  • 1.0
Module:
  • ojcomponentcore

QuickNav

Fields

Description

Common test support in JavaScript


Usage

For additional information visit:


Constructor

new Test

Fields

(static) ready :boolean

A global application flag that can be set by a test to indicate that all page startup processing is done and an external automated test can begin

Methods

(static) compareStackingContexts(el1, el2) : {number}

Utility used for testing. Compares two jQuery singleton wappered elements determining which element has the greatest stacking context.
Parameters:
Name Type Description
el1 jQuery first element to compare
el2 jQuery second element to compare
Since:
  • 1.1.0
Returns:

0 if elements have the same stacking context; 1 if the first element has a greater stacking context; -1 when the second element has a greater stacking context;

Type
number

(static) domNodeForLocator(locator) : {any}

Parameters:
Name Type Description
locator Object | string A locator which is either a JSON string (to be parsed using $.parseJSON), or an Object with the following properties: element: the component's selector, determined by the test author when laying out the page subId: the string, documented by the component, that the component expects in getNodeBySubId to locate a particular subcomponent
Returns:

the subcomponent located by the subId string passed in locator, if found.

Type
any

(static) findOpenPopups : (non-null) {jQuery}

Returns a jQuery set of popup root elements that are open and actively managed by the popup framework.
Since:
  • 1.1.0
Returns:
Type
jQuery

(static) getOpenPopupCount : {number}

Since:
  • 1.1.0
Returns:

total number of open popups

Type
number