File: index.html

package info (click to toggle)
node-headjs 1.0.3%2Bdfsg.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,884 kB
  • sloc: xml: 33; sh: 14; makefile: 2
file content (77 lines) | stat: -rw-r--r-- 2,958 bytes parent folder | download | duplicates (3)
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
<!doctype html>
<html class=" no-js">
    <head>
        <meta charset="utf-8"/>
        <title>Head.JS Unit Tests (0.97a)</title>       
        <link rel="stylesheet" type="text/css" href="/site/assets/libs/qunit/qunit.min.css" />
        <script src="/dist/0.97a/head.min.js"></script>
        <style>
            body {
                width: 1000px;
                margin: 20px auto;
            }
        </style>
    </head>
    <body>              
        <div id="qunit"></div>       
        <div id="qunit-userAgent"></div>        
        <a href="/site/unit.html">&laquo; Back</a>
        <ul>
            <li>
                <h4>
                    <em id="browserscope">See how other browsers fared with these tests on <a href="http://www.browserscope.org/user/tests/table/agt1YS1wcm9maWxlcnINCxIEVGVzdBjn5PUSDA?v=3&layout=simple&highlight=1" target="_blank">BrowserScope</a></em>
                </h4>                
            </li>
            <li>
                <em>
                    On certain browsers CSS loading will load the CSS file but not trigger the callback. Still evaluating which browsers that are.
                </em>                
            </li>
            <li>
                <em>
                    If you have tests that fail, try clearing your cache, reloading, or running the tests individually. Some strange stuff with qUnit sometimes it seems.
                </em>
            </li>
            <li>
                <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>
            </li>
        </ul>

        <script src="/site/assets/libs/qunit/qunit.min.js"></script>
        <script src="/site/assets/libs/qunit/qunit-assert-step.min.js"></script>
        <script>QUnit.config.requireExpects = true;</script>
        
        <!-- Tests -->
        <script src="test.responsive.js"></script>
        <script src="test.feature.js"></script> 
        <script src="test.load.js"></script>			
        
        <script>
			// BrowserScope Results
            var _bTestResults = {};     
            
            function sanitize(msg) {
                msg = msg || "";
                
                return msg
                    .replace(/[^A-Z]/gi, "")
                    .toLocaleLowerCase();
            }
            
            // Build browserscope results
            QUnit.log(function (details) {
                var key   = sanitize(details.message);
                var value = details.result ? 1 : 0;
                
                if (!!key) {
                    _bTestResults[key] = value;
                }
            });
            
            // Send browserscope results
            QUnit.done(function (details) {
                head.js("http://www.browserscope.org/user/beacon/" + "agt1YS1wcm9maWxlcnINCxIEVGVzdBj51sgUDA");
            });
        </script>
    </body>
</html>