diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/tests/test.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/tests/test.js b/bitbake/lib/toaster/toastergui/static/js/tests/test.js index aac0ba60a2..2b62118d01 100644 --- a/bitbake/lib/toaster/toastergui/static/js/tests/test.js +++ b/bitbake/lib/toaster/toastergui/static/js/tests/test.js | |||
| @@ -2,6 +2,13 @@ | |||
| 2 | /* Unit tests for Toaster's JS */ | 2 | /* Unit tests for Toaster's JS */ |
| 3 | 3 | ||
| 4 | /* libtoaster tests */ | 4 | /* libtoaster tests */ |
| 5 | QUnit.done(function(details){ | ||
| 6 | /* Selenium test will look for these elements to get the results */ | ||
| 7 | var body = $('body'); | ||
| 8 | body.append("<span id='tests-failed'>"+details.failed+"</span>"); | ||
| 9 | body.append("<span id='tests-passed'>"+details.passed+"</span>"); | ||
| 10 | body.append("<span id='tests-total'>"+details.total+"</span>"); | ||
| 11 | }); | ||
| 5 | 12 | ||
| 6 | QUnit.test("Layer alert notification", function(assert) { | 13 | QUnit.test("Layer alert notification", function(assert) { |
| 7 | var layer = { | 14 | var layer = { |
