aboutsummaryrefslogtreecommitdiff
path: root/js/tests
diff options
context:
space:
mode:
authorHeinrich Fenkart <[email protected]>2014-06-18 21:32:18 +0200
committerHeinrich Fenkart <[email protected]>2014-07-06 09:24:22 +0200
commit4950fe6f4e325c0101d5e42ad2f32f8e1fd13fcd (patch)
tree8e6673ebf4bf64511385488d869a45c03fe3d221 /js/tests
parent1e64c4c0ba6167b95a7861974554204e869f3a57 (diff)
downloadbootstrap-4950fe6f4e325c0101d5e42ad2f32f8e1fd13fcd.tar.xz
bootstrap-4950fe6f4e325c0101d5e42ad2f32f8e1fd13fcd.zip
Perform a cleanup after each test
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/index.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/tests/index.html b/js/tests/index.html
index 3acd36628..1c025cf76 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>