now it's possible to pass parameters
typing_speed, typing_duration, single_view, node_inspect
also replaced the old perf-test with new-perf-test
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I03f1f14db4ddd9afb9d4a9a60a87c135497db70c
They are replaced by CommentListSection.ts.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I85f9ae49e487fa621376a79812774c1ea2615e9e
It was used for Writer. We now have CommentSection.ts and Comment.ts
files.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ia2dcf98c17260126c8fb0d4888b3e08efb4639d9
We have to start loolwsd manually in order to
start the testing. This patch covers starting the
loolwsd with custom port seperately and spawning the views in nodejs
instead of in Makefile.
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I0af99c2be1d886e11ce4dfaefe9bb07de9be00e8
Hopefully will reduce the amount of "Document has changed in storage"
irritation if following the progress of the script in a normal
browser. Make a fresh copy manually before running `make run` and
opening the document in your browser.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Icba6dd80fb202fce3f2ff288af0d1759bc7789be
Make load.js take one new first argument: true or false, corresponding
to whether SSL is enabled in loolwsd.xml or not.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ib44cfcf1f05c71acad1d2f6162deb2fdcff18791
Error: No test files found: "mocha_tests/**/*.js"
Change-Id: I57e86689011dceebd1100005b8e800b6155bb7c1
Signed-off-by: Henry Castro <hcastro@collabora.com>
problem:
in compilation tsc removes blank lines from the file
this causes problem in debugging and mapping with IDEs
https://github.com/microsoft/TypeScript/issues/843
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie2df89ba09597a34aca9221bf082b1f2df3c7d07
No more crazy hacks, I hope now it is understandable
Change-Id: I9004787ebf2087f541bec0248bd873252c88a40d
Signed-off-by: Henry Castro <hcastro@collabora.com>
move loleaflet.css .root color varaibles into a separate color-palette.css file so all var colors are at a dedicated file and branding is easier.
Signed-off-by: Andreas-Kainz <kainz.a@gmail.com>
Change-Id: I6fe879fbb09e2d5170c028820974bdda0466805d
The intent is that it should no longer be necessary to do the
JavaScript part on a Linux machine. For the configury and "make" part,
mostly just some minor portability issues had to be handled:
(But it is still possible to do it the old way, too. This is mostly to
not have to bother with installing Node.js on the CI macOS machine
now.)
The readlink command on macOS has no -f option. But that use of
readlink is not necessary anyway in a tree for building a mobile app,
so bypass.
The find command on macOS always requires at least one directory name.
So when $(CUSTOM_ICONS_DIRECTORY) is empty the "find
$(CUSTOM_ICONS_DIRECTORY) -name '*.*'" command produced an annoying
error message. Handle that in a trivial way.
The echo command in /bin/sh on macOS does not have the -n option. Use
the more portable printf command instead.
To then configure and run the make (before you can do the actual build
in Xcode9, you need have Node.js installed. Personally I just
downloaded the macOS Node.js binary tarball and unpacked into
/opt/node so that /opt/node/bin/node and /opt/node/bin/npm are the
relevant executables.
You will also need to add the lxml and polib Python modules to your
user Python module library with pip3, as in "pip3 install --user lxml"
and "pip3 install --user polib".
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I263a318181125fa37ac174fa36cb0e44e56a6607
Used by android to build the JS it desires. We lost that in c6f2e2211d
Change-Id: I4b790a300aee66628baa2e5a2997685c42f709fa
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
We badly need to preserve the ordering of files in the WEBORDER,
but also to be able to treat them differently.
Allow both the m4 concatenation for bundlifying and also the
HTML script substitution to use the files in the right order.
Change-Id: If2a1b32548e1086b18395385fb512e9d39978406
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Get dependencies right for tscompile - to point to dist/ and not src/
Use _WEBPATH to codify the paths and order of the served HTML.
Switch back to shell/find for findign js and ts in any order.
Change-Id: Ida6cd1a505376099551821e86144410ff75eca6b
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Created or dropped in the wrong place in the past, or not
removed when converting to typescript.
Change-Id: Ifb67c8b0ad3a543069e3478dc4f85785d0c67268
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
call prereq_loleaflet was not helping us here.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Id39a8ae53b47e2001a1b8995b34ac7108420d107
by moving allowJs and checkJs out of tsconfig as vscode assumes default
outDir and rootDir which we can set only via cli call to tsc as they are
makefile configurables.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I3ba3bc98018c6d738c8767ff9f4affc3c33602c3
There may be warnings on first run after application of this patch due
to ts->js files present src/ due to previous per file compilation.
Cleaning those files will get rid of the warnings. These are removed
from .gitignore files to avoid confusion.
Now we rely on tsc to do the incremental builds so it is much faster.
Checking of js files is disabled for now as it reports a lot of type
errors.
Caveat: Compilation of mocha tests, admin (those outside src/) are still
using the file by file compilation.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ic22b265de0b111165224885c4736486fffa016d8
Some of the functions were overwritten by the child classes. They are
removed.
CanvasTileLayer was experimental when we first created it. But now it's
used for all document types.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I1687c8d3e00d24a0bb2031ab74e4a3af044d9ca7
ScrollSection.ts is the updated version of this file.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I484dcb7eafdc3ca62ba4d8ad864e0de711567d66
All ts files were being compiled upon a change on one of them. Bug
solved.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I3137d07e7ddf43076bf8b55fbacba1caef6f19cd
... and add a few test-cases for CPointSet.empty()
* The tests are written in TS and compiled to JS before Mocha framework
runs them using 'npm test' via 'make check'.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I16e28404af76754b6bbb67c6743ca7d0f2701233