mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-24 12:07:10 -04:00
Fix some jshint issues.
This commit is contained in:
parent
b95aa583a9
commit
cf84bd74f1
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,7 @@ function toggleFailureFilter(ev) {
|
|||
}
|
||||
|
||||
function addSuiteStats() {
|
||||
/*jshint validthis: true */
|
||||
|
||||
var $suite = $(this);
|
||||
|
||||
|
@ -36,6 +37,7 @@ function addSuiteStats() {
|
|||
}
|
||||
|
||||
function fixCodeFormatting() {
|
||||
/*jshint validthis: true */
|
||||
|
||||
var $code = $(this);
|
||||
$code.text($code.text().trim().replace(/;\n\s*/g, ';\n'));
|
||||
|
@ -43,6 +45,7 @@ function fixCodeFormatting() {
|
|||
|
||||
|
||||
function onEnd() {
|
||||
/*jshint validthis: true */
|
||||
|
||||
var runner = this;
|
||||
var failed = runner.stats.failures > 0;
|
||||
|
@ -60,6 +63,7 @@ function onEnd() {
|
|||
}
|
||||
|
||||
function onTest() {
|
||||
/*jshint validthis: true */
|
||||
|
||||
var runner = this;
|
||||
var percent = 100.0 - 100.0 * runner.stats.tests / runner.total;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue