diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-03-06 17:22:40 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-03-06 17:22:40 +0100 |
commit | 536c33895f3e721492e30b19e02e4f1889207d34 (patch) | |
tree | b00ab14da86ecbd88e5b88531e703f6e7db53270 /core/js/tests/specHelper.js | |
parent | 1b8cf18c9163cf6d16d679500a86def95bfc0384 (diff) | |
parent | 0dcac65aa1eb14adc4d3693b6a2c99cbf6ea2425 (diff) | |
download | nextcloud-server-536c33895f3e721492e30b19e02e4f1889207d34.tar.gz nextcloud-server-536c33895f3e721492e30b19e02e4f1889207d34.zip |
Merge pull request #7592 from owncloud/fixstoragefreespace
Fixed upload issue when free space is not known (ex: FTP)
Diffstat (limited to 'core/js/tests/specHelper.js')
-rw-r--r-- | core/js/tests/specHelper.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/tests/specHelper.js b/core/js/tests/specHelper.js index 3ed4cb6c3b4..d86cd81cda8 100644 --- a/core/js/tests/specHelper.js +++ b/core/js/tests/specHelper.js @@ -68,9 +68,14 @@ window.oc_defaults = {}; // global setup for all tests (function setupTests() { var fakeServer = null, + $testArea = null, routesRequestStub; beforeEach(function() { + // test area for elements that need absolute selector access or measure widths/heights + // which wouldn't work for detached or hidden elements + $testArea = $('<div id="testArea" style="position: absolute; width: 1280px; height: 800px; top: -3000px; left: -3000px;"></div>'); + $('body').append($testArea); // enforce fake XHR, tests should not depend on the server and // must use fake responses for expected calls fakeServer = sinon.fakeServer.create(); @@ -92,6 +97,8 @@ window.oc_defaults = {}; // uncomment this to log requests // console.log(window.fakeServer.requests); fakeServer.restore(); + + $testArea.remove(); }); })(); |