When the tests are complete add some marker elements to the test page
DOM which can then looked at for a selenium browser test.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
/* 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 = {