0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01: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

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>