' +
'
' +
'
' +
- '
' +
+ '' +
'powered
' +
'by h5ai
' +
'' +
diff --git a/src/_h5ai/public/js/inc/view/view.js b/src/_h5ai/public/js/lib/view/view.js
similarity index 100%
rename from src/_h5ai/public/js/inc/view/view.js
rename to src/_h5ai/public/js/lib/view/view.js
diff --git a/src/_h5ai/public/js/inc/view/viewmode.js b/src/_h5ai/public/js/lib/view/viewmode.js
similarity index 100%
rename from src/_h5ai/public/js/inc/view/viewmode.js
rename to src/_h5ai/public/js/lib/view/viewmode.js
diff --git a/src/_h5ai/public/js/scripts.js b/src/_h5ai/public/js/scripts.js
index 87fc159a..8375817a 100644
--- a/src/_h5ai/public/js/scripts.js
+++ b/src/_h5ai/public/js/scripts.js
@@ -25,7 +25,7 @@
modulejs.define('marked', function () { return win.marked; });
modulejs.define('prism', function () { return win.Prism; });
- // @include 'inc/**/*.js'
+ // @include 'lib/**/*.js'
modulejs.require('boot');
}());
diff --git a/test/scripts.js b/test/scripts.js
index 3f7c2227..53aa541e 100644
--- a/test/scripts.js
+++ b/test/scripts.js
@@ -25,7 +25,7 @@ $(function () {
describe('integration tests', function () {
// @include "tests/integration/*.js"
- // @include "tests/integration/*/*.js"
+ // @-include "tests/integration/*/*.js"
});
});
diff --git a/test/styles.less b/test/styles.less
index 14a85dc3..5f478833 100644
--- a/test/styles.less
+++ b/test/styles.less
@@ -40,6 +40,7 @@
font-weight: bold;
line-height: 32px;
padding: 0 8px;
+ text-shadow: 0 0 4px @col-text;
&.pass {
background: @col-pass;
diff --git a/test/tests/unit/view/topbar.js b/test/tests/unit/view/topbar.js
index 1ece11ef..f76b28d8 100644
--- a/test/tests/unit/view/topbar.js
+++ b/test/tests/unit/view/topbar.js
@@ -97,13 +97,13 @@ describe('module \'' + ID + '\'', function () {
it('#backlink has correct href', function () {
this.applyFn();
- assert.strictEqual($('#backlink').attr('href'), 'http://larsjung.de/h5ai/');
+ assert.strictEqual($('#backlink').attr('href'), 'https://larsjung.de/h5ai/');
});
it('#backlink has correct title', function () {
this.applyFn();
- assert.strictEqual($('#backlink').attr('title'), 'powered by h5ai - http://larsjung.de/h5ai/');
+ assert.strictEqual($('#backlink').attr('title'), 'powered by h5ai - https://larsjung.de/h5ai/');
});
it('#backlink has correct text', function () {
diff --git a/test/util/mocha.js b/test/util/mocha.js
index 64d2816d..158fd2d7 100644
--- a/test/util/mocha.js
+++ b/test/util/mocha.js
@@ -14,7 +14,6 @@ var $mochaProgress = $mochaBar.find('.progress');
function toggleFailureFilter(ev) {
-
ev.stopImmediatePropagation();
showOnlyFailures = !showOnlyFailures;
@@ -27,8 +26,6 @@ function toggleFailureFilter(ev) {
}
function addSuiteStats() {
- /*jshint validthis: true */
-
var $suite = $(this);
var tests = $suite.find('.test').length;
@@ -65,16 +62,12 @@ function addSuiteStats() {
}
function fixCodeFormatting() {
- /*jshint validthis: true */
-
var $code = $(this);
$code.text($code.text().trim().replace(/;\n\s*/g, ';\n'));
}
function onEnd() {
- /*jshint validthis: true */
-
var runner = this;
var failed = runner.stats.failures > 0;
var stats = (runner.stats.duration / 1000.0).toFixed(3) + 's';
@@ -91,8 +84,6 @@ function onEnd() {
}
function onTest() {
- /*jshint validthis: true */
-
var runner = this;
var percent = 100.0 * runner.stats.tests / runner.total;
var stats = ((new Date().getTime() - runner.stats.start) / 1000.0).toFixed(3) + 's';
@@ -105,14 +96,12 @@ function onTest() {
}
function setupMocha() {
-
window.assert = chai.assert;
mocha.setup('bdd');
$(function () { $mochaBar.appendTo('#mocha'); });
}
function runMocha() {
-
mocha.run().on('test', onTest).on('end', onEnd);
}