@@ -15,11 +15,12 @@ fluid.registerNamespace("fluid.test.webdriver");
15
15
* A function to that calls `elementFn` against DOM element `element` and compares the result to `expectedValue` using
16
16
* `jqUnitFn`.
17
17
*
18
- * @param {String } message A message describing this test.
19
- * @param {Object } element The DOM element to inspect.
20
- * @param {String } elementFn The function name we expected to run against the DOM element.
21
- * @param {Object } expectedValue The expected return value.
22
- * @param {String } jqUnitFn The jqUnit function to use for the test.
18
+ * @param {String } message - A message describing this test.
19
+ * @param {Object } element - The DOM element to inspect.
20
+ * @param {String } elementFn - The function name we expected to run against the DOM element.
21
+ * @param {Object } expectedValue - The expected return value.
22
+ * @param {String } jqUnitFn - The jqUnit function to use for the test.
23
+ *
23
24
*/
24
25
fluid . test . webdriver . inspectElement = function ( message , element , elementFn , expectedValue , jqUnitFn ) {
25
26
jqUnitFn = jqUnitFn || "assertEquals" ;
@@ -32,10 +33,10 @@ fluid.test.webdriver.inspectElement = function (message, element, elementFn, exp
32
33
*
33
34
* Get an element's `value` attribute and compare it to an expected value using a particular jqUnit function.
34
35
*
35
- * @param {String } message A message describing this test.
36
- * @param {Object } element The DOM element to inspect.
37
- * @param {Object } expectedValue The expected value of the element.
38
- * @param {String } jqUnitFn The jqUnit function to use for the comparison, typically `assertEquals` or `assertDeepEq`.
36
+ * @param {String } message - A message describing this test.
37
+ * @param {Object } element - The DOM element to inspect.
38
+ * @param {Object } expectedValue - The expected value of the element.
39
+ * @param {String } jqUnitFn - The jqUnit function to use for the comparison, typically `assertEquals` or `assertDeepEq`.
39
40
*
40
41
*/
41
42
fluid . test . webdriver . testElementValue = function ( message , element , expectedValue , jqUnitFn ) {
@@ -49,9 +50,9 @@ fluid.test.webdriver.testElementValue = function (message, element, expectedValu
49
50
*
50
51
* A function to verify whether an element is selected.
51
52
*
52
- * @param {String } message A message describing this test.
53
- * @param {Object } element The DOM element to inspect.
54
- * @param {Boolean } selected True if the element should be selected, false otherwise.
53
+ * @param {String } message - A message describing this test.
54
+ * @param {Object } element - The DOM element to inspect.
55
+ * @param {Boolean } selected - True if the element should be selected, false otherwise.
55
56
*
56
57
*/
57
58
fluid . test . webdriver . testElementSelected = function ( message , element , selected ) {
@@ -64,10 +65,10 @@ fluid.test.webdriver.testElementSelected = function (message, element, selected)
64
65
* A function to compare an array of elements with an array of expected values. Ideal for use with
65
66
* `{fluid.webdriver}.findElements`, which returns an array of elements.
66
67
*
67
- * @param {String } message A message describing this test.
68
- * @param {Array } elements An array of DOM elements.
69
- * @param {String } elementFn The element function to call for each DOM element.
70
- * @param {Array } expectedValues An array of expected return values.
68
+ * @param {String } message - A message describing this test.
69
+ * @param {Array } elements - An array of DOM elements.
70
+ * @param {String } elementFn - The element function to call for each DOM element.
71
+ * @param {Array } expectedValues - An array of expected return values.
71
72
*
72
73
*/
73
74
fluid . test . webdriver . inspectElements = function ( message , elements , elementFn , expectedValues ) {
@@ -86,8 +87,8 @@ fluid.test.webdriver.inspectElements = function (message, elements, elementFn, e
86
87
*
87
88
* Some things, like Capabilities, are Map objects that we would like to be able to inspect as plain old Javascript objects.
88
89
*
89
- * @param {Map } map A map to be converted.
90
- * @return {Object } The map in JSON form.
90
+ * @param {Map } map - A map to be converted.
91
+ * @return {Object } - The map in JSON form.
91
92
*
92
93
*/
93
94
fluid . test . webdriver . mapToObject = function ( map ) {
@@ -105,6 +106,7 @@ fluid.test.webdriver.mapToObject = function (map) {
105
106
*
106
107
* @param {Array } failures - An array of failure messages returned by an accessibility scanner (see below).
107
108
* @param {Boolean } shouldHaveFailures - Whether the results should contain failures (`false` by default).
109
+ *
108
110
*/
109
111
fluid . test . webdriver . checkAccessibilityScanResults = function ( failures , shouldHaveFailures ) {
110
112
if ( shouldHaveFailures ) {
@@ -135,6 +137,7 @@ fluid.test.webdriver.invokeGlobal = function (functionPath, fnArgs, environment)
135
137
136
138
fluid . registerNamespace ( "fluid.test.webdriver.axe" ) ;
137
139
140
+ /* eslint-disable jsdoc/check-param-names */
138
141
/**
139
142
*
140
143
* A function to run aXe in a browser and then return the results. Should be used with `executeAsyncScript`.
@@ -144,6 +147,7 @@ fluid.registerNamespace("fluid.test.webdriver.axe");
144
147
*
145
148
* @param {Function } callback - The WebDriver API itself supplies a callback that we use to return the results of the scan.
146
149
*/
150
+ /* eslint-enable jsdoc/check-param-names */
147
151
fluid . test . webdriver . axe . runAxe = function ( ) {
148
152
/* globals axe */
149
153
var callback = arguments [ arguments . length - 1 ] ;
0 commit comments