mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
53 lines
1.2 KiB
HTML
53 lines
1.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Lo-Dash Test Suite</title>
|
|
<link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css">
|
|
</head>
|
|
<body>
|
|
<div id="qunit"></div>
|
|
<script src="../vendor/qunit/qunit/qunit.js"></script>
|
|
<script>
|
|
var _2,
|
|
_3 = Object.keys;
|
|
|
|
Object.keys = function() { return []; };
|
|
</script>
|
|
<script src="../lodash.js"></script>
|
|
<script>
|
|
var lodashBadKeys = _,
|
|
_ = 1;
|
|
|
|
Object.keys = _3;
|
|
_3 = void 0;
|
|
</script>
|
|
<script src="../lodash.js"></script>
|
|
<script src="../vendor/requirejs/require.js"></script>
|
|
<script>
|
|
if (/[?&]norequire=true(?:&|$)/.test(location.search)) {
|
|
require = define = null;
|
|
document.write('<script src="test.js"><\/script>');
|
|
}
|
|
else {
|
|
require({
|
|
'baseUrl': '../vendor/requirejs/',
|
|
'urlArgs': 't=' + (+new Date),
|
|
'paths': {
|
|
'lodash': '../../lodash',
|
|
'underscore': './../../lodash'
|
|
}
|
|
},
|
|
['lodash', 'underscore'], function(lodash, lodashAsUnderscore) {
|
|
_2 = lodash.noConflict();
|
|
_2.moduleName = 'lodash';
|
|
|
|
_3 = lodashAsUnderscore.noConflict();
|
|
_3.moduleName = 'underscore';
|
|
|
|
require(['test.js']);
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |