Tweak platform placement in test.js and runner.

Former-commit-id: a261884dfda6f046431007bef6d9fe109fb1d887
This commit is contained in:
John-David Dalton
2013-03-02 20:48:42 -08:00
parent 1522d3385d
commit aa49ce5c56
2 changed files with 8 additions and 8 deletions

View File

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

View File

@@ -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 = [
,