From d7f1e27d1a0619860983255c5ef2d96f34ae52a8 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 16 Aug 2019 16:09:08 +0300 Subject: [PATCH] Assorted typo fixes. --- docs/QUnit/module.md | 4 ++-- docs/callbacks/QUnit.log.md | 4 ++-- docs/config/QUnit.config.md | 2 +- reporter/html.js | 2 +- test/main/promise.js | 2 +- test/reporter-urlparams-hidepassed.js | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/QUnit/module.md b/docs/QUnit/module.md index 184a69dd6..1cac48af1 100644 --- a/docs/QUnit/module.md +++ b/docs/QUnit/module.md @@ -303,7 +303,7 @@ QUnit.module( "Robot", function() { // ... } ); -// Currenly working on implementing features related to androids +// Currently working on implementing features related to androids QUnit.module.only( "Android", function( hooks ) { hooks.beforeEach( function() { this.android = new Android(); @@ -337,7 +337,7 @@ QUnit.module( "Robot", function() { // ... } ); -// Tests related to androids are failling due to unkown cause. +// Tests related to androids are failling due to unknown cause. // Skipping them for now. QUnit.module.skip( "Android", function( hooks ) { hooks.beforeEach( function() { diff --git a/docs/callbacks/QUnit.log.md b/docs/callbacks/QUnit.log.md index c720d00af..85bb95501 100644 --- a/docs/callbacks/QUnit.log.md +++ b/docs/callbacks/QUnit.log.md @@ -24,8 +24,8 @@ The properties of the details argument are listed below as options. | parameter | description | |-----------|-------------| | `result` (boolean) | The boolean result of an assertion, `true` means passed, `false` means failed. | -| `actual` | One side of a comparision assertion. Can be _undefined_ when `ok()` is used. | -| `expected` | One side of a comparision assertion. Can be _undefined_ when `ok()` is used. | +| `actual` | One side of a comparison assertion. Can be _undefined_ when `ok()` is used. | +| `expected` | One side of a comparison assertion. Can be _undefined_ when `ok()` is used. | | `message` (string) | A string description provided by the assertion. | | `source` (string) | The associated stacktrace, either from an exception or pointing to the source of the assertion. Depends on browser support for providing stacktraces, so can be undefined. | | `module` (string) | The test module name of the assertion. If the assertion is not connected to any module, the property's value will be _undefined_. | diff --git a/docs/config/QUnit.config.md b/docs/config/QUnit.config.md index ce2624ff1..ed378ce64 100644 --- a/docs/config/QUnit.config.md +++ b/docs/config/QUnit.config.md @@ -163,7 +163,7 @@ QUnit.config.urlConfig.push({ --- -Add a dropdown to the toolbar, using the `urlConfig` property. This assumes there's other code on the page that will check the `QUnit.config.jquery` property to react to the selection, loading the appropiate jQuery Core version. +Add a dropdown to the toolbar, using the `urlConfig` property. This assumes there's other code on the page that will check the `QUnit.config.jquery` property to react to the selection, loading the appropriate jQuery Core version. ```js QUnit.config.urlConfig.push({ diff --git a/reporter/html.js b/reporter/html.js index 96de76338..e61f1a63d 100644 --- a/reporter/html.js +++ b/reporter/html.js @@ -679,7 +679,7 @@ export function escapeText( s ) { assertLi, assertList; - // Update remaing tests to aborted + // Update remaining tests to aborted if ( abortButton && abortButton.disabled ) { html = "Tests aborted after " + details.runtime + " milliseconds."; diff --git a/test/main/promise.js b/test/main/promise.js index 3ddb89a74..a28847329 100644 --- a/test/main/promise.js +++ b/test/main/promise.js @@ -126,7 +126,7 @@ QUnit.module( "Module with Promise-aware everything", { } } ); -QUnit.test( "fullfilled Promise", function( assert ) { +QUnit.test( "fulfilled Promise", function( assert ) { assert.expect( 5 ); return createMockPromise( assert ); } ); diff --git a/test/reporter-urlparams-hidepassed.js b/test/reporter-urlparams-hidepassed.js index ed9fa566d..59493f5f9 100644 --- a/test/reporter-urlparams-hidepassed.js +++ b/test/reporter-urlparams-hidepassed.js @@ -24,7 +24,7 @@ QUnit.module( "urlParams hidepassed module", function() { QUnit.test( "passed", function( assert ) { - // we have to set it to 1 becuase there is currently one item being rendered, this one as it is in progress + // we have to set it to 1 because there is currently one item being rendered, this one as it is in progress assert.strictEqual( document.getElementById( "qunit-tests" ).children.length, 1 ); } ); } );