Files
react/test/index.html
T
Ben Newman 36fbd8d941 After each test, remove any stray nodes added to the document.
This was not necessary when we were running each test in its own
`<iframe>`, and it doesn't seem to affect any test behavior currently, but
it seems wise for the sake of test isolation and hygiene.
2013-07-19 13:53:15 -04:00

24 lines
579 B
HTML

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="jasmine.css" />
<script src="jasmine.js"></script>
<script src="react-test.js"></script>
</head>
<body>
<script>
ENABLE_TESTS_HERE
(function(env) {
// Clean up any nodes the previous test might have added.
env.afterEach(function() {
harness.removeSiblings(document.body);
harness.removeSiblings(document.getElementById("HTMLReporter"));
});
env.execute();
})(jasmine.getEnv());
</script>
</body>
</html>