diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-24 16:27:39 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-24 16:32:18 +0200 |
commit | a7e7e86df0f8494de253e2d81e1fae13be2c138c (patch) | |
tree | 96e6b3c6a5ac446284828b29dd714076bd45406b /core | |
parent | 8c8209828126a55b9bf775e00cbc14d7ef7db5ae (diff) | |
download | nextcloud-server-a7e7e86df0f8494de253e2d81e1fae13be2c138c.tar.gz nextcloud-server-a7e7e86df0f8494de253e2d81e1fae13be2c138c.zip |
Test runner now loads CSS and hides testArea
- serve CSS and font files properly to make sure that measurements are
correct for the tests that need them (breadcrumb)
- added opacity to testArea to make sure nothing is visible during
testing
Diffstat (limited to 'core')
-rw-r--r-- | core/js/tests/specHelper.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/tests/specHelper.js b/core/js/tests/specHelper.js index 2af3497051c..3d208d9ef3f 100644 --- a/core/js/tests/specHelper.js +++ b/core/js/tests/specHelper.js @@ -85,7 +85,7 @@ window.Snap.prototype = { 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>'); + $testArea = $('<div id="testArea" style="position: absolute; width: 1280px; height: 800px; top: -3000px; left: -3000px; opacity: 0;"></div>'); $('body').append($testArea); // enforce fake XHR, tests should not depend on the server and // must use fake responses for expected calls |