Punt on AMD testing for Android because of stability issues.

This commit is contained in:
John-David Dalton
2014-05-17 22:17:48 -07:00
parent aa0c02a243
commit 80a38b285d
4 changed files with 3 additions and 29 deletions

View File

@@ -73,15 +73,6 @@
mixinPrereqs(_);
return;
}
// avoid reporting tests to Sauce Labs when script load errors occur
if (ui.isSauceLabs) {
window.onerror = function() {
var loadEventEnd = ui.timing.loadEventEnd;
if (loadEventEnd && (new Date - loadEventEnd > 3000)) {
QUnit.config.done.length = 0;
}
};
}
var reBasename = /[\w.-]+$/,
basePath = ('//' + location.host + location.pathname.replace(reBasename, '')).replace(/\btest\/$/, ''),
modulePath = ui.buildPath.replace(/\.js$/, ''),

View File

@@ -185,15 +185,6 @@
if (ui.isForeign || !window.require) {
return;
}
// avoid reporting tests to Sauce Labs when script load errors occur
if (ui.isSauceLabs) {
window.onerror = function() {
var loadEventEnd = ui.timing.loadEventEnd;
if (loadEventEnd && (new Date - loadEventEnd > 3000)) {
QUnit.config.done.length = 0;
}
};
}
var reBasename = /[\w.-]+$/,
basePath = ('//' + location.host + location.pathname.replace(reBasename, '')).replace(/\btest\/$/, ''),
modulePath = ui.buildPath.replace(/\.js$/, ''),

View File

@@ -135,8 +135,9 @@ if (_.contains(tags, 'amd')) {
var browser = browserName(platform[1]),
version = +platform[2];
if (browser == 'Opera') {
return version >= 10;
switch (browser) {
case 'Android': return version >= 4.4;
case 'Opera': return version >= 10;
}
return true;
});

View File

@@ -183,15 +183,6 @@
if (!window.require) {
return;
}
// avoid reporting tests to Sauce Labs when script load errors occur
if (ui.isSauceLabs) {
window.onerror = function() {
var loadEventEnd = ui.timing.loadEventEnd;
if (loadEventEnd && (new Date - loadEventEnd > 3000)) {
QUnit.config.done.length = 0;
}
};
}
var reBasename = /[\w.-]+$/,
basePath = ('//' + location.host + location.pathname.replace(reBasename, '')).replace(/\btest\/$/, ''),
modulePath = ui.buildPath.replace(/\.js$/, ''),