mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
lowdash: Remove temp underscore tests and update test paths. [jddalton]
This commit is contained in:
39
test/index.html
Normal file
39
test/index.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>LowDash.js Test Suite</title>
|
||||
<link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="qunit-header">LowDash.js Test Suite</h1>
|
||||
<h2 id="qunit-banner"></h2>
|
||||
<div id="qunit-testrunner-toolbar"></div>
|
||||
<h2 id="qunit-userAgent"></h2>
|
||||
<ol id="qunit-tests"></ol>
|
||||
<script src="../vendor/qunit/qunit/qunit.js"></script>
|
||||
<script>var lowDash2, lowDash = 1;</script>
|
||||
<script src="../lowdash.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 {
|
||||
define.amd.lowDash = true;
|
||||
require({
|
||||
'baseUrl': '../vendor/requirejs/',
|
||||
'urlArgs': 't=' + (+new Date),
|
||||
'paths': {
|
||||
'lowdash': '../../lowdash'
|
||||
}
|
||||
},
|
||||
['lowdash'], function(lowDash) {
|
||||
lowDash2 = lowDash.noConflict();
|
||||
require(['test.js']);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -6,7 +6,7 @@
|
||||
<script type="text/javascript" src="vendor/jquery.js"></script>
|
||||
<script type="text/javascript" src="vendor/qunit.js"></script>
|
||||
<script type="text/javascript" src="vendor/jslitmus.js"></script>
|
||||
<script type="text/javascript" src="../underscore.js"></script>
|
||||
<script type="text/javascript" src="../../underscore.js"></script>
|
||||
<script type="text/javascript" src="collections.js"></script>
|
||||
<script type="text/javascript" src="arrays.js"></script>
|
||||
<script type="text/javascript" src="functions.js"></script>
|
||||
@@ -1,27 +0,0 @@
|
||||
(function() {
|
||||
|
||||
var func = function(){};
|
||||
var date = new Date();
|
||||
var str = "a string";
|
||||
var numbers = [];
|
||||
for (var i=0; i<1000; i++) numbers.push(i);
|
||||
var objects = _.map(numbers, function(n){ return {num : n}; });
|
||||
var randomized = _.sortBy(numbers, function(){ return Math.random(); });
|
||||
|
||||
JSLitmus.test('_.isNumber', function() {
|
||||
return _.isNumber(1000)
|
||||
});
|
||||
|
||||
JSLitmus.test('_.newIsNumber', function() {
|
||||
return _.newIsNumber(1000)
|
||||
});
|
||||
|
||||
JSLitmus.test('_.isNumber(NaN)', function() {
|
||||
return _.isNumber(NaN)
|
||||
});
|
||||
|
||||
JSLitmus.test('_.newIsNumber(NaN)', function() {
|
||||
return _.newIsNumber(NaN)
|
||||
});
|
||||
|
||||
})();
|
||||
@@ -1,19 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Underscore Temporary Tests</title>
|
||||
<link rel="stylesheet" href="vendor/qunit.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript" src="vendor/jquery.js"></script>
|
||||
<script type="text/javascript" src="vendor/jslitmus.js"></script>
|
||||
<script type="text/javascript" src="../underscore.js"></script>
|
||||
<script type="text/javascript" src="temp.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="qunit-header">Underscore Temporary Tests</h1>
|
||||
<h2 class="qunit-userAgent">
|
||||
A page for temporary speed tests, used for developing faster implementations
|
||||
of existing Underscore methods.
|
||||
</h2>
|
||||
<br />
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user