loleaflet/README | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-)
New commits: commit 9d992778b5bf770e4f6b0f2837cdfc218d784055 Author: Mihai Varga <mihai.va...@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 ------------ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits