-
Notifications
You must be signed in to change notification settings - Fork 1
/
SpecRunner.html
113 lines (109 loc) · 6.22 KB
/
SpecRunner.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
108
109
110
111
112
113
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jasmine Test Runner</title>
<link rel="stylesheet" type="text/css" href="../jasmine-standalone-1.3.1/lib/jasmine-1.3.1/jasmine.css">
<link rel="stylesheet" type="text/css" href="calculator.css">
<script type="text/javascript" src="../jasmine-standalone-1.3.1/lib/jasmine-1.3.1/jasmine.js"></script>
<script type="text/javascript" src="../jasmine-standalone-1.3.1/lib/jasmine-1.3.1/jasmine-html.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
</head>
<body>
<div id="wrapper">
<div id="display" class="gloss">
<div class="gloss"></div><span id="view">0</span>
<div id="angle">Deg</div>
</div>
<table id="keypad">
<tbody>
<tr>
<td><div id="mc" class="key function"><div class="gloss"></div>mc</div></td>
<td><div id="mplus" class="key function"><div class="gloss"></div>m+</div></td>
<td><div id="mminus" class="key function" data-role="m-"><div class="gloss"></div>m−</div></td>
<td><div id="mr" class="key function nofix"><div class="gloss"></div>mr</div></td>
</tr>
<tr>
<td><div id="clear" class="key operator small" data-role="allclear"><div class="gloss"></div>AC</div></td>
<td><div id="plusminus" class="key operator" data-role="plusminus"><div class="gloss"></div>+/−</div></td>
<td><div class="key operator binary" data-role="div"><div class="gloss"></div>÷</div></td>
<td><div class="key operator binary" data-role="mul"><div class="gloss"></div>×</div></td>
</tr>
<tr>
<td><div class="key number"><div class="gloss"></div>7</div></td>
<td><div class="key number"><div class="gloss"></div>8</div></td>
<td><div class="key number"><div class="gloss"></div>9</div></td>
<td><div class="key operator binary" data-role="sub"><div class="gloss"></div>−</div></td>
</tr>
<tr>
<td><div class="key number"><div class="gloss"></div>4</div></td>
<td><div class="key number"><div class="gloss"></div>5</div></td>
<td><div class="key number"><div class="gloss"></div>6</div></td>
<td><div class="key operator binary" data-role="add"><div class="gloss"></div>+</div></td>
</tr>
<tr>
<td><div class="key number"><div class="gloss"></div>1</div></td>
<td><div class="key number"><div class="gloss"></div>2</div></td>
<td><div class="key number"><div class="gloss"></div>3</div></td>
<td rowspan=2><div id="equal_key" class="key"><div class="gloss"></div>=</div></td>
</tr>
<tr>
<td colspan=2><div id="zero_key" class="key number"><div class="gloss"></div>0</div> </td>
<td><div id="period" class="key"><div class="gloss"></div>.</div></td>
</tr>
</tbody>
</table>
<table id="functions">
<tbody>
<tr>
<td><div id="second" class="key function" data-role="modifier" data-status="off"><div class="gloss"></div>2nd</div></td>
<td><div id="parleft" class="key function"><div class="gloss"></div>(</div></td>
<td><div id="parright" class="key function"><div class="gloss"></div>)</div></td>
<td><div class="key function unary" data-role="percent2number"><div class="gloss"></div>%</div></td>
</tr>
<tr>
<td><div class="key function unary" data-role="inverse"><div class="gloss"></div>1/x</div></td>
<td><div class="key function unary" data-role="square"><div class="gloss"></div>x²</div></td>
<td><div class="key function unary" data-role="cube"><div class="gloss"></div>x³</div></td>
<td><div class="key function binary" data-role="power"><div class="gloss"></div>y<sup>x</sup></div></td>
</tr>
<tr>
<td><div class="key function unary" data-role="factorial"><div class="gloss"></div>x!</div></td>
<td><div class="key function unary" data-role="root"><div class="gloss"></div>√</div></td>
<td><div class="key function binary" data-role="xthroot"><div class="gloss"></div><sup>x</sup>√y</div></td>
<td><div class="key function unary" data-role="log10"><div class="gloss"></div>log</div></td>
</tr>
<tr>
<td><div class="key function unary small double"><div class="gloss"></div>sin</div></td>
<td><div class="key function unary small double"><div class="gloss"></div>cos</div></td>
<td><div class="key function unary small double"><div class="gloss"></div>tan</div></td>
<td><div class="key function unary small double" data-role="log"><div class="gloss"></div>ln</div></td>
</tr>
<tr>
<td><div class="key function unary small double"><div class="gloss"></div>sinh</div></td>
<td><div class="key function unary small double"><div class="gloss"></div>cosh</div></td>
<td><div class="key function unary small double"><div class="gloss"></div>tanh</div></td>
<td><div class="key function unary small double" data-role="exp"><div class="gloss"></div>e<sup>x</sup></div></td>
</tr>
<tr>
<td><div id="angle_key" class="key function small" data-role="angle"><div class="gloss"></div>Rad</div></td>
<td><div id="pi" class="key function nofix" data-role="pi"><div class="gloss"></div>π</div></td>
<td><div class="key function binary small" data-role="enotation"><div class="gloss"></div>EE</div></td>
<td><div class="key function nofix small" data-role="random"><div class="gloss"></div>Rand</div></td>
</tr>
</tbody>
</table>
</div>
<script src="http://cdn.jqmobi.com/1.2/jq.mobi.min.js"></script>
<script src="js/base64-binary.js"></script>
<!-- include source files here... -->
<script src="test/calculator.js"></script>
<!-- include spec files here... -->
<script src="spec/calc_spec.js"></script>
<script src="spec/utilities_spec.js"></script>
<script type="text/javascript">
jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
jasmine.getEnv().execute();
</script>
</body>
</html>