bitbake: toaster: testsjs Add call back to append elements on completion of tests
When the tests are complete add some marker elements to the test page DOM which can then looked at for a selenium browser test. (Bitbake rev: 81798ab046b0717614e28e0a339172f3803e451b) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
099f026bd7
commit
abfd095a05
|
@ -2,6 +2,13 @@
|
|||
/* Unit tests for Toaster's JS */
|
||||
|
||||
/* libtoaster tests */
|
||||
QUnit.done(function(details){
|
||||
/* Selenium test will look for these elements to get the results */
|
||||
var body = $('body');
|
||||
body.append("<span id='tests-failed'>"+details.failed+"</span>");
|
||||
body.append("<span id='tests-passed'>"+details.passed+"</span>");
|
||||
body.append("<span id='tests-total'>"+details.total+"</span>");
|
||||
});
|
||||
|
||||
QUnit.test("Layer alert notification", function(assert) {
|
||||
var layer = {
|
||||
|
|
Loading…
Reference in New Issue