mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Capitalize comments in test/index.html. [ci skip]
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script>
|
<script>
|
||||||
// avoid reporting tests to Sauce Labs when script errors occur
|
// Avoid reporting tests to Sauce Labs when script errors occur.
|
||||||
if (location.port == '9001') {
|
if (location.port == '9001') {
|
||||||
window.onerror = function(message) {
|
window.onerror = function(message) {
|
||||||
if (window.QUnit) {
|
if (window.QUnit) {
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
function createToString(funcName) {
|
function createToString(funcName) {
|
||||||
return constant(nativeString.replace(reToString, funcName));
|
return constant(nativeString.replace(reToString, funcName));
|
||||||
}
|
}
|
||||||
// allow bypassing native checks
|
// Allow bypassing native checks.
|
||||||
setProperty(funcProto, 'toString', (function() {
|
setProperty(funcProto, 'toString', (function() {
|
||||||
function wrapper() {
|
function wrapper() {
|
||||||
setProperty(funcProto, 'toString', fnToString);
|
setProperty(funcProto, 'toString', fnToString);
|
||||||
@@ -80,10 +80,10 @@
|
|||||||
return wrapper;
|
return wrapper;
|
||||||
}()));
|
}()));
|
||||||
|
|
||||||
// add extensions
|
// Add prototype extensions.
|
||||||
funcProto._method = noop;
|
funcProto._method = noop;
|
||||||
|
|
||||||
// set bad shims
|
// Set bad shims.
|
||||||
setProperty(Array, '_isArray', Array.isArray);
|
setProperty(Array, '_isArray', Array.isArray);
|
||||||
setProperty(Array, 'isArray', noop);
|
setProperty(Array, 'isArray', noop);
|
||||||
|
|
||||||
@@ -167,14 +167,14 @@
|
|||||||
};
|
};
|
||||||
}()));
|
}()));
|
||||||
|
|
||||||
// fake lack of DOM support
|
// Fake lack of DOM support.
|
||||||
setProperty(document, '_createDocumentFragment', document.createDocumentFragment);
|
setProperty(document, '_createDocumentFragment', document.createDocumentFragment);
|
||||||
document.createDocumentFragment = noop;
|
document.createDocumentFragment = noop;
|
||||||
|
|
||||||
// fake `WinRTError`
|
// Fake `WinRTError`.
|
||||||
setProperty(window, 'WinRTError', Error);
|
setProperty(window, 'WinRTError', Error);
|
||||||
|
|
||||||
// fake free variable `global`
|
// Fake free variable `global`.
|
||||||
setProperty(window, 'exports', window);
|
setProperty(window, 'exports', window);
|
||||||
setProperty(window, 'global', window);
|
setProperty(window, 'global', window);
|
||||||
setProperty(window, 'module', {});
|
setProperty(window, 'module', {});
|
||||||
@@ -247,20 +247,20 @@
|
|||||||
delete objectProto._propertyIsEnumerable;
|
delete objectProto._propertyIsEnumerable;
|
||||||
}
|
}
|
||||||
|
|
||||||
// load lodash and expose it to the bad extensions/shims
|
// Load lodash to expose it to the bad extensions/shims.
|
||||||
if (!ui.isModularize) {
|
if (!ui.isModularize) {
|
||||||
addBizarroMethods();
|
addBizarroMethods();
|
||||||
document.write('<script src="' + ui.buildPath + '"><\/script>');
|
document.write('<script src="' + ui.buildPath + '"><\/script>');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
// store lodash to test for bad extensions/shims
|
// Store lodash to test for bad extensions/shims.
|
||||||
if (!ui.isModularize) {
|
if (!ui.isModularize) {
|
||||||
var lodashBizarro = window._;
|
var lodashBizarro = window._;
|
||||||
window._ = undefined;
|
window._ = undefined;
|
||||||
removeBizarroMethods();
|
removeBizarroMethods();
|
||||||
}
|
}
|
||||||
// load test scripts
|
// Load test scripts.
|
||||||
document.write((ui.isForeign || ui.urlParams.loader == 'none')
|
document.write((ui.isForeign || ui.urlParams.loader == 'none')
|
||||||
? '<script src="' + ui.buildPath + '"><\/script><script src="test.js"><\/script>'
|
? '<script src="' + ui.buildPath + '"><\/script><script src="test.js"><\/script>'
|
||||||
: '<script data-dojo-config="async:1" src="' + ui.loaderPath + '"><\/script>'
|
: '<script data-dojo-config="async:1" src="' + ui.loaderPath + '"><\/script>'
|
||||||
@@ -298,7 +298,7 @@
|
|||||||
'location': basePath + 'test',
|
'location': basePath + 'test',
|
||||||
'main': 'test',
|
'main': 'test',
|
||||||
'config': {
|
'config': {
|
||||||
// work around no global being exported
|
// Work around no global being exported.
|
||||||
'exports': 'QUnit',
|
'exports': 'QUnit',
|
||||||
'loader': 'curl/loader/legacy'
|
'loader': 'curl/loader/legacy'
|
||||||
}
|
}
|
||||||
@@ -389,7 +389,7 @@
|
|||||||
}
|
}
|
||||||
}());
|
}());
|
||||||
|
|
||||||
// set a more readable browser name
|
// Set a more readable browser name.
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
var timeoutId = setInterval(function() {
|
var timeoutId = setInterval(function() {
|
||||||
var ua = document.getElementById('qunit-userAgent');
|
var ua = document.getElementById('qunit-userAgent');
|
||||||
|
|||||||
Reference in New Issue
Block a user