forked from jeresig/env-js
/
index.html
68 lines (61 loc) · 2.43 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml encoding='utf-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="eng" dir="ltr">
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<title>Envjs Specs in IFrames</title>
<link rel="stylesheet"
media="screen"
href="../qunit.css"/>
<script src="../qunit.js"
type="text/javascript" ></script>
<script src="../../local_settings.js"
type="text/javascript" ></script>
<script type="text/envjs">
// Running under Envjs, the above are loaded in 'boot.js' and
// executing them from here would be redundant/problematic. Now
// that we're past, though, make sure the rest execute under
// both Envjs and browsers:
Envjs.scriptTypes['text/javascript'] = true;
</script>
<script type="text/javascript">
listOfTests = [
'console', 'dom', 'event', 'timer', 'html', 'parser',
'xhr', 'css', 'window', 'scope' ];
window.allTestsAreBeingRunWithinAnExtraIFrame = true;
</script>
<script src="spec.js"
type="text/javascript" ></script>
<style>
#qunit-main iframe {
border: solid 3px #2B81AF;
margin-top: 1ex;
margin-bottom: 1ex;
width: 80%;
height: 400px;
}
</style>
</head>
<body id="body">
<h1 id="qunit-header">
<img src="../fixtures/images/icon-green.png"/>
<span>Envjs Specs in IFrames</span>
</h1>
<h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<div id='qunit-testrunner-toolbar'></div>
<div id='qunit-test-summary'>
<ol id='qunit-tests'></ol>
</div>
<div id="qunit-main" style="text-align: center;">
<script type="text/javascript">
for (var c=0; c < listOfTests.length; c++){
document.write('<iframe id="iframe-');
document.write(listOfTests[c]);
document.write('" src="../');
document.write(listOfTests[c]);
document.write('/index.html"></iframe>');
}
</script>
</div>
</body>
</html>