aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js/tests/test.js
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2016-06-07 16:37:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-15 08:35:06 +0100
commit16df75d49dad735c5887eeeceacfa800f4d18fe3 (patch)
tree347900be3e2a1ca13cfcfbe0f8f5cc0aca31c6c1 /bitbake/lib/toaster/toastergui/static/js/tests/test.js
parent6eefd9c1e509ca29397421d5f6e0199dc5b2d384 (diff)
downloadopenembedded-core-contrib-16df75d49dad735c5887eeeceacfa800f4d18fe3.tar.gz
bitbake: toaster-tests: fix tests for latest Selenium version
Previously, we didn't specify a specific version of Selenium. When upgrading to Python 3 and installing Selenium to work with it, the JS unit test broke, as the report format produced by Selenium had changed. Modify the test so that it works with the latest Selenium report format. Add a note to the README that the given Selenium version should be used to prevent unexpected test failures. (Bitbake rev: 571c2b70d3c123614618672ce7532bb5f4c36630) Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/tests/test.js')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/tests/test.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/tests/test.js b/bitbake/lib/toaster/toastergui/static/js/tests/test.js
index 2b62118d01..44b752277c 100644
--- a/bitbake/lib/toaster/toastergui/static/js/tests/test.js
+++ b/bitbake/lib/toaster/toastergui/static/js/tests/test.js
@@ -2,14 +2,6 @@
/* 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 = {
"layerdetailurl":"/toastergui/project/1/layer/22",