forked from jsplumb/jsplumb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
all-tests.html
107 lines (99 loc) · 2.71 KB
/
all-tests.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!doctype html>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<link rel="stylesheet" href="../demo/demo-all.css">
<style>
body {
background-color: white;
}
#iframe {
width:100%;
height:1000px;
position:absolute;
top:14px;
left:38px;
border:0;
}
#render { height:20px;}
a:hover { text-decoration:underline; }
#links {
width: 172px;
font-size: 14px;
padding-left: 22px;
position: fixed;
left: 0px;
top: 43px;
z-index: 20;
background-color: white;
}
ul { padding:0; }
li {
list-style-type:none;
}
.current-tests {
color:orange !important;
}
#qunit-tests li.pass, #qunit-tests li.fail {
background-color:transparent;
}
#main {
max-width: none;
margin-top: 44px;
}
</style>
</head>
<body>
<div id="headerWrapper">
<div id="header">
<div class="logo"><img src="../../logo-bw.png"></div>
<div class="menu">
<a href="../doc/home">DOCS</a>
<a href="../demo/">DEMOS</a>
<a href="../apidocs">API</a>
<a href="../tests/all-tests.html">TESTS</a>
<a href="mailto:[email protected]">CONTACT</a>
<a href="http://github.com/sporritt/jsplumb/">GITHUB</a>
<a href="https://groups.google.com/forum/?fromgroups#!forum/jsplumb">DISCUSS</a>
<a href="https://github.com/sporritt/jsPlumb/issues">ISSUES</a>
</div>
</div>
</div>
<div id="main">
<div id="render"></div>
<div id="links">
<h3>Unit Tests</h3>
<ul>
<li><h5>jsPlumb</h5></li>
<li><a href="qunit-svg-jquery.html">SVG</a></li>
<li><a href="qunit-canvas-jquery.html">Canvas</a></li>
<li><a href="qunit-vml-jquery.html">VML</a></li>
<li><h5>jsPlumb Instance</h5></li>
<li><a href="qunit-svg-jquery-instance.html">SVG</a></li>
<li><a href="qunit-canvas-jquery-instance.html">Canvas</a></li>
<li><a href="qunit-vml-jquery-instance.html">VML</a></li>
</ul>
<h3>Load Tests</h3>
<ul>
<li><a href="loadTestHarness.html">Basic Load Test</a></li>
</ul>
</div>
<iframe src="" id="iframe"></iframe>
</div>
<script>
$(function() {
var load = function(href) {
$("#links a").removeClass("current-tests");
$("#iframe")[0].src = href;
$("#links a[href='" + href + "']").addClass("current-tests");
};
$("#links a").on("click", function() {
load($(this).attr("href"));
return false;
});
$("#body").height($(window).height() - $("#header").height());
load("qunit-svg-jquery.html");
});
</script>
</body>
</html>