mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Update build detection in saucelabs.js.
This commit is contained in:
committed by
jdalton
parent
5aaa0a7b5f
commit
e3c1bfbcba
@@ -126,9 +126,9 @@ var platforms = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
/** Used to tailor the `platforms` array. */
|
/** Used to tailor the `platforms` array. */
|
||||||
var runnerQuery = url.parse(runner, true).query,
|
var isAMD = _.includes(tags, 'amd'),
|
||||||
isBackbone = /\bbackbone\b/i.test(runner),
|
isBackbone = _.includes(tags, 'backbone'),
|
||||||
isModern = /\bmodern\b/i.test(runnerQuery.build);
|
isModern = _.includes(tags, 'modern');
|
||||||
|
|
||||||
// The platforms to test IE compatibility modes.
|
// The platforms to test IE compatibility modes.
|
||||||
if (compatMode) {
|
if (compatMode) {
|
||||||
@@ -140,7 +140,7 @@ if (compatMode) {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
// The platforms for AMD tests.
|
// The platforms for AMD tests.
|
||||||
if (_.includes(tags, 'amd')) {
|
if (isAMD) {
|
||||||
platforms = _.filter(platforms, function(platform) {
|
platforms = _.filter(platforms, function(platform) {
|
||||||
var browser = browserName(platform[1]),
|
var browser = browserName(platform[1]),
|
||||||
version = +platform[2];
|
version = +platform[2];
|
||||||
|
|||||||
Reference in New Issue
Block a user