mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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.
24 lines
579 B
HTML
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>
|