[Libreoffice-commits] online.git: loleaflet/spec
Mihai Varga
mihai.varga at collabora.com
Wed Sep 16 02:55:19 PDT 2015
loleaflet/spec/loadtest/LoadTestSpec.js | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
New commits:
commit 12b1bf2b6ed25250ea162df752b3b2bddc753357
Author: Mihai Varga <mihai.varga at collabora.com>
Date: Wed Sep 16 12:51:16 2015 +0300
loleaflet: loadtest.html fix
diff --git a/loleaflet/spec/loadtest/LoadTestSpec.js b/loleaflet/spec/loadtest/LoadTestSpec.js
index 7d8c811..4c6efaf 100644
--- a/loleaflet/spec/loadtest/LoadTestSpec.js
+++ b/loleaflet/spec/loadtest/LoadTestSpec.js
@@ -11,17 +11,14 @@ describe('LoadTest', function () {
x = 0,
y = 0;
+ var docPath = '';
before(function() {
- if (docPath === 'file:///PATH') {
- throw new Error('Document file path not set');
- }
- else if (docPath[docPath.length - 1] !== '/') {
- docPath += '/';
- }
+ var htmlPath = window.location.pathname;
+ var dir = htmlPath.substring(0, htmlPath.lastIndexOf('/'));
+ docPath = 'file://' + dir + '/data/';
});
- var docPath = 'file:///PATH';
- var docs = ['eval.odt'];
+ var docs = ['eval.odt', 'eval.odp', 'eval.ods', 'eval.odg'];
docs.forEach(function (testDoc) {
testsRan += 1;
More information about the Libreoffice-commits
mailing list