mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Tweak platform placement in test.js and runner.
Former-commit-id: a261884dfda6f046431007bef6d9fe109fb1d887
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script src="../vendor/platform.js/platform.js"></script>
|
|
||||||
<script src="../vendor/qunit/qunit/qunit.js"></script>
|
<script src="../vendor/qunit/qunit/qunit.js"></script>
|
||||||
|
<script src="../vendor/platform.js/platform.js"></script>
|
||||||
<script src="test-ui.js"></script>
|
<script src="test-ui.js"></script>
|
||||||
<div id="qunit"></div>
|
<div id="qunit"></div>
|
||||||
<div id="exports"></div>
|
<div id="exports"></div>
|
||||||
|
|||||||
14
test/test.js
14
test/test.js
@@ -29,13 +29,6 @@
|
|||||||
/** The basename of the Lo-Dash file to test */
|
/** The basename of the Lo-Dash file to test */
|
||||||
var basename = /[\w.-]+$/.exec(filePath)[0];
|
var basename = /[\w.-]+$/.exec(filePath)[0];
|
||||||
|
|
||||||
/** The `platform` object to check */
|
|
||||||
var platform = (
|
|
||||||
window.platform ||
|
|
||||||
load('../vendor/platform.js/platform.js') ||
|
|
||||||
window.platform
|
|
||||||
);
|
|
||||||
|
|
||||||
/** The unit testing framework */
|
/** The unit testing framework */
|
||||||
var QUnit = (function() {
|
var QUnit = (function() {
|
||||||
var noop = Function.prototype;
|
var noop = Function.prototype;
|
||||||
@@ -57,6 +50,13 @@
|
|||||||
_.runInContext(window)
|
_.runInContext(window)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/** The `platform` object to check */
|
||||||
|
var platform = (
|
||||||
|
window.platform ||
|
||||||
|
load('../vendor/platform.js/platform.js') ||
|
||||||
|
window.platform
|
||||||
|
);
|
||||||
|
|
||||||
/** Used to pass falsey values to methods */
|
/** Used to pass falsey values to methods */
|
||||||
var falsey = [
|
var falsey = [
|
||||||
,
|
,
|
||||||
|
|||||||
Reference in New Issue
Block a user