loleaflet: test document

This commit is contained in:
Mihai Varga 2015-09-08 12:01:59 +03:00
parent e17598e866
commit d57100db3b
3 changed files with 8 additions and 2 deletions

Binary file not shown.

View file

@ -13,10 +13,13 @@ describe('TileBench', function () {
}
before(function () {
var htmlPath = window.location.pathname;
var dir = htmlPath.substring(0, htmlPath.lastIndexOf('/'));
var fileURL = 'file://' + dir + '/data/lorem.odt';
// initialize the map and load the document
map = L.map('map', {
server: 'ws://localhost:9980',
doc: 'file:///home/mihai/Desktop/test_docs/eval.odt',
doc: fileURL,
edit: false,
readOnly: false
});

View file

@ -14,10 +14,13 @@ describe('TileBench', function () {
}
before(function () {
var htmlPath = window.location.pathname;
var dir = htmlPath.substring(0, htmlPath.lastIndexOf('/'));
var fileURL = 'file://' + dir + '/data/lorem.odt';
// initialize the map and load the document
map = L.map('map', {
server: 'ws://localhost:9980',
doc: 'file:///home/mihai/Desktop/test_docs/eval.odt',
doc: fileURL,
edit: false,
readOnly: false
});