From a5e91385b08bc5ba3501102969d4491fb149fc88 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 3 May 2014 21:55:18 -0700 Subject: [PATCH] Expand the excuse window of load errors to 3 seconds or more. --- test/backbone.html | 2 +- test/index.html | 2 +- test/underscore.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/backbone.html b/test/backbone.html index 0b0ec233e..5dc65b309 100644 --- a/test/backbone.html +++ b/test/backbone.html @@ -68,7 +68,7 @@ if (ui.isSauceLabs) { window.onerror = function() { var loadEventEnd = ui.timing.loadEventEnd; - if (loadEventEnd && (new Date - loadEventEnd > 5000)) { + if (loadEventEnd && (new Date - loadEventEnd > 3000)) { QUnit.config.done.length = 0; } }; diff --git a/test/index.html b/test/index.html index 8c7def302..9606cf2a8 100644 --- a/test/index.html +++ b/test/index.html @@ -189,7 +189,7 @@ if (ui.isSauceLabs) { window.onerror = function() { var loadEventEnd = ui.timing.loadEventEnd; - if (loadEventEnd && (new Date - loadEventEnd > 5000)) { + if (loadEventEnd && (new Date - loadEventEnd > 3000)) { QUnit.config.done.length = 0; } }; diff --git a/test/underscore.html b/test/underscore.html index 58c087665..3a2180c80 100644 --- a/test/underscore.html +++ b/test/underscore.html @@ -180,7 +180,7 @@ if (ui.isSauceLabs) { window.onerror = function() { var loadEventEnd = ui.timing.loadEventEnd; - if (loadEventEnd && (new Date - loadEventEnd > 5000)) { + if (loadEventEnd && (new Date - loadEventEnd > 3000)) { QUnit.config.done.length = 0; } };