Run each test in an <iframe>.

This commit is contained in:
Ben Newman
2013-06-03 13:20:13 -04:00
parent 42f8d155f8
commit 6cfa71a3c2
3 changed files with 72 additions and 6 deletions
+18
View File
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<script>
jasmine = parent.jasmine;
jasmine.exposeFrom(window);
console = parent.console;
callPhantom = parent.callPhantom;
</script>
<script src="react-test.js"></script>
</head>
<body>
<script>
require(window.frameElement.getAttribute("test"));
</script>
</body>
</html>