projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
run tidy by default
[mkws-moved-to-github.git]
/
test
/
js
/
mkws-jasmine-run.js
diff --git
a/test/js/mkws-jasmine-run.js
b/test/js/mkws-jasmine-run.js
index
3b9b29e
..
72ea206
100644
(file)
--- a/
test/js/mkws-jasmine-run.js
+++ b/
test/js/mkws-jasmine-run.js
@@
-7,12
+7,12
@@
function mkws_jasmine_init(delay) {
var currentWindowOnload = window.onload;
function mkws_jasmine_init(delay) {
var currentWindowOnload = window.onload;
- window.onload = function() {
+ window.onload = function () {
if (currentWindowOnload) {
currentWindowOnload();
}
if (delay) {
if (currentWindowOnload) {
currentWindowOnload();
}
if (delay) {
- setTimeout(function() {
+ setTimeout(function () {
execJasmine()
}, delay);
} else {
execJasmine()
}, delay);
} else {
@@
-27,7
+27,7
@@
function mkws_jasmine_init(delay) {
var htmlReporter = new jasmine.HtmlReporter();
jasmineEnv.addReporter(htmlReporter);
var htmlReporter = new jasmine.HtmlReporter();
jasmineEnv.addReporter(htmlReporter);
- jasmineEnv.specFilter = function(spec) {
+ jasmineEnv.specFilter = function (spec) {
return htmlReporter.specFilter(spec);
};
return htmlReporter.specFilter(spec);
};
@@
-35,5
+35,8
@@
function mkws_jasmine_init(delay) {
}
};
}
};
-/* EOF */
+mkws.$(document).ready(function () {
+ mkws_jasmine_init(0);
+});
+/* EOF */