Debian Codegraph @

test/unit/1.0.0/index.html

raw
1 <!doctype html>
2 <html class="no-js">
3 <head>
4 <meta charset="utf-8"/>
5 <title>Head.JS Unit Tests (1.00)</title>
6 <link rel="stylesheet" type="text/css" href="../../../site/assets/libs/qunit/qunit.min.css" />
7 <script src="../../../dist/1.0.0/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/agt1YS1wcm9maWxlcnINCxIEVGVzdBihusQUDA?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>
43 QUnit.config.requireExpects = true;
44 QUnit.config.reorder = false;
45 </script>
46
47 <!-- Tests -->
48 <script src="test.responsive.js"></script>
49 <script src="test.feature.js"></script>
50 <script src="test.load.js"></script>
51 <script src="test.load-css.js"></script>
52 <script src="test.conf.js"></script>
53
54 <script>
55 // BrowserScope Results
56 var _bTestResults = {};
57
58 function sanitize(msg) {
59 msg = msg || "";
60
61 return msg
62 .replace(/[^A-Z]/gi, "")
63 .toLocaleLowerCase();
64 }
65
66 // Build browserscope results
67 QUnit.log(function (details) {
68 var key = sanitize(details.message);
69 var value = details.result ? 1 : 0;
70
71 if (!!key) {
72 _bTestResults[key] = value;
73 }
74 });
75
76 // Send browserscope results
77 QUnit.done(function (details) {
78 //head.load("http://www.browserscope.org/user/beacon/" + "agt1YS1wcm9maWxlcnINCxIEVGVzdBihusQUDA");
79 });
80 </script>
81 </body>
82 </html>