diff options
author | Andreas Fischer <bantu@owncloud.com> | 2014-03-31 15:33:01 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-03-31 15:33:01 +0200 |
commit | 2d69c4c2d351ec31023c26511151f84a9adb640f (patch) | |
tree | 6b1b573c70814e3fe9c89d8db542781bb7574570 /core/js/tests/specHelper.js | |
parent | a55c56c9e7c0c78c1592f2501b527b5c977cafb7 (diff) | |
parent | 65e3f634000a2142f412b85d0443f241bb64a9ab (diff) | |
download | nextcloud-server-2d69c4c2d351ec31023c26511151f84a9adb640f.tar.gz nextcloud-server-2d69c4c2d351ec31023c26511151f84a9adb640f.zip |
Merge remote-tracking branch 'owncloud/master' into db-convert-tool
* owncloud/master: (663 commits)
[tx-robot] updated from transifex
[tx-robot] updated from transifex
Sub-dir was prepended twice
Sub-dir was prepended twice
[tx-robot] updated from transifex
Use UrlGenerator in OC\Util::redirectToDefaultPage(). Fix #7936
Emit event after setting a new expiration for a share
adding @method annotation to declare methods which can be called on the wrapped statement object
Fix CURLOPT_FOLLOWLOCATION bug with open_basedir or safe_mode restriction enabled.
don't write file if opening a stream to encrypt the data fails
Do not retrieve storage stats for trash bin
[tx-robot] updated from transifex
prevent dimmed ocdialog div from scrolling
fix breadcrumbs for IE8
enable SVG->PNG fallback for 'New' menu
enable SVG->PNG fallback for newly uploaded files and folders
specify logo to not repeat when container is bigger
fix SVG replacement for logo so it works in IE8, fix #7866
Fix swift touch operation
[tx-robot] updated from transifex
...
Conflicts:
3rdparty
Diffstat (limited to 'core/js/tests/specHelper.js')
-rw-r--r-- | core/js/tests/specHelper.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/core/js/tests/specHelper.js b/core/js/tests/specHelper.js index 4a30878df51..d86cd81cda8 100644 --- a/core/js/tests/specHelper.js +++ b/core/js/tests/specHelper.js @@ -19,6 +19,8 @@ * */ +/* global OC */ + /** * Simulate the variables that are normally set by PHP code */ @@ -57,12 +59,23 @@ window.oc_webroot = location.href + '/'; window.oc_appswebroots = { "files": window.oc_webroot + '/apps/files/' }; +window.oc_config = { + session_lifetime: 600 * 1000, + session_keepalive: false +}; +window.oc_defaults = {}; // global setup for all tests (function setupTests() { - var fakeServer = null; + 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(); @@ -84,6 +97,8 @@ window.oc_appswebroots = { // uncomment this to log requests // console.log(window.fakeServer.requests); fakeServer.restore(); + + $testArea.remove(); }); })(); |