mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-14 01:04:13 +02:00
Fix some jshint issues.
This commit is contained in:
@@ -17,6 +17,7 @@ function toggleFailureFilter(ev) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function addSuiteStats() {
|
function addSuiteStats() {
|
||||||
|
/*jshint validthis: true */
|
||||||
|
|
||||||
var $suite = $(this);
|
var $suite = $(this);
|
||||||
|
|
||||||
@@ -36,6 +37,7 @@ function addSuiteStats() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function fixCodeFormatting() {
|
function fixCodeFormatting() {
|
||||||
|
/*jshint validthis: true */
|
||||||
|
|
||||||
var $code = $(this);
|
var $code = $(this);
|
||||||
$code.text($code.text().trim().replace(/;\n\s*/g, ';\n'));
|
$code.text($code.text().trim().replace(/;\n\s*/g, ';\n'));
|
||||||
@@ -43,6 +45,7 @@ function fixCodeFormatting() {
|
|||||||
|
|
||||||
|
|
||||||
function onEnd() {
|
function onEnd() {
|
||||||
|
/*jshint validthis: true */
|
||||||
|
|
||||||
var runner = this;
|
var runner = this;
|
||||||
var failed = runner.stats.failures > 0;
|
var failed = runner.stats.failures > 0;
|
||||||
@@ -60,6 +63,7 @@ function onEnd() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onTest() {
|
function onTest() {
|
||||||
|
/*jshint validthis: true */
|
||||||
|
|
||||||
var runner = this;
|
var runner = this;
|
||||||
var percent = 100.0 - 100.0 * runner.stats.tests / runner.total;
|
var percent = 100.0 - 100.0 * runner.stats.tests / runner.total;
|
||||||
|
Reference in New Issue
Block a user