mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Tweak platform placement in test.js and runner.
Former-commit-id: a261884dfda6f046431007bef6d9fe109fb1d887
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script src="../vendor/platform.js/platform.js"></script>
|
||||
<script src="../vendor/qunit/qunit/qunit.js"></script>
|
||||
<script src="../vendor/platform.js/platform.js"></script>
|
||||
<script src="test-ui.js"></script>
|
||||
<div id="qunit"></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 */
|
||||
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 */
|
||||
var QUnit = (function() {
|
||||
var noop = Function.prototype;
|
||||
@@ -57,6 +50,13 @@
|
||||
_.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 */
|
||||
var falsey = [
|
||||
,
|
||||
|
||||
Reference in New Issue
Block a user