635 Commits
Author SHA1 Message Date
Jos van den Oever 8f0cd82b89 Upgrade to latest Closure Compiler 2019-02-08 03:05:25 +01:00
Tobias Hintze 88bd135f8b Disable loadAndSave test of OdfContainerTests.js 2019-02-08 02:06:28 +01:00
Jos van den Oever 9f35da24d9 Upgrade to latest Closure Compiler
A few annotation errors were uncovered and fixed.
2016-07-24 22:04:45 +02:00
Jos van den Oever 47fa509517 If there is no <office:settings/> element, save an empty <office:document-settings/> element. 2015-09-10 19:30:50 +02:00
Jos van den Oever a0d3a73d66 Enable the loadAndSave test for OdfContainer. 2015-09-02 09:49:16 +02:00
Jos van den Oever aafb2471de Add extra validation for mimetype to ODF save tests. 2015-09-02 09:49:16 +02:00
Aditya Bhatt 2c682bb73b Update other references to be aware of getMemberIds
working for all members, and not just cursors

Adds a new OdtDocument.hasMember method
2015-07-17 13:44:40 +02:00
Aditya Bhatt 526f4c079a Make OdtDocument.getMemberIds return ALL memberIds
and not just those of cursors.
2015-07-17 13:44:40 +02:00
Aditya Bhatt 5d5102b27d Merge pull request #910 from adityab/peitschie-zip-compress
Replace existing zip implementation with jszip v2.4.0
2015-07-17 13:43:16 +02:00
Philip Peitsch 435501c966 Replace existing zip implementation with jszip v2.4.0
jszip has a much cleaner API than the existing RawDeflate version. In
addition, jszip supports creation of a compressed output stream.

As it's non-trivial to make jszip behave with closure compiler, a second
concat-only step has been added during compilation to include 3rd party
dependencies.

Fixes #21.
2015-07-15 20:38:04 +10:00
Philip Peitsch 2c4c5ee574 Rewrite RuntimTest.testWrite to not depend on the ByteArrayWriter class 2015-07-15 20:38:04 +10:00
Aditya Bhatt 9537e6d042 Let inserted image dimensions be in centimeters
LibreOffice does not recognize px dimensions for image frames,
despite the spec allowing it. To play safe, always convert the
dimensions into centimeters before inserting the image.

This patch comes with a new ImageControllerTests.js.
2015-07-14 11:35:48 +02:00
Jos van den Oever ee35d8c463 Also support DOCUMENT_FRAGMENT_NODE in UnitTester.
So far only text nodes and elements could be compared. With this patch
document fragments can also be compared.
2015-06-01 09:01:03 +02:00
Jos van den Oever b8ad5b3889 Upgrade to Closure Compiler 20150505.
We are now using our own copy of the externs to deal with differences
of opinion on best typing of types.
2015-06-01 08:53:35 +02:00
Friedrich W. H. Kossebau 0a13b44fd3 Add transformAddAnnotationRemoveAnnotation 2015-05-06 18:39:15 +02:00
Friedrich W. H. Kossebau 19a3ffce2d Add transformRemoveAnnotationRemoveAnnotation 2015-05-06 18:39:15 +02:00
Friedrich W. H. Kossebau 0327e69611 Support multiple annotations in TransformationTests' linkAnnotationEndToStart 2015-05-06 18:39:15 +02:00
Friedrich W. H. Kossebau 2875939211 Add transformAddAnnotationAddAnnotation 2015-05-06 18:39:15 +02:00
Friedrich W. H. Kossebau 298e09ae03 Add Alice & Bob as default members in TransformationTests 2015-04-21 16:58:50 +02:00
Friedrich W. H. Kossebau 50b0213b3c Add transformRemoveAnnotationRemoveText 2015-04-21 16:58:50 +02:00
Friedrich W. H. Kossebau ad38426eb4 Add transformRemoveAnnotationSetParagraphStyle 2015-04-21 16:58:50 +02:00
Friedrich W. H. Kossebau 10a3553a9d Add transformRemoveAnnotationSplitParagraph 2015-04-21 16:58:50 +02:00
Friedrich W. H. Kossebau a00e838764 Add transformMoveCursorRemoveAnnotation 2015-04-21 16:58:50 +02:00
Friedrich W. H. Kossebau f3f495b832 Add transformMergeParagraphRemoveAnnotation 2015-04-21 16:58:50 +02:00
Friedrich W. H. Kossebau 1b9fdca1bf Add transformInsertTextRemoveAnnotation 2015-04-21 16:58:50 +02:00
Friedrich W. H. Kossebau 773ff97d8b Move bookkeeping about setup method to test description 2015-04-21 16:58:50 +02:00
Friedrich W. H. Kossebau 419eb54788 Add transformApplyDirectStylingRemoveAnnotation 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau a23d98a53f Add transformAddAnnotationRemoveText 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau f4b49d8993 add transformAddAnnotationMergeParagraph 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau 63c19e91a0 Add transformAddAnnotationApplyDirectStyling 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau f156d9e27a Add transformAddAnnotationSetParagraphStyle 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau bf89109feb Add transformAddAnnotationSplitParagraph 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau f9f24a6fcc Add transformAddAnnotationMoveCursor 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau db51dfdfe8 Add transformAddAnnotationInsertText 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau 69ac4062de Add noop transformations against AddAnnotation & RemoveAnnotation 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau 706d76422e Add supports for custom test setups in TransformationTests
similiar code as in OperationTests
2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau be0969b526 Make odf.Formatting's buildStyleChain() not ignore root containers 2015-04-02 11:49:03 +02:00
Friedrich W. H. Kossebau 1d24d462c8 In OpAddAnnotation support annotated ranges with 0 length
Before 0 length was assumed to be an annotation without a range
2015-03-26 13:42:23 +01:00
Friedrich W. H. Kossebau 45726eb701 Fix OpMergeParagraph to not remove empty text:p of annotations' text 2015-03-25 11:11:29 +01:00
Friedrich W. H. Kossebau b340d2b9af Extend core.DomUtils.removeUnwantedNodes with optional parameter shouldSkip 2015-03-23 13:28:07 +01:00
Friedrich W. H. Kossebau 963eabf0af Move UnitTester code into test dirs, no longer compile into webodf.js 2015-03-14 01:37:32 +01:00
Friedrich W. H. Kossebau 6fa1f56f05 Move HTML rendering of logging out of normal BrowserRuntime 2015-03-14 01:37:32 +01:00
Friedrich W. H. Kossebau 5a2db9c1ac Handle a possible BOM in Runtime.byteArrayToString for utf-8 2015-03-14 01:27:01 +01:00
Friedrich W. H. Kossebau 434a18a90d Add core.DomUtils.removeAllChildNodes() 2015-02-20 23:18:34 +01:00
Philip Peitsch 4afcc165ed Reduce the number of places aware that the root element can be replaced
Replacing the root element is currently a by-product of the undo impl.
Reducing the number of places aware of this impl detail helps ensure
future undo managers have less clean-up work to do when this behaviour
is finally removed.
2015-02-15 16:53:19 +11:00
Friedrich W. H. Kossebau 006d45b745 Add note about httpserver.js to webodf/tests/README 2015-02-12 13:47:36 +01:00
Friedrich W. H. Kossebau 49d3181fca Some unit tests for the documentModified property 2015-01-17 19:34:54 +01:00
Friedrich W. H. Kossebau 2ae93c5ef8 Remove hardcoded dep of OdtDocument code on op UpdateMetadata
Following initial design there should be multiple different operation sets
possible, all working on the same document classes.
So relying on a certain optype and its spec in the code of ops.OdtDocument
is conflicting with that.
2015-01-17 18:16:20 +01:00
Philip Peitsch 9fba50ac69 Fix position instability around highlighted annotations
By checking only nodes that pass the supplied node filter, the position
logic can safely ignore out-of-place cursors near highlighted annotations.

Note, this can't re-use PositionIterator.previousNode, because the logic
requires the previous sibling of the current container's previous sibling.
2014-09-30 11:29:33 +10:00
Philip Peitsch 1586b9f36c Add additional tests showing position stability problems 2014-09-30 11:29:33 +10:00