mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-08 16:40:59 +00:00
added simple helper to rerun qunit tests
This commit is contained in:
parent
0c59d527c3
commit
c3854fe8ca
1 changed files with 11 additions and 0 deletions
|
|
@ -34,6 +34,17 @@
|
|||
$("body").append(lib);
|
||||
},
|
||||
|
||||
rerunQunit: function(){
|
||||
var self = this;
|
||||
QUnit.init();
|
||||
$("script:not([src*='.\/'])").each(function(i, elem){
|
||||
var src = elem.src.split("/");
|
||||
console.log(elem.src);
|
||||
self.reloadLib(src[src.length - 1]);
|
||||
});
|
||||
QUnit.start();
|
||||
},
|
||||
|
||||
alterExtend: function(extraExtension){
|
||||
var extendFn = $.extend;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue