[Libreoffice-commits] online.git: loleaflet/README
Mihai Varga
mihai.varga at collabora.com
Mon Dec 21 07:19:44 PST 2015
loleaflet/README | 28 +++++++++++++++++++---------
1 file changed, 19 insertions(+), 9 deletions(-)
New commits:
commit 7e44e639d863f619c8ba457c47102893a63984f8
Author: Mihai Varga <mihai.varga at collabora.com>
Date: Mon Dec 21 17:18:59 2015 +0200
loleaflet: better document the unit tests
diff --git a/loleaflet/README b/loleaflet/README
index 641b696..9b92d7e 100644
--- a/loleaflet/README
+++ b/loleaflet/README
@@ -52,6 +52,25 @@ To see an example:
and you should see the document in the browser. In case anything goes wrong,
check the loolwsd console for the debugging output.
+Testing
+-------
+ - to run the unit tests
+ + open sepc/loleaflet.html in the browser
+ - to simulate an editing session and to get the tile loading times
+ + open spec/tilebench.html in the browser
+ - to simulate a client opening several documents in the browser
+ + open spec/loadtest.html in the browser
+ - to simulate a client opening several documents in the console
+ + run: mocha headlessLoadTest.js
+ - to simulate multiple clients opening several documents in the console
+ + run: make load-test
+
+The structure of the unit tests:
+Loleaflet unit tets are located under spec/loleaflet. Following Leaflet's testing style, each test's path
+should mirror the source's path, so spec/loleaflet/control/ToolbarSpec.js tests the features from
+src/control/Toolbar.js . Any new test file needs also to be added in spec/leaflet.html
+
+
API & events
------------
@@ -246,15 +265,6 @@ Print:
- events
map.on('print', function (e) {}) where
+ e.url = file download url
-Testing
--------
- - to simulate an editing session and to get the tile loading times
- + open spec/tilebench.html in the browser
- - to simulate a client opening several documents in the browser
- + open spec/loadtest.html in the browser
- - to simulate a client opening several documents in the console
- + run: mocha headlessLoadTest.js
-
Contributing
------------
More information about the Libreoffice-commits
mailing list