when running tests, don't use cached js
This commit is contained in:
parent
f996a24ce2
commit
04e2326808
1 changed files with 4 additions and 3 deletions
|
@ -29,7 +29,9 @@ Ox.load({Geo: {}, UI: {}, Unicode: {}}, function() {
|
|||
'../dev/Ox.Geo/Ox.Geo.js',
|
||||
'../dev/Ox.Image/Ox.Image.js',
|
||||
'../dev/Ox.Unicode/Ox.Unicode.js'
|
||||
])
|
||||
]).map(function(file) {
|
||||
return file + '?' + Ox.random(1000000);
|
||||
})
|
||||
);
|
||||
|
||||
function tests() {
|
||||
|
@ -37,7 +39,6 @@ Ox.load({Geo: {}, UI: {}, Unicode: {}}, function() {
|
|||
lines, spaces, command, expected, result, passed,
|
||||
replace = ['', ''], fns = [], $test;
|
||||
Ox.forEach(Ox.isArray(arguments[0]) ? arguments[0] : arguments, function(script, i) {
|
||||
Ox.print(script)
|
||||
Ox.test(script, function(results) {
|
||||
var tests = {};
|
||||
results.forEach(function(result) {
|
||||
|
@ -48,7 +49,7 @@ Ox.load({Geo: {}, UI: {}, Unicode: {}}, function() {
|
|||
Ox.forEach(tests, function(functions, section) {
|
||||
Ox.Bar({size: 14})
|
||||
.css({padding: '1px 0 1px 4px'})
|
||||
.html(Ox.basename(script) + ' ' + section)
|
||||
.html(Ox.basename(script).split('?')[0] + ' ' + (section || ''))
|
||||
.appendTo($body);
|
||||
Ox.forEach(functions, function(arr, fn) {
|
||||
var $test = Ox.CollapsePanel({
|
||||
|
|
Loading…
Reference in a new issue