lowdash: Remove temp underscore tests and update test paths. [jddalton]

This commit is contained in:
John-David Dalton
2012-04-17 01:46:51 -04:00
parent 3619b04b06
commit a7667902f3
4 changed files with 40 additions and 47 deletions

39
test/index.html Normal file
View 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>

View File

@@ -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>

View File

@@ -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)
});
})();

View File

@@ -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>