Skip to content

Commit

Permalink
Tree example and 2 test files: fix: JSDoc warnings (pull #1728)
Browse files Browse the repository at this point in the history
- Newline after description
- desc -> description
- obj -> object
- String -> string
  • Loading branch information
nschonni committed Feb 8, 2021
1 parent d53b9f6 commit 9b8908b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion examples/treeview/js/treeview-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,9 @@ class TreeViewNavigation {

/**
* ARIA Treeview example
*
* @function onload
* @desc after page has loaded initialize all treeitems based on the role=treeitem
* @description after page has loaded initialize all treeitems based on the role=treeitem
*/

window.addEventListener('load', function () {
Expand Down
4 changes: 2 additions & 2 deletions test/util/assertAriaOwns.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const assert = require('assert');
/**
* Confirm the aria-owns element.
*
* @param {obj} t - ava execution object
* @param {String} elementSelector - the element with aria-owns set
* @param {object} t - ava execution object
* @param {string} elementSelector - the element with aria-owns set
*/

module.exports = async function assertAriaOwns(t, elementSelector) {
Expand Down
2 changes: 1 addition & 1 deletion test/util/assertAttributeCanBeToggled.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { By } = require('selenium-webdriver');
/**
* Asserts that an attribute to an element can either be toggled to a custom value, or true/false
*
* @param {obj} t - ava execution object
* @param {object} t - ava execution object
* @param {string} selector - element selector string
* @param {string} attribute - attribute to test
* @param {WebDriver.Key} key - key to sent to element that will toggle attribute
Expand Down

0 comments on commit 9b8908b

Please sign in to comment.