From c8115775f55193096bbacbd4d76d804ed5bd9bba Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Tue, 1 Sep 2009 13:32:33 +0000 Subject: WebKit's XHR object is lacking, patch by Sebastian Cohnen, closes COUCHDB-483 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@810028 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/test/changes.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'share/www/script/test') diff --git a/share/www/script/test/changes.js b/share/www/script/test/changes.js index 314a52b5..690727af 100644 --- a/share/www/script/test/changes.js +++ b/share/www/script/test/changes.js @@ -56,10 +56,15 @@ couchTests.changes = function(debug) { } catch (err) { } - if (xhr) { + // poor man's browser detection + var is_safari = navigator.userAgent.match(/AppleWebKit/); + if (!is_safari && xhr) { // Only test the continuous stuff if we have a real XHR object // with real async support. + // WebKit (last checked on nightly #47686) does fail on processing + // the async-request properly while javascript is executed. + var sleep = function(msecs) { // by making a slow sync request, we allow the waiting XHR request data // to be received. -- cgit v1.2.3