Skip to content

Commit

Permalink
Editorial: fix several typos in comments (#1220)
Browse files Browse the repository at this point in the history
* typo: Double word "the"

* typo: Double word "index"

* typo: Confrirm -> Confirm

* typo: canidate -> candidate
  • Loading branch information
nschonni authored and ZoeBijl committed Oct 23, 2019
1 parent d367ea5 commit da4ba60
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/tests/treegrid_treegrid-1.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ ariaTest.failing('ENTER actives interactive items item', exampleFile, 'key-enter

await t.context.session.findElement(By.css(selector)).sendKeys(Key.ENTER);

// Test the the URL is updated.
// Test that the URL is updated.
t.is(
await t.context.session.getCurrentUrl(),
newUrl,
Expand Down
4 changes: 2 additions & 2 deletions test/util/assertAriaActivedescendant.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ const assert = require('assert');
*
* @param {obj} t - ava execution object
* @param {String} activedescendantSelector - selector for element with aria-activeDescendant set
* @param {String} optionsSelector - selector to select list of canidate elements for focus
* @param {String} optionsSelector - selector to select list of candidate elements for focus
* @param {Number} index - index of element in list returned by optionsSelector with focus
*/
module.exports = async function assertAriaSelectedAndActivedescendant (t, activedescendantSelector, optionsSelector, index) {

// Confrirm aria-activedescendant refers to the correct option
// Confirm aria-activedescendant refers to the correct option

const options = await t.context.session
.findElements(By.css(optionsSelector));
Expand Down
6 changes: 3 additions & 3 deletions test/util/assertAriaSelectedAndActivedescendant.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ const assert = require('assert');
*
* @param {obj} t - ava execution object
* @param {String} activedescendantSelector - selector for element with aria-activeDescendant set
* @param {String} optionsSelector - selector to select list of canidate elements for focus
* @param {String} optionsSelector - selector to select list of candidate elements for focus
* @param {Number} index - index of element in list returned by optionsSelector with focus
*/
module.exports = async function assertAriaSelectedAndActivedescendant (t, activedescendantSelector, optionsSelector, index) {

// Confirm the option at index index has aria-selected set to true
// Confirm the option at the index has aria-selected set to true

const options = await t.context.session
.findElements(By.css(optionsSelector));
Expand All @@ -25,7 +25,7 @@ module.exports = async function assertAriaSelectedAndActivedescendant (t, active
'aria-selected should be on item at index ' + index + ' for items: ' + optionsSelector
);

// Confrirm aria-activedescendant refers to the correct option
// Confirm aria-activedescendant refers to the correct option

const optionId = await options[index].getAttribute('id');

Expand Down
2 changes: 1 addition & 1 deletion test/util/assertAttributeValues.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { By } = require('selenium-webdriver');
const assert = require('assert');

/**
* Confirm the the value of an attribute on an element.
* Confirm the value of an attribute on an element.
*
* @param {obj} t - ava execution object
* @param {String} elementSelector - the element to check
Expand Down

0 comments on commit da4ba60

Please sign in to comment.