Debian Codegraph @

test/unit/0.98/index.html

raw
1 <!doctype html>
2 <html class=" no-js">
3 <head>
4 <meta charset="utf-8"/>
5 <title>Head.JS Unit Tests (0.98)</title>
6 <link rel="stylesheet" type="text/css" href="/site/assets/libs/qunit/qunit.min.css" />
7 <script src="/dist/0.98/head.min.js"></script>
8 <style>
9 body {
10 width: 1000px;
11 margin: 20px auto;
12 }
13 </style>
14 </head>
15 <body>
16 <div id="qunit"></div>
17 <div id="qunit-userAgent"></div>
18 <a href="/site/unit.html">&laquo; Back</a>
19 <ul>
20 <li>
21 <h4>
22 <em id="browserscope">See how other browsers fared with these tests on <a href="http://www.browserscope.org/user/tests/table/agt1YS1wcm9maWxlcnINCxIEVGVzdBjuwMUUDA?v=3&layout=simple&highlight=1" target="_blank">BrowserScope</a></em>
23 </h4>
24 </li>
25 <li>
26 <em>
27 On certain browsers CSS loading will load the CSS file but not trigger the callback. Still evaluating which browsers that are.
28 </em>
29 </li>
30 <li>
31 <em>
32 If you have tests that fail, try clearing your cache, reloading, or running the tests individually. Some strange stuff with qUnit sometimes it seems.
33 </em>
34 </li>
35 <li>
36 <em>If after that a test still fails, be sure to let <a href="https://github.com/headjs/headjs/issues" target="_blank">us know</a> !</em>
37 </li>
38 </ul>
39
40 <script src="/site/assets/libs/qunit/qunit.min.js"></script>
41 <script src="/site/assets/libs/qunit/qunit-assert-step.min.js"></script>
42 <script>QUnit.config.requireExpects = true;</script>
43
44 <!-- Tests -->
45 <script src="test.responsive.js"></script>
46 <script src="test.feature.js"></script>
47 <script src="test.load.js"></script>
48 <script src="test.load-css.js"></script>
49
50 <script>
51 // BrowserScope Results
52 var _bTestResults = {};
53
54 function sanitize(msg) {
55 msg = msg || "";
56
57 return msg
58 .replace(/[^A-Z]/gi, "")
59 .toLocaleLowerCase();
60 }
61
62 // Build browserscope results
63 QUnit.log(function (details) {
64 var key = sanitize(details.message);
65 var value = details.result ? 1 : 0;
66
67 if (!!key) {
68 _bTestResults[key] = value;
69 }
70 });
71
72 // Send browserscope results
73 QUnit.done(function (details) {
74 head.load("http://www.browserscope.org/user/beacon/" + "agt1YS1wcm9maWxlcnINCxIEVGVzdBjuwMUUDA");
75 });
76 </script>
77 </body>
78 </html>