From 4950fe6f4e325c0101d5e42ad2f32f8e1fd13fcd Mon Sep 17 00:00:00 2001 From: Heinrich Fenkart <hnrch02@gmail.com> Date: Wed, 18 Jun 2014 21:32:18 +0200 Subject: [PATCH] Perform a cleanup after each test --- js/tests/index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/tests/index.html b/js/tests/index.html index 3acd366288..1c025cf761 100644 --- a/js/tests/index.html +++ b/js/tests/index.html @@ -38,6 +38,12 @@ } } }) + + // Cleanup + QUnit.testDone(function () { + $('#qunit-fixture').empty() + $('#modal-test, .modal-backdrop').remove() + }) </script> <!-- Plugin sources --> @@ -69,7 +75,7 @@ </head> <body> - <div> + <div id="qunit-container"> <div id="qunit"></div> <div id="qunit-fixture"></div> </div> -- GitLab