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