mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Run each test in an <iframe>.
This commit is contained in:
1 parent
42f8d155f8
commit
6cfa71a3c2
3 files changed
+72
-6
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user