diff options
author | Jan Lehnardt <jan@apache.org> | 2009-09-01 13:32:33 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2009-09-01 13:32:33 +0000 |
commit | c8115775f55193096bbacbd4d76d804ed5bd9bba (patch) | |
tree | ed1e5a1db164513655d25fcb53dbd1cc0ce57feb /share/www/script/test | |
parent | 241f3fa22ff3977d4a9c5186984bac98d94b0b62 (diff) |
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
Diffstat (limited to 'share/www/script/test')
-rw-r--r-- | share/www/script/test/changes.js | 7 |
1 files changed, 6 insertions, 1 deletions
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. |