2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

Perform a cleanup after each test

This commit is contained in:
Heinrich Fenkart
2014-06-18 21:32:18 +02:00
parent 1e64c4c0ba
commit 4950fe6f4e
+7 -1
View File
@@ -38,6 +38,12 @@
} }
} }
}) })
// Cleanup
QUnit.testDone(function () {
$('#qunit-fixture').empty()
$('#modal-test, .modal-backdrop').remove()
})
</script> </script>
<!-- Plugin sources --> <!-- Plugin sources -->
@@ -69,7 +75,7 @@
</head> </head>
<body> <body>
<div> <div id="qunit-container">
<div id="qunit"></div> <div id="qunit"></div>
<div id="qunit-fixture"></div> <div id="qunit-fixture"></div>
</div> </div>