/
perfcompare.html
83 lines (68 loc) · 2.57 KB
/
perfcompare.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
<!DOCTYPE html>
<html>
<head>
<title>$3Dmol Test</title>
<link rel="stylesheet" href="qunit.css">
<style>
html body { padding: 0; margin: 0 }
</style>
<script src="../build/-min.js"></script>
<script src="glmol/GLmol.js"></script>
<script src="jsmol/jsmol/JSmol.min.nojq.js"></script>
<script src="qunit.js"></script>
<script src="qunit-once.js"></script>
<script src="qunit-reporter-junit.js"></script>
<script>
var glviewer, viewer;
//Don't start tests until everything is setup
QUnit.config.autostart = false;
//Add profile option to QUnit header
QUnit.config.urlConfig.push({
id: "profilecheck",
label: "profile",
value: "",
tooltip: "Profile rendering"
});
QUnit.config.urlConfig.push({
id: "testsuite",
label: "Test suite",
value: ["", "glmol", "jsmol"],
tooltip: "Run tests on selected software"
});
jmol_isReady = function(applet) {
//applet.scriptWait("wireframe -0.1; set cartoonFancy true;");
QUnit.start();
};
//var glviewer = null;
Info = {
width: '100%',
height: '100%',
debug: false,
color: "0xFFFFFF",
use: "JAVA", // JAVA HTML5 WEBGL are all options
j2sPath: "./jsmol/jsmol/j2s", // this needs to point to where the j2s directory is.
jarPath: "./jsmol/jsmol/java",// this needs to point to where the java directory is.
jarFile: "JmolAppletSigned.jar",
isSigned: true,
script: "load test_structs/3M8L.pdb",
readyFunction: jmol_isReady,
disableJ2SLoadMonitor: true,
disableInitialConsole: true,
allowJavaScript: true,
console: "none" // default will be jmolApplet0_infodiv, but you can designate another div here or "none"
};
$(document).ready(function() {
QUnit.start();
console.log("Starting tests");
});
</script>
<script src="perfcompare.js"></script>
</head>
<body>
<div id="viewerdiv" style="width: 40%; height: 90vh; display: inline-block;"></div>
<div style="display: inline-block; vertical-align: top; max-width: 50%;">
<div id="qunit"></div>
<div id="qunit-fixture"></div>
</div>
</body>
</html>