2008-11-30 02:12:55 +00:00
|
|
|
// Bootstrap Test Reporter function
|
|
|
|
var reporter = function () {
|
|
|
|
|
|
|
|
var total = 0;
|
|
|
|
var passes = 0;
|
|
|
|
var fails = 0;
|
|
|
|
|
|
|
|
var that = {
|
|
|
|
test: function (result, message) {
|
|
|
|
total++;
|
|
|
|
|
|
|
|
if (result) {
|
|
|
|
passes++;
|
|
|
|
iconElement = $('icons');
|
|
|
|
iconElement.appendChild(new Element('img', {src: '../images/accept.png'}));
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
fails++;
|
2008-12-01 20:26:12 +00:00
|
|
|
var fails_report = $('fails');
|
|
|
|
fails_report.show();
|
2008-11-30 02:12:55 +00:00
|
|
|
|
|
|
|
iconElement = $('icons');
|
|
|
|
iconElement.appendChild(new Element('img', {src: '../images/exclamation.png'}));
|
|
|
|
|
|
|
|
var failMessages = $('fail_messages');
|
2008-12-01 20:26:12 +00:00
|
|
|
var newFail = new Element('p', {'class': 'fail'});
|
2008-11-30 02:12:55 +00:00
|
|
|
newFail.innerHTML = message;
|
|
|
|
failMessages.appendChild(newFail);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
summary: function () {
|
2008-12-01 20:26:12 +00:00
|
|
|
summary = new Element('p', {'class': ((fails > 0) ? 'fail_in_summary' : '') });
|
|
|
|
summary.innerHTML = total + ' tests, ' + passes + ' passing, ' + fails + ' failed.';
|
|
|
|
|
|
|
|
var summaryElement = $('results_summary');
|
|
|
|
summaryElement.appendChild(summary);
|
|
|
|
summaryElement.show();
|
2008-11-30 02:12:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return that;
|
|
|
|
}();
|
|
|
|
|
|
|
|
var testMatchersComparisons = function () {
|
2008-12-01 23:59:41 +00:00
|
|
|
var expected = new Matchers(true);
|
|
|
|
reporter.test(expected.should_equal(true),
|
2008-12-01 20:26:12 +00:00
|
|
|
'expects_that(true).should_equal(true) returned false');
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
expected = new Matchers(false);
|
|
|
|
reporter.test(!(expected.should_equal(true)),
|
2008-12-01 20:26:12 +00:00
|
|
|
'expects_that(true).should_equal(true) returned true');
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
expected = new Matchers(true);
|
|
|
|
reporter.test(expected.should_not_equal(false),
|
2008-12-01 20:26:12 +00:00
|
|
|
'expects_that(true).should_not_equal(false) retruned false');
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-02 00:32:14 +00:00
|
|
|
expected = new Matchers(true);
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test(!(expected.should_not_equal(true)),
|
2008-12-01 20:26:12 +00:00
|
|
|
'expects_that(true).should_not_equal(false) retruned true');
|
2008-11-30 02:12:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var testMatchersReporting = function () {
|
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
var results = [];
|
|
|
|
var expected = new Matchers(true, results);
|
|
|
|
expected.should_equal(true);
|
|
|
|
expected.should_equal(false);
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((results.length == 2),
|
|
|
|
"Results array doesn't have 2 results");
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((results[0].passed == true),
|
2008-12-01 20:26:12 +00:00
|
|
|
"First spec didn't pass");
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((results[1].passed == false),
|
2008-12-01 20:26:12 +00:00
|
|
|
"Second spec did pass");
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
results = [];
|
|
|
|
var expected = new Matchers(false, results);
|
|
|
|
expected.should_equal(true);
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((results[0].message == 'Expected true but got false.'),
|
2008-12-01 20:26:12 +00:00
|
|
|
"Failed expectation didn't test the failure message");
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
results = [];
|
|
|
|
var expected = new Matchers(true, results);
|
|
|
|
expected.should_equal(true);
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((results[0].message == 'Passed.'),
|
2008-12-01 20:26:12 +00:00
|
|
|
"Passing expectation didn't test the passing message");
|
2008-11-30 02:12:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var testSpecs = function () {
|
|
|
|
var spec = it('new spec');
|
|
|
|
reporter.test((spec.description == 'new spec'),
|
2008-12-01 20:26:12 +00:00
|
|
|
"Spec did not have a description");
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-01 23:15:34 +00:00
|
|
|
var another_spec = it('spec with an expectation').runs(function () {
|
2008-11-30 02:12:55 +00:00
|
|
|
var foo = 'bar';
|
2008-12-01 23:59:41 +00:00
|
|
|
this.expects_that(foo).should_equal('bar');
|
2008-11-30 02:12:55 +00:00
|
|
|
});
|
|
|
|
another_spec.execute();
|
2008-12-01 20:26:12 +00:00
|
|
|
another_spec.done = true;
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((another_spec.results.length == 1),
|
2008-12-01 20:26:12 +00:00
|
|
|
"Results aren't there after a spec was executed");
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((another_spec.results[0].passed == true),
|
2008-12-01 20:26:12 +00:00
|
|
|
"Results has a result, but it's true");
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-01 23:15:34 +00:00
|
|
|
var yet_another_spec = it('spec with failing expectation').runs(function () {
|
2008-11-30 02:12:55 +00:00
|
|
|
var foo = 'bar';
|
2008-12-01 23:59:41 +00:00
|
|
|
this.expects_that(foo).should_equal('baz');
|
2008-11-30 02:12:55 +00:00
|
|
|
});
|
|
|
|
yet_another_spec.execute();
|
2008-12-01 23:59:41 +00:00
|
|
|
yet_another_spec.done = true;
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((yet_another_spec.results[0].passed == false),
|
2008-12-01 20:26:12 +00:00
|
|
|
"Expectation that failed, passed");
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-02 00:32:14 +00:00
|
|
|
var yet_yet_another_spec = it('spec with multiple assertions').runs(function () {
|
2008-11-30 02:12:55 +00:00
|
|
|
var foo = 'bar';
|
|
|
|
var baz = 'quux';
|
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
this.expects_that(foo).should_equal('bar');
|
|
|
|
this.expects_that(baz).should_equal('quux');
|
2008-11-30 02:12:55 +00:00
|
|
|
});
|
|
|
|
yet_yet_another_spec.execute();
|
2008-12-01 23:59:41 +00:00
|
|
|
yet_yet_another_spec.done = true;
|
2008-11-30 02:12:55 +00:00
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((yet_yet_another_spec.results.length == 2),
|
2008-12-01 20:26:12 +00:00
|
|
|
"Spec doesn't support multiple expectations");
|
|
|
|
}
|
|
|
|
|
|
|
|
var testAsyncSpecs = function () {
|
|
|
|
var foo = 0;
|
|
|
|
|
2008-12-01 23:15:34 +00:00
|
|
|
var a_spec = it('simple queue test').
|
2008-12-01 20:26:12 +00:00
|
|
|
runs(function () {
|
|
|
|
foo++;
|
|
|
|
}).then(function() {
|
2008-12-01 23:59:41 +00:00
|
|
|
this.expects_that(foo).should_equal(1)
|
2008-12-01 20:26:12 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
reporter.test(a_spec.queue.length === 2,
|
|
|
|
'Spec queue length is not 2');
|
|
|
|
|
|
|
|
foo = 0;
|
2008-12-01 23:15:34 +00:00
|
|
|
a_spec = it('spec w/ queued statments').
|
2008-12-01 20:26:12 +00:00
|
|
|
runs(function () {
|
|
|
|
foo++;
|
|
|
|
}).then(function() {
|
2008-12-01 23:59:41 +00:00
|
|
|
this.expects_that(foo).should_equal(1);
|
2008-12-01 20:26:12 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
a_spec.execute();
|
|
|
|
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((a_spec.results.length === 1),
|
2008-12-01 22:24:13 +00:00
|
|
|
'No call to waits(): Spec queue did not run all functions');
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((a_spec.results[0].passed === true),
|
2008-12-01 22:24:13 +00:00
|
|
|
'No call to waits(): Queued expectation failed');
|
2008-12-01 20:26:12 +00:00
|
|
|
|
|
|
|
foo = 0;
|
2008-12-01 23:15:34 +00:00
|
|
|
a_spec = it('spec w/ queued statments').
|
2008-12-01 20:26:12 +00:00
|
|
|
runs(function () {
|
2008-12-02 00:32:14 +00:00
|
|
|
setTimeout(function() {
|
|
|
|
foo++
|
|
|
|
}, 500);
|
|
|
|
}).waits(1000).
|
2008-12-01 22:24:13 +00:00
|
|
|
then(function() {
|
2008-12-02 00:32:14 +00:00
|
|
|
this.expects_that(foo).should_equal(1);
|
|
|
|
});
|
2008-12-01 20:26:12 +00:00
|
|
|
|
2008-12-02 00:32:14 +00:00
|
|
|
var mockSuite = {
|
|
|
|
next: function() {
|
|
|
|
reporter.test((a_spec.results.length === 1),
|
|
|
|
'Calling waits(): Spec queue did not run all functions');
|
2008-12-01 20:26:12 +00:00
|
|
|
|
2008-12-02 00:32:14 +00:00
|
|
|
reporter.test((a_spec.results[0].passed === true),
|
|
|
|
'Calling waits(): Queued expectation failed');
|
|
|
|
}
|
|
|
|
};
|
|
|
|
a_spec.execute();
|
|
|
|
waitForDone(a_spec, mockSuite);
|
2008-12-01 23:15:34 +00:00
|
|
|
|
2008-12-02 00:32:14 +00:00
|
|
|
var bar = 0;
|
|
|
|
var another_spec = it('spec w/ queued statments').
|
|
|
|
runs(function () {
|
|
|
|
setTimeout(function() {
|
|
|
|
bar++;
|
|
|
|
}, 250);
|
|
|
|
}).
|
|
|
|
waits(500).
|
|
|
|
then(function () {
|
|
|
|
setTimeout(function() {
|
|
|
|
bar++;
|
|
|
|
}, 250);
|
|
|
|
}).
|
|
|
|
waits(1500).
|
|
|
|
then(function() {
|
|
|
|
this.expects_that(bar).should_equal(2);
|
|
|
|
});
|
|
|
|
mockSuite = {
|
|
|
|
next: function() {
|
2008-12-01 23:15:34 +00:00
|
|
|
reporter.test((another_spec.queue.length === 3),
|
|
|
|
'Calling 2 waits(): Spec queue was less than expected length');
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((another_spec.results.length === 1),
|
2008-12-01 23:15:34 +00:00
|
|
|
'Calling 2 waits(): Spec queue did not run all functions');
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((another_spec.results[0].passed === true),
|
2008-12-01 23:15:34 +00:00
|
|
|
'Calling 2 waits(): Queued expectation failed');
|
2008-12-02 00:32:14 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
another_spec.execute();
|
|
|
|
waitForDone(another_spec, mockSuite);
|
|
|
|
|
|
|
|
var baz = 0;
|
|
|
|
var yet_another_spec = it('spec w/ async fail').
|
|
|
|
runs(function () {
|
|
|
|
setTimeout(function() {
|
|
|
|
baz++;
|
|
|
|
}, 250);
|
|
|
|
}).
|
|
|
|
waits(100).
|
|
|
|
then(function() {
|
|
|
|
this.expects_that(baz).should_equal(1);
|
|
|
|
});
|
|
|
|
|
|
|
|
mockSuite = {
|
|
|
|
next: function() {
|
2008-12-01 23:15:34 +00:00
|
|
|
|
|
|
|
reporter.test((yet_another_spec.queue.length === 2),
|
|
|
|
'Calling 2 waits(): Spec queue was less than expected length');
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((yet_another_spec.results.length === 1),
|
2008-12-01 23:15:34 +00:00
|
|
|
'Calling 2 waits(): Spec queue did not run all functions');
|
2008-12-01 23:59:41 +00:00
|
|
|
reporter.test((yet_another_spec.results[0].passed === false),
|
2008-12-01 23:15:34 +00:00
|
|
|
'Calling 2 waits(): Queued expectation failed');
|
2008-12-02 00:32:14 +00:00
|
|
|
}
|
|
|
|
};
|
2008-12-01 23:15:34 +00:00
|
|
|
|
2008-12-02 00:32:14 +00:00
|
|
|
yet_another_spec.execute();
|
|
|
|
waitForDone(yet_another_spec, mockSuite);
|
|
|
|
}
|
|
|
|
|
|
|
|
var testAsyncSpecsWithMockSuite = function () {
|
|
|
|
var bar = 0;
|
|
|
|
var another_spec = it('spec w/ queued statments').
|
|
|
|
runs(function () {
|
|
|
|
setTimeout(function() {
|
|
|
|
bar++;
|
|
|
|
}, 250);
|
|
|
|
}).
|
|
|
|
waits(500).
|
|
|
|
then(function () {
|
|
|
|
setTimeout(function() {
|
|
|
|
bar++;
|
|
|
|
}, 250);
|
|
|
|
}).
|
|
|
|
waits(1500).
|
|
|
|
then(function() {
|
|
|
|
this.expects_that(bar).should_equal(2);
|
|
|
|
});
|
|
|
|
|
|
|
|
var mockSuite = {
|
|
|
|
next: function () {
|
|
|
|
reporter.test((another_spec.queue.length === 3),
|
|
|
|
'Calling 2 waits(): Spec queue was less than expected length');
|
|
|
|
reporter.test((another_spec.results.length === 1),
|
|
|
|
'Calling 2 waits(): Spec queue did not run all functions');
|
|
|
|
reporter.test((another_spec.results[0].passed === true),
|
|
|
|
'Calling 2 waits(): Queued expectation failed');
|
|
|
|
}
|
|
|
|
};
|
|
|
|
another_spec.execute();
|
|
|
|
waitForDone(another_spec, mockSuite);
|
|
|
|
}
|
2008-12-01 23:15:34 +00:00
|
|
|
|
2008-12-02 00:32:14 +00:00
|
|
|
var waitForDone = function(spec, mockSuite) {
|
|
|
|
var id = setInterval(function () {
|
|
|
|
if (spec.finished) {
|
|
|
|
clearInterval(id);
|
|
|
|
mockSuite.next();
|
|
|
|
}
|
|
|
|
}, 150);
|
2008-11-30 02:12:55 +00:00
|
|
|
}
|
|
|
|
|
2008-12-02 01:57:21 +00:00
|
|
|
var testSuites = function () {
|
|
|
|
|
|
|
|
// suite has a description
|
2008-12-02 18:27:09 +00:00
|
|
|
var suite = describe('one suite description', function() {
|
|
|
|
});
|
2008-12-02 01:57:21 +00:00
|
|
|
reporter.test((suite.description == 'one suite description'),
|
2008-12-02 18:27:09 +00:00
|
|
|
'Suite did not get a description');
|
2008-12-02 01:57:21 +00:00
|
|
|
|
|
|
|
// suite can have a test
|
|
|
|
suite = describe('one suite description', function () {
|
|
|
|
it('should be a test');
|
|
|
|
});
|
2008-12-02 18:27:09 +00:00
|
|
|
|
|
|
|
reporter.test((suite.specs.length === 1),
|
|
|
|
'Suite did not get a spec pushed');
|
|
|
|
reporter.test((suite.specs[0].queue.length === 0),
|
|
|
|
"Suite's Spec should not have queuedFunctions");
|
|
|
|
|
|
|
|
suite = describe('one suite description', function () {
|
|
|
|
it('should be a test with queuedFunctions', function() {
|
|
|
|
runs(function() {
|
|
|
|
var foo = 0;
|
|
|
|
foo++;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
reporter.test((suite.specs[0].queue.length === 1),
|
|
|
|
"Suite's spec did not get a function pushed");
|
|
|
|
|
|
|
|
suite = describe('one suite description', function () {
|
|
|
|
it('should be a test with queuedFunctions', function() {
|
|
|
|
runs(function() {
|
|
|
|
var foo = 0;
|
|
|
|
foo++;
|
|
|
|
});
|
|
|
|
waits(100);
|
|
|
|
runs(function() {
|
|
|
|
var bar = 0;
|
|
|
|
bar++;
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
reporter.test((suite.specs[0].queue.length === 2),
|
|
|
|
"Suite's spec did not get 2 functions pushed");
|
|
|
|
|
|
|
|
|
|
|
|
var foo = 0;
|
|
|
|
suite = describe('one suite description', function () {
|
|
|
|
it('should be a test with queuedFunctions', function() {
|
|
|
|
runs(function() {
|
|
|
|
foo++;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should be a another spec with queuedFunctions', function() {
|
|
|
|
runs(function() {
|
|
|
|
foo++;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
suite.execute();
|
|
|
|
|
|
|
|
setTimeout(function () {
|
|
|
|
reporter.test((suite.specs.length === 2),
|
|
|
|
"Suite doesn't have two specs");
|
|
|
|
reporter.test((foo === 2),
|
|
|
|
"Suite didn't execute both specs");
|
|
|
|
}, 500);
|
2008-12-02 01:57:21 +00:00
|
|
|
}
|
|
|
|
|
2008-12-02 18:27:09 +00:00
|
|
|
var testSpecScope = function () {
|
|
|
|
|
|
|
|
suite = describe('one suite description', function () {
|
|
|
|
it('should be a test with queuedFunctions', function() {
|
|
|
|
runs(function() {
|
|
|
|
this.foo = 0;
|
|
|
|
this.foo++;
|
|
|
|
});
|
|
|
|
|
|
|
|
runs(function() {
|
|
|
|
var that = this;
|
|
|
|
setTimeout(function() {
|
|
|
|
that.foo++;
|
|
|
|
}, 250);
|
|
|
|
});
|
|
|
|
|
|
|
|
runs(function() {
|
|
|
|
this.expects_that(this.foo).should_equal(2);
|
|
|
|
});
|
|
|
|
|
|
|
|
waits(300);
|
|
|
|
|
|
|
|
runs(function() {
|
|
|
|
this.expects_that(this.foo).should_equal(2);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
suite.execute();
|
|
|
|
|
|
|
|
setTimeout(function () {
|
|
|
|
reporter.test((suite.specs[0].foo === 2),
|
|
|
|
"Spec does not maintain scope in between functions");
|
|
|
|
reporter.test((suite.specs[0].results.length === 2),
|
|
|
|
"Spec did not get results for all expectations");
|
|
|
|
reporter.test((suite.specs[0].results[0].passed === false),
|
|
|
|
"Spec did not return false for a failed expectation");
|
|
|
|
reporter.test((suite.specs[0].results[1].passed === true),
|
|
|
|
"Spec did not return true for a passing expectation");
|
|
|
|
}, 1000);
|
|
|
|
}
|
2008-12-02 01:57:21 +00:00
|
|
|
|
2008-12-02 19:08:12 +00:00
|
|
|
|
|
|
|
var testRunner = function() {
|
|
|
|
|
|
|
|
var runner = Jasmine();
|
|
|
|
describe('one suite description', function () {
|
|
|
|
it('should be a test');
|
|
|
|
});
|
|
|
|
reporter.test((runner.suites.length === 1),
|
|
|
|
"Runner expected one suite");
|
|
|
|
|
|
|
|
runner = Jasmine();
|
|
|
|
describe('one suite description', function () {
|
|
|
|
it('should be a test');
|
|
|
|
});
|
|
|
|
describe('another suite description', function () {
|
|
|
|
it('should be a test');
|
|
|
|
});
|
|
|
|
reporter.test((runner.suites.length === 2),
|
|
|
|
"Runner expected two suites");
|
|
|
|
|
|
|
|
runner = Jasmine();
|
|
|
|
describe('one suite description', function () {
|
|
|
|
it('should be a test', function() {
|
|
|
|
runs(function () {
|
|
|
|
this.expects_that(true).should_equal(true);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('another suite description', function () {
|
|
|
|
it('should be another test', function() {
|
|
|
|
runs(function () {
|
|
|
|
this.expects_that(true).should_equal(false);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
runner.execute();
|
|
|
|
|
|
|
|
setTimeout(function () {
|
|
|
|
reporter.test((runner.suites.length === 2),
|
|
|
|
"Runner expected two suites");
|
|
|
|
reporter.test((runner.suites[0].specs[0].results[0].passed === true),
|
|
|
|
"Runner should have run specs in first suite");
|
|
|
|
reporter.test((runner.suites[1].specs[0].results[0].passed === false),
|
|
|
|
"Runner should have run specs in second suite");
|
|
|
|
}, 1000);
|
|
|
|
}
|
|
|
|
|
2008-11-30 02:12:55 +00:00
|
|
|
var runTests = function () {
|
|
|
|
$('spinner').show();
|
|
|
|
|
2008-12-02 18:27:09 +00:00
|
|
|
testMatchersComparisons();
|
2008-12-02 19:08:12 +00:00
|
|
|
testMatchersReporting();
|
|
|
|
testSpecs();
|
|
|
|
testAsyncSpecs();
|
|
|
|
testAsyncSpecsWithMockSuite();
|
|
|
|
testSuites();
|
|
|
|
testSpecScope();
|
|
|
|
testRunner();
|
2008-12-02 00:32:14 +00:00
|
|
|
|
2008-12-01 22:24:13 +00:00
|
|
|
setTimeout(function() {
|
|
|
|
$('spinner').hide();
|
|
|
|
reporter.summary();
|
2008-12-02 18:27:09 +00:00
|
|
|
}, 10000);
|
2008-12-01 20:26:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|