diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-04-04 11:49:37 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-15 08:35:03 +0100 |
commit | abfd095a05f70e1f2a80c6491d2a5d19593d4824 (patch) | |
tree | bb845724be94e755aa80587c80cef7a3f755ed5a /bitbake/lib/toaster | |
parent | 099f026bd7a1b3d8fd30fe83f838e5877f4ced7b (diff) | |
download | poky-abfd095a05f70e1f2a80c6491d2a5d19593d4824.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/toaster')
-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 = { |