mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Use location.host in test/index.html and test/underscore.html.
Former-commit-id: 34dd4860b7b83ec9b96b3f9062654bdf960ff75f
This commit is contained in:
@@ -54,7 +54,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var reBasename = /[\w.-]+$/,
|
var reBasename = /[\w.-]+$/,
|
||||||
basePath = ('//' + location.hostname + ':' + location.port + location.pathname).replace(/\btest\/$/, ''),
|
basePath = ('//' + location.host + location.pathname).replace(/\btest\/$/, ''),
|
||||||
isModularize = /modularize/.test(ui.urlParams.build),
|
isModularize = /modularize/.test(ui.urlParams.build),
|
||||||
modulePath = ui.buildPath.replace(/\.js$/, ''),
|
modulePath = ui.buildPath.replace(/\.js$/, ''),
|
||||||
moduleMain = modulePath.match(reBasename)[0];
|
moduleMain = modulePath.match(reBasename)[0];
|
||||||
@@ -88,8 +88,9 @@
|
|||||||
'location': basePath + '/test',
|
'location': basePath + '/test',
|
||||||
'main': 'test',
|
'main': 'test',
|
||||||
'config': {
|
'config': {
|
||||||
'loader': 'curl/loader/legacy',
|
// work around no global being exported
|
||||||
'exports': 'QUnit' // cheat to work around no global being exported, won't be able to detect 404s in IE
|
'exports': 'QUnit',
|
||||||
|
'loader': 'curl/loader/legacy'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var reBasename = /[\w.-]+$/,
|
var reBasename = /[\w.-]+$/,
|
||||||
basePath = ('//' + location.hostname + ':' + location.port + location.pathname).replace(/\btest\/$/, ''),
|
basePath = ('//' + location.host + location.pathname).replace(/\btest\/$/, ''),
|
||||||
modulePath = ui.buildPath.replace(/\.js$/, ''),
|
modulePath = ui.buildPath.replace(/\.js$/, ''),
|
||||||
moduleMain = modulePath.match(reBasename)[0];
|
moduleMain = modulePath.match(reBasename)[0];
|
||||||
|
|
||||||
@@ -113,8 +113,9 @@
|
|||||||
'name': 'test',
|
'name': 'test',
|
||||||
'location': '../vendor/underscore/test',
|
'location': '../vendor/underscore/test',
|
||||||
'config': {
|
'config': {
|
||||||
'loader': 'curl/loader/legacy',
|
// work around no global being exported
|
||||||
'exports': 'QUnit' // cheat to work around no global being exported, won't be able to detect 404s in IE
|
'exports': 'QUnit',
|
||||||
|
'loader': 'curl/loader/legacy'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user