Return-Path: X-Original-To: apmail-corinthia-commits-archive@minotaur.apache.org Delivered-To: apmail-corinthia-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7BAD69E57 for ; Wed, 17 Dec 2014 13:28:58 +0000 (UTC) Received: (qmail 35655 invoked by uid 500); 17 Dec 2014 13:28:58 -0000 Delivered-To: apmail-corinthia-commits-archive@corinthia.apache.org Received: (qmail 35641 invoked by uid 500); 17 Dec 2014 13:28:58 -0000 Mailing-List: contact commits-help@corinthia.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@corinthia.incubator.apache.org Delivered-To: mailing list commits@corinthia.incubator.apache.org Received: (qmail 35632 invoked by uid 99); 17 Dec 2014 13:28:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Dec 2014 13:28:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 17 Dec 2014 13:28:32 +0000 Received: (qmail 33509 invoked by uid 99); 17 Dec 2014 13:28:11 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Dec 2014 13:28:11 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 770D182E43C; Wed, 17 Dec 2014 13:28:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: pmkelly@apache.org To: commits@corinthia.incubator.apache.org Date: Wed, 17 Dec 2014 13:28:16 -0000 Message-Id: <72809962cafb401bad0fb9bd24167377@git.apache.org> In-Reply-To: <9867ce2e8a674e46a1b0776f45bb10a3@git.apache.org> References: <9867ce2e8a674e46a1b0776f45bb10a3@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [06/92] [abbrv] [partial] incubator-corinthia git commit: Add editing code from UX Write X-Virus-Checked: Checked by ClamAV on apache.org http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText06-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText06-expected.html b/Editor/tests/range/getText06-expected.html new file mode 100644 index 0000000..81f9138 --- /dev/null +++ b/Editor/tests/range/getText06-expected.html @@ -0,0 +1 @@ +" text\nAnd some " http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText06-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText06-input.html b/Editor/tests/range/getText06-input.html new file mode 100644 index 0000000..41f177e --- /dev/null +++ b/Editor/tests/range/getText06-input.html @@ -0,0 +1,17 @@ + + + + + + +

Here is some[ text

+

And some ]more

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText07-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText07-expected.html b/Editor/tests/range/getText07-expected.html new file mode 100644 index 0000000..15b463a --- /dev/null +++ b/Editor/tests/range/getText07-expected.html @@ -0,0 +1 @@ +"Here is some text\n" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText07-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText07-input.html b/Editor/tests/range/getText07-input.html new file mode 100644 index 0000000..e84e03e --- /dev/null +++ b/Editor/tests/range/getText07-input.html @@ -0,0 +1,17 @@ + + + + + + +

[Here is some text

+

]And some more

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText08-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText08-expected.html b/Editor/tests/range/getText08-expected.html new file mode 100644 index 0000000..25af782 --- /dev/null +++ b/Editor/tests/range/getText08-expected.html @@ -0,0 +1 @@ +"\nAnd some more" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText08-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText08-input.html b/Editor/tests/range/getText08-input.html new file mode 100644 index 0000000..6c0580c --- /dev/null +++ b/Editor/tests/range/getText08-input.html @@ -0,0 +1,17 @@ + + + + + + +

Here is some text[

+

And some more]

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText09-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText09-expected.html b/Editor/tests/range/getText09-expected.html new file mode 100644 index 0000000..bf9fd33 --- /dev/null +++ b/Editor/tests/range/getText09-expected.html @@ -0,0 +1 @@ +"Here is some text\nAnd some more" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText09-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText09-input.html b/Editor/tests/range/getText09-input.html new file mode 100644 index 0000000..9a655ee --- /dev/null +++ b/Editor/tests/range/getText09-input.html @@ -0,0 +1,18 @@ + + + + + + +

[Here is some text

+ +

And some more]

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText10-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText10-expected.html b/Editor/tests/range/getText10-expected.html new file mode 100644 index 0000000..b4e560c --- /dev/null +++ b/Editor/tests/range/getText10-expected.html @@ -0,0 +1 @@ +"Here is some text\n x \nAnd some more" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText10-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText10-input.html b/Editor/tests/range/getText10-input.html new file mode 100644 index 0000000..7d865b9 --- /dev/null +++ b/Editor/tests/range/getText10-input.html @@ -0,0 +1,18 @@ + + + + + + +

[Here is some text

+ x +

And some more]

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText11-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText11-expected.html b/Editor/tests/range/getText11-expected.html new file mode 100644 index 0000000..bf9fd33 --- /dev/null +++ b/Editor/tests/range/getText11-expected.html @@ -0,0 +1 @@ +"Here is some text\nAnd some more" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText11-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText11-input.html b/Editor/tests/range/getText11-input.html new file mode 100644 index 0000000..8283d95 --- /dev/null +++ b/Editor/tests/range/getText11-input.html @@ -0,0 +1,17 @@ + + + + + + +

[Here is some text

+

And some more]

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText12-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText12-expected.html b/Editor/tests/range/getText12-expected.html new file mode 100644 index 0000000..15b463a --- /dev/null +++ b/Editor/tests/range/getText12-expected.html @@ -0,0 +1 @@ +"Here is some text\n" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText12-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText12-input.html b/Editor/tests/range/getText12-input.html new file mode 100644 index 0000000..14b4fe8 --- /dev/null +++ b/Editor/tests/range/getText12-input.html @@ -0,0 +1,17 @@ + + + + + + +

[Here is some text

+

]And some more

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText13-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText13-expected.html b/Editor/tests/range/getText13-expected.html new file mode 100644 index 0000000..25af782 --- /dev/null +++ b/Editor/tests/range/getText13-expected.html @@ -0,0 +1 @@ +"\nAnd some more" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText13-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText13-input.html b/Editor/tests/range/getText13-input.html new file mode 100644 index 0000000..ed462dc --- /dev/null +++ b/Editor/tests/range/getText13-input.html @@ -0,0 +1,17 @@ + + + + + + +

Here is some text[

+

And some more]

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText14-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText14-expected.html b/Editor/tests/range/getText14-expected.html new file mode 100644 index 0000000..063ee22 --- /dev/null +++ b/Editor/tests/range/getText14-expected.html @@ -0,0 +1 @@ +"Here is some text\nAnd some more\nNow the final paragraph" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText14-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText14-input.html b/Editor/tests/range/getText14-input.html new file mode 100644 index 0000000..7d866a1 --- /dev/null +++ b/Editor/tests/range/getText14-input.html @@ -0,0 +1,18 @@ + + + + + + +

[Here is some text

+

And some more

+

Now the final paragraph]

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText15-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText15-expected.html b/Editor/tests/range/getText15-expected.html new file mode 100644 index 0000000..a443d62 --- /dev/null +++ b/Editor/tests/range/getText15-expected.html @@ -0,0 +1 @@ +"Here is some text\nAnd some more\n" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText15-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText15-input.html b/Editor/tests/range/getText15-input.html new file mode 100644 index 0000000..673baf9 --- /dev/null +++ b/Editor/tests/range/getText15-input.html @@ -0,0 +1,18 @@ + + + + + + +

[Here is some text

+

And some more

+

]Now the final paragraph

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText16-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText16-expected.html b/Editor/tests/range/getText16-expected.html new file mode 100644 index 0000000..6a891e8 --- /dev/null +++ b/Editor/tests/range/getText16-expected.html @@ -0,0 +1 @@ +"\nAnd some more\nNow the final paragraph" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText16-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText16-input.html b/Editor/tests/range/getText16-input.html new file mode 100644 index 0000000..7e03b4d --- /dev/null +++ b/Editor/tests/range/getText16-input.html @@ -0,0 +1,18 @@ + + + + + + +

Here is some text[

+

And some more

+

Now the final paragraph]

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText17-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText17-expected.html b/Editor/tests/range/getText17-expected.html new file mode 100644 index 0000000..8e63e56 --- /dev/null +++ b/Editor/tests/range/getText17-expected.html @@ -0,0 +1 @@ +"some text\nAnd some more\nNow the final paragraph" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText17-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText17-input.html b/Editor/tests/range/getText17-input.html new file mode 100644 index 0000000..17fa4ef --- /dev/null +++ b/Editor/tests/range/getText17-input.html @@ -0,0 +1,18 @@ + + + + + + +

Here is [some text

+

And some more

+

Now the final paragraph]

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText18-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText18-expected.html b/Editor/tests/range/getText18-expected.html new file mode 100644 index 0000000..0a4b29e --- /dev/null +++ b/Editor/tests/range/getText18-expected.html @@ -0,0 +1 @@ +"Here is some text\nAnd some more\nNow the final" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText18-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText18-input.html b/Editor/tests/range/getText18-input.html new file mode 100644 index 0000000..c9a4625 --- /dev/null +++ b/Editor/tests/range/getText18-input.html @@ -0,0 +1,18 @@ + + + + + + +

[Here is some text

+

And some more

+

Now the final] paragraph

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText19-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText19-expected.html b/Editor/tests/range/getText19-expected.html new file mode 100644 index 0000000..2de0c30 --- /dev/null +++ b/Editor/tests/range/getText19-expected.html @@ -0,0 +1 @@ +"some text\nAnd some more\nNow the final" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText19-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText19-input.html b/Editor/tests/range/getText19-input.html new file mode 100644 index 0000000..35a988a --- /dev/null +++ b/Editor/tests/range/getText19-input.html @@ -0,0 +1,18 @@ + + + + + + +

Here is [some text

+

And some more

+

Now the final] paragraph

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText20-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText20-expected.html b/Editor/tests/range/getText20-expected.html new file mode 100644 index 0000000..25f009d --- /dev/null +++ b/Editor/tests/range/getText20-expected.html @@ -0,0 +1 @@ +"some text\none two \nAnd some more\nthree \nNow the final" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText20-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText20-input.html b/Editor/tests/range/getText20-input.html new file mode 100644 index 0000000..d52006d --- /dev/null +++ b/Editor/tests/range/getText20-input.html @@ -0,0 +1,25 @@ + + + + + + +

Here is [some text

+ + one + two + +

And some more

+ + three + +

Now the final] paragraph

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText21-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText21-expected.html b/Editor/tests/range/getText21-expected.html new file mode 100644 index 0000000..8028402 --- /dev/null +++ b/Editor/tests/range/getText21-expected.html @@ -0,0 +1,6 @@ +At offset 0: "" +At offset 1: "" +At offset 2: "" +At offset 3: "" +At offset 4: "" +At offset 5: "" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/getText21-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/getText21-input.html b/Editor/tests/range/getText21-input.html new file mode 100644 index 0000000..a4752d5 --- /dev/null +++ b/Editor/tests/range/getText21-input.html @@ -0,0 +1,21 @@ + + + + + + +

One two three four five

+

Here is some text

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/rangeHasContent01-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/rangeHasContent01-expected.html b/Editor/tests/range/rangeHasContent01-expected.html new file mode 100644 index 0000000..27ba77d --- /dev/null +++ b/Editor/tests/range/rangeHasContent01-expected.html @@ -0,0 +1 @@ +true http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/rangeHasContent01-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/rangeHasContent01-input.html b/Editor/tests/range/rangeHasContent01-input.html new file mode 100644 index 0000000..b0786a7 --- /dev/null +++ b/Editor/tests/range/rangeHasContent01-input.html @@ -0,0 +1,15 @@ + + + + + + +

[This is a test]

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/rangeHasContent02-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/rangeHasContent02-expected.html b/Editor/tests/range/rangeHasContent02-expected.html new file mode 100644 index 0000000..27ba77d --- /dev/null +++ b/Editor/tests/range/rangeHasContent02-expected.html @@ -0,0 +1 @@ +true http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/rangeHasContent02-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/rangeHasContent02-input.html b/Editor/tests/range/rangeHasContent02-input.html new file mode 100644 index 0000000..a72791a --- /dev/null +++ b/Editor/tests/range/rangeHasContent02-input.html @@ -0,0 +1,15 @@ + + + + + + +

This is [a] test

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/rangeHasContent03-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/rangeHasContent03-expected.html b/Editor/tests/range/rangeHasContent03-expected.html new file mode 100644 index 0000000..c508d53 --- /dev/null +++ b/Editor/tests/range/rangeHasContent03-expected.html @@ -0,0 +1 @@ +false http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/rangeHasContent03-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/rangeHasContent03-input.html b/Editor/tests/range/rangeHasContent03-input.html new file mode 100644 index 0000000..17ab443 --- /dev/null +++ b/Editor/tests/range/rangeHasContent03-input.html @@ -0,0 +1,15 @@ + + + + + + +

This is a[ ]test

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/rangeHasContent04-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/rangeHasContent04-expected.html b/Editor/tests/range/rangeHasContent04-expected.html new file mode 100644 index 0000000..27ba77d --- /dev/null +++ b/Editor/tests/range/rangeHasContent04-expected.html @@ -0,0 +1 @@ +true http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/rangeHasContent04-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/rangeHasContent04-input.html b/Editor/tests/range/rangeHasContent04-input.html new file mode 100644 index 0000000..329cf1f --- /dev/null +++ b/Editor/tests/range/rangeHasContent04-input.html @@ -0,0 +1,15 @@ + + + + + + +

This [is a] test

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/rangeHasContent05-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/rangeHasContent05-expected.html b/Editor/tests/range/rangeHasContent05-expected.html new file mode 100644 index 0000000..27ba77d --- /dev/null +++ b/Editor/tests/range/rangeHasContent05-expected.html @@ -0,0 +1 @@ +true http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/rangeHasContent05-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/rangeHasContent05-input.html b/Editor/tests/range/rangeHasContent05-input.html new file mode 100644 index 0000000..c4d3c18 --- /dev/null +++ b/Editor/tests/range/rangeHasContent05-input.html @@ -0,0 +1,15 @@ + + + + + + +

This is[ a] test

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/rangeHasContent06-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/rangeHasContent06-expected.html b/Editor/tests/range/rangeHasContent06-expected.html new file mode 100644 index 0000000..27ba77d --- /dev/null +++ b/Editor/tests/range/rangeHasContent06-expected.html @@ -0,0 +1 @@ +true http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/rangeHasContent06-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/rangeHasContent06-input.html b/Editor/tests/range/rangeHasContent06-input.html new file mode 100644 index 0000000..7a30453 --- /dev/null +++ b/Editor/tests/range/rangeHasContent06-input.html @@ -0,0 +1,15 @@ + + + + + + +

This [is ]a test

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/rangeHasContent07-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/rangeHasContent07-expected.html b/Editor/tests/range/rangeHasContent07-expected.html new file mode 100644 index 0000000..c508d53 --- /dev/null +++ b/Editor/tests/range/rangeHasContent07-expected.html @@ -0,0 +1 @@ +false http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/range/rangeHasContent07-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/range/rangeHasContent07-input.html b/Editor/tests/range/rangeHasContent07-input.html new file mode 100644 index 0000000..e1800ef --- /dev/null +++ b/Editor/tests/range/rangeHasContent07-input.html @@ -0,0 +1,15 @@ + + + + + + +

This is[ ]a test

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/ScanTests.js ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/ScanTests.js b/Editor/tests/scan/ScanTests.js new file mode 100644 index 0000000..e039a14 --- /dev/null +++ b/Editor/tests/scan/ScanTests.js @@ -0,0 +1,31 @@ +// Copyright 2011-2014 UX Productivity Pty Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function testNext() +{ + var result = new Array(); + Scan_reset(); + var index = 0; + while (true) { + var paragraph = Scan_next(); + if (paragraph == null) + break; + if (paragraph.sectionId != null) + result.push(index+" ("+paragraph.sectionId+"): "+JSON.stringify(paragraph.text)); + else + result.push(index+": "+JSON.stringify(paragraph.text)); + index++; + } + return result.join("\n"); +} http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/next01-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/next01-expected.html b/Editor/tests/scan/next01-expected.html new file mode 100644 index 0000000..fab096d --- /dev/null +++ b/Editor/tests/scan/next01-expected.html @@ -0,0 +1,4 @@ +0: "Paragraph 1" +1: "Paragraph 2" +2: "Paragraph 3" +3: "Paragraph 4" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/next01-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/next01-input.html b/Editor/tests/scan/next01-input.html new file mode 100644 index 0000000..f18246d --- /dev/null +++ b/Editor/tests/scan/next01-input.html @@ -0,0 +1,18 @@ + + + + + + + +

Paragraph 1

+

Paragraph 2

+

Paragraph 3

+

Paragraph 4

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/next02-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/next02-expected.html b/Editor/tests/scan/next02-expected.html new file mode 100644 index 0000000..fab096d --- /dev/null +++ b/Editor/tests/scan/next02-expected.html @@ -0,0 +1,4 @@ +0: "Paragraph 1" +1: "Paragraph 2" +2: "Paragraph 3" +3: "Paragraph 4" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/next02-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/next02-input.html b/Editor/tests/scan/next02-input.html new file mode 100644 index 0000000..706ef07 --- /dev/null +++ b/Editor/tests/scan/next02-input.html @@ -0,0 +1,23 @@ + + + + + + + + +

Paragraph 1

+ +

Paragraph 2

+ +

Paragraph 3

+ +

Paragraph 4

+ + + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/next03-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/next03-expected.html b/Editor/tests/scan/next03-expected.html new file mode 100644 index 0000000..7d6e3e5 --- /dev/null +++ b/Editor/tests/scan/next03-expected.html @@ -0,0 +1,7 @@ +0: "Paragraph 1" +1: "\n\none\n\n" +2: "Paragraph 2" +3: "\n\none\ntwo\n\n" +4: "Paragraph 3" +5: "\n\none\ntwo\nthree\n\n" +6: "Paragraph 4" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/next03-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/next03-input.html b/Editor/tests/scan/next03-input.html new file mode 100644 index 0000000..e6cc426 --- /dev/null +++ b/Editor/tests/scan/next03-input.html @@ -0,0 +1,32 @@ + + + + + + + + +

Paragraph 1

+ +one + +

Paragraph 2

+ +one +two + +

Paragraph 3

+ +one +two +three + +

Paragraph 4

+ + + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/next04-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/next04-expected.html b/Editor/tests/scan/next04-expected.html new file mode 100644 index 0000000..57f32de --- /dev/null +++ b/Editor/tests/scan/next04-expected.html @@ -0,0 +1,5 @@ +0: "\n\nBefore\n\n" +1: "Item 1" +2: "Item 2" +3: "Item 3" +4: "\n\nAfter\n\n\n\n" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/next04-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/next04-input.html b/Editor/tests/scan/next04-input.html new file mode 100644 index 0000000..c09a938 --- /dev/null +++ b/Editor/tests/scan/next04-input.html @@ -0,0 +1,25 @@ + + + + + + + + +Before + +
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
+ +After + + + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/next05-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/next05-expected.html b/Editor/tests/scan/next05-expected.html new file mode 100644 index 0000000..182255b --- /dev/null +++ b/Editor/tests/scan/next05-expected.html @@ -0,0 +1,7 @@ +0: "\n\nBefore\n\n" +1: "Cell 1,1" +2: "Cell 1,2" +3: "Cell 2,1" +4: "Cell 2,2" +5: "Table caption" +6: "\n\nAfter\n\n\n\n" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/next05-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/next05-input.html b/Editor/tests/scan/next05-input.html new file mode 100644 index 0000000..b8b2bf0 --- /dev/null +++ b/Editor/tests/scan/next05-input.html @@ -0,0 +1,35 @@ + + + + + + + + +Before + + + + + + + + + + + + + + + +
Table caption
Cell 1,1
Cell 1,2
Cell 2,1
Cell 2,2
+ +After + + + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/next06-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/next06-expected.html b/Editor/tests/scan/next06-expected.html new file mode 100644 index 0000000..0af6556 --- /dev/null +++ b/Editor/tests/scan/next06-expected.html @@ -0,0 +1,3 @@ +0: "\n\nBefore\n\n" +1: "Figure caption" +2: "\n\nAfter\n\n\n\n" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/next06-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/next06-input.html b/Editor/tests/scan/next06-input.html new file mode 100644 index 0000000..272c2c9 --- /dev/null +++ b/Editor/tests/scan/next06-input.html @@ -0,0 +1,24 @@ + + + + + + + + +Before + +
+ +
Figure caption
+
+ +After + + + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/next07-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/next07-expected.html b/Editor/tests/scan/next07-expected.html new file mode 100644 index 0000000..0df7a06 --- /dev/null +++ b/Editor/tests/scan/next07-expected.html @@ -0,0 +1,4 @@ +0 (item1): "Section 1" +1: "Content 1" +2 (item2): "Section 2" +3: "Content 2" http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/next07-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/next07-input.html b/Editor/tests/scan/next07-input.html new file mode 100644 index 0000000..26dd1c6 --- /dev/null +++ b/Editor/tests/scan/next07-input.html @@ -0,0 +1,18 @@ + + + + + + + +

Section 1

+

Content 1

+

Section 2

+

Content 2

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/replaceMatch01-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/replaceMatch01-expected.html b/Editor/tests/scan/replaceMatch01-expected.html new file mode 100644 index 0000000..a058d93 --- /dev/null +++ b/Editor/tests/scan/replaceMatch01-expected.html @@ -0,0 +1,10 @@ + + + + + +

FIRST quick brown

+

fox SECOND over

+

the lazy THIRD

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/replaceMatch01-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/replaceMatch01-input.html b/Editor/tests/scan/replaceMatch01-input.html new file mode 100644 index 0000000..a7543fc --- /dev/null +++ b/Editor/tests/scan/replaceMatch01-input.html @@ -0,0 +1,31 @@ + + + + + + + + +

The quick brown

+

fox jumps over

+

the lazy dog

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/replaceMatch02-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/replaceMatch02-expected.html b/Editor/tests/scan/replaceMatch02-expected.html new file mode 100644 index 0000000..20c6760 --- /dev/null +++ b/Editor/tests/scan/replaceMatch02-expected.html @@ -0,0 +1,10 @@ + + + + + +

FIRST quick SECOND

+

THIRD jumps FOURTH

+

FIFTH lazy SIXTH

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/replaceMatch02-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/replaceMatch02-input.html b/Editor/tests/scan/replaceMatch02-input.html new file mode 100644 index 0000000..46f4412 --- /dev/null +++ b/Editor/tests/scan/replaceMatch02-input.html @@ -0,0 +1,42 @@ + + + + + + + + +

The quick brown

+

fox jumps over

+

the lazy dog

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/replaceMatch03-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/replaceMatch03-expected.html b/Editor/tests/scan/replaceMatch03-expected.html new file mode 100644 index 0000000..f3e8b8d --- /dev/null +++ b/Editor/tests/scan/replaceMatch03-expected.html @@ -0,0 +1,20 @@ + + + + + +

+ FIRST + quick brown +

+

+ fox + SECOND + over +

+

+ the lazy + THIRD +

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/replaceMatch03-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/replaceMatch03-input.html b/Editor/tests/scan/replaceMatch03-input.html new file mode 100644 index 0000000..461ba78 --- /dev/null +++ b/Editor/tests/scan/replaceMatch03-input.html @@ -0,0 +1,31 @@ + + + + + + + + +

The quick brown

+

fox jumps over

+

the lazy dog

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/replaceMatch04-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/replaceMatch04-expected.html b/Editor/tests/scan/replaceMatch04-expected.html new file mode 100644 index 0000000..29cd44c --- /dev/null +++ b/Editor/tests/scan/replaceMatch04-expected.html @@ -0,0 +1,16 @@ + + + + + +

+ FIRST quick + brown +

+

fox SECOND over

+

+ the + lazy THIRD +

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/replaceMatch04-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/replaceMatch04-input.html b/Editor/tests/scan/replaceMatch04-input.html new file mode 100644 index 0000000..3b50989 --- /dev/null +++ b/Editor/tests/scan/replaceMatch04-input.html @@ -0,0 +1,31 @@ + + + + + + + + +

The quick brown

+

fox jumps over

+

the lazy dog

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/replaceMatch05-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/replaceMatch05-expected.html b/Editor/tests/scan/replaceMatch05-expected.html new file mode 100644 index 0000000..eecf8a4 --- /dev/null +++ b/Editor/tests/scan/replaceMatch05-expected.html @@ -0,0 +1,13 @@ + + + + + +

+ FIRST + quick brown +

+

fox SECOND over

+

the lazy THIRD

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/replaceMatch05-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/replaceMatch05-input.html b/Editor/tests/scan/replaceMatch05-input.html new file mode 100644 index 0000000..1ee73ab --- /dev/null +++ b/Editor/tests/scan/replaceMatch05-input.html @@ -0,0 +1,31 @@ + + + + + + + + +

The quick brown

+

fox jumps over

+

the lazy dog

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/showMatch01-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/showMatch01-expected.html b/Editor/tests/scan/showMatch01-expected.html new file mode 100644 index 0000000..838844f --- /dev/null +++ b/Editor/tests/scan/showMatch01-expected.html @@ -0,0 +1,20 @@ + + + + + +

+ The + quick brown +

+

+ fox + jumps + over +

+

+ the lazy + dog +

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/showMatch01-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/showMatch01-input.html b/Editor/tests/scan/showMatch01-input.html new file mode 100644 index 0000000..409468f --- /dev/null +++ b/Editor/tests/scan/showMatch01-input.html @@ -0,0 +1,27 @@ + + + + + + + + +

The quick brown

+

fox jumps over

+

the lazy dog

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/showMatch02-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/showMatch02-expected.html b/Editor/tests/scan/showMatch02-expected.html new file mode 100644 index 0000000..3e28704 --- /dev/null +++ b/Editor/tests/scan/showMatch02-expected.html @@ -0,0 +1,22 @@ + + + + + +

+ The + quick + brown +

+

+ fox + jumps + over +

+

+ the + lazy + dog +

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/showMatch02-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/showMatch02-input.html b/Editor/tests/scan/showMatch02-input.html new file mode 100644 index 0000000..c0b29ef --- /dev/null +++ b/Editor/tests/scan/showMatch02-input.html @@ -0,0 +1,35 @@ + + + + + + + + +

The quick brown

+

fox jumps over

+

the lazy dog

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/showMatch03-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/showMatch03-expected.html b/Editor/tests/scan/showMatch03-expected.html new file mode 100644 index 0000000..74daee2 --- /dev/null +++ b/Editor/tests/scan/showMatch03-expected.html @@ -0,0 +1,20 @@ + + + + + +

+ The + quick brown +

+

+ fox + jumps + over +

+

+ the lazy + dog +

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/showMatch03-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/showMatch03-input.html b/Editor/tests/scan/showMatch03-input.html new file mode 100644 index 0000000..a8a2fb2 --- /dev/null +++ b/Editor/tests/scan/showMatch03-input.html @@ -0,0 +1,27 @@ + + + + + + + + +

The quick brown

+

fox jumps over

+

the lazy dog

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/showMatch04-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/showMatch04-expected.html b/Editor/tests/scan/showMatch04-expected.html new file mode 100644 index 0000000..4987119 --- /dev/null +++ b/Editor/tests/scan/showMatch04-expected.html @@ -0,0 +1,22 @@ + + + + + +

+ The + quick + brown +

+

+ fox + jumps + over +

+

+ the + lazy + dog +

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/showMatch04-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/showMatch04-input.html b/Editor/tests/scan/showMatch04-input.html new file mode 100644 index 0000000..42e7efb --- /dev/null +++ b/Editor/tests/scan/showMatch04-input.html @@ -0,0 +1,27 @@ + + + + + + + + +

The quick brown

+

fox jumps over

+

the lazy dog

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/showMatch05-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/showMatch05-expected.html b/Editor/tests/scan/showMatch05-expected.html new file mode 100644 index 0000000..73bfded --- /dev/null +++ b/Editor/tests/scan/showMatch05-expected.html @@ -0,0 +1,24 @@ + + + + + +

+ Th + e + quick brown +

+

+ fox + j + ump + s + over +

+

+ the lazy + d + og +

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/scan/showMatch05-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/scan/showMatch05-input.html b/Editor/tests/scan/showMatch05-input.html new file mode 100644 index 0000000..256fac6 --- /dev/null +++ b/Editor/tests/scan/showMatch05-input.html @@ -0,0 +1,27 @@ + + + + + + + + +

The quick brown

+

fox jumps over

+

the lazy dog

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/PositionTests.js ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/PositionTests.js b/Editor/tests/selection/PositionTests.js new file mode 100644 index 0000000..7367f9a --- /dev/null +++ b/Editor/tests/selection/PositionTests.js @@ -0,0 +1,144 @@ +// Copyright 2011-2014 UX Productivity Pty Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function pad(str,length) +{ + str = ""+str; + while (str.length < length) + str += " "; + return str; +} + +function selectRange(p,start,end) +{ + var paragraph = Text_analyseParagraph(new Position(p,0)); + var startPos = Paragraph_positionAtOffset(paragraph,start); + var endPos = Paragraph_positionAtOffset(paragraph,end); + Selection_set(startPos.node,startPos.offset,endPos.node,endPos.offset); +} + +function makeStringArray(input) +{ + var result = new Array(); + for (var i = 0; i < input.length; i++) + result.push(input[i].toString()); + return result; +} + +function createTable(arrays) +{ + var maxLength = 0; + for (var col = 0; col < arrays.length; col++) { + if (maxLength < arrays[col].length) + maxLength = arrays[col].length; + } + var colWidths = new Array(); + for (var col = 0; col < arrays.length; col++) { + var width = 0; + for (var row = 0; row < arrays[col].length; row++) { + if (width < arrays[col][row].length) + width = arrays[col][row].length; + } + colWidths.push(width); + } + + var output = new Array(); + var spacer = " -> "; + for (var row = 0; row < maxLength; row++) { + for (var col = 0; col < arrays.length; col++) { + if (col > 0) + output.push(spacer); + output.push(pad(arrays[col][row],colWidths[col])); + } + output.push("\n"); + } + return output.join(""); +} + +function rangeString(text,start,end) +{ + return JSON.stringify(text.substring(0,start) + "[" + + text.substring(start,end) + "]" + + text.substring(end)); +} + +var positionList = null + +function setPositionList(newList) +{ + UndoManager_addAction(setPositionList,positionList); + if (newList == null) + positionList = null; + else + positionList = newList.map(function (pos) { return new Position(pos.node,pos.offset); }); +} + +function getPositionList() +{ + return positionList; +} + +function positionTest(start1,end1,start2,end2) +{ + var ps = document.getElementsByTagName("P"); + + var p = ps[0]; + var text = p.firstChild; + + var testDescription = "From "+rangeString(text.nodeValue,start1,end1) + "\n" + + "To "+rangeString(text.nodeValue,start2,end2) + "\n"; + + var positions = new Array(); + for (var i = 0; i <= text.length; i++) + positions.push(new Position(text,i)); + setPositionList(positions); + + var origStrings = makeStringArray(positions); + UndoManager_newGroup(); + + Position_trackWhileExecuting(positions,function() { selectRange(p,start1,end1); }); + setPositionList(positions); + var strings1 = makeStringArray(positions); + + UndoManager_newGroup(); + + Position_trackWhileExecuting(positions,function() { selectRange(p,start2,end2); }); + setPositionList(positions); + var strings2 = makeStringArray(positions); + + UndoManager_undo(); + positions = getPositionList(); + var undo1 = makeStringArray(positions); + + UndoManager_undo(); + positions = getPositionList(); + var undo2 = makeStringArray(positions); + + var checks = new Array(); + for (var i = 0; i < positions.length; i++) { + var str = ""; + if (undo1[i] == strings1[i]) + str += "YES"; + else + str += "NO"; + + if (undo2[i] == origStrings[i]) + str += "/YES"; + else + str += "/NO"; + checks.push(str); + } + + return testDescription + "\n" + createTable([origStrings,strings1,strings2,checks]); +} http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table01-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table01-expected.html b/Editor/tests/selection/boundaries-table01-expected.html new file mode 100644 index 0000000..a10ae78 --- /dev/null +++ b/Editor/tests/selection/boundaries-table01-expected.html @@ -0,0 +1,20 @@ + + + +

Text [before

+ + + + + + + + + + + +
OneTwo
ThreeFour
+ ] +

Text after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table01-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table01-input.html b/Editor/tests/selection/boundaries-table01-input.html new file mode 100644 index 0000000..3d4a006 --- /dev/null +++ b/Editor/tests/selection/boundaries-table01-input.html @@ -0,0 +1,25 @@ + + + + + + +

Text [before

+ + + + + + + + + +
OneTw]o
ThreeFour
+

Text after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table02-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table02-expected.html b/Editor/tests/selection/boundaries-table02-expected.html new file mode 100644 index 0000000..81c8769 --- /dev/null +++ b/Editor/tests/selection/boundaries-table02-expected.html @@ -0,0 +1,20 @@ + + + +

Text before

+ [ + + + + + + + + + + + +
OneTwo
ThreeFour
+

Text] after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table02-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table02-input.html b/Editor/tests/selection/boundaries-table02-input.html new file mode 100644 index 0000000..86fcafc --- /dev/null +++ b/Editor/tests/selection/boundaries-table02-input.html @@ -0,0 +1,25 @@ + + + + + + +

Text before

+ + + + + + + + + +
OneTw[o
ThreeFour
+

Text] after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table03-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table03-expected.html b/Editor/tests/selection/boundaries-table03-expected.html new file mode 100644 index 0000000..492d9d9 --- /dev/null +++ b/Editor/tests/selection/boundaries-table03-expected.html @@ -0,0 +1,19 @@ + + + +

Text before

+ + + + + + + + + + + +
OneTw[o
ThreeF]our
+

Text after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table03-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table03-input.html b/Editor/tests/selection/boundaries-table03-input.html new file mode 100644 index 0000000..3e08247 --- /dev/null +++ b/Editor/tests/selection/boundaries-table03-input.html @@ -0,0 +1,25 @@ + + + + + + +

Text before

+ + + + + + + + + +
OneTw[o
ThreeF]our
+

Text after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table04-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table04-expected.html b/Editor/tests/selection/boundaries-table04-expected.html new file mode 100644 index 0000000..1e5725f --- /dev/null +++ b/Editor/tests/selection/boundaries-table04-expected.html @@ -0,0 +1,19 @@ + + + +

Text [before

+ + + + + + + + + + + +
OneTwo
ThreeFour
+

Text] after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table04-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table04-input.html b/Editor/tests/selection/boundaries-table04-input.html new file mode 100644 index 0000000..6b97c8f --- /dev/null +++ b/Editor/tests/selection/boundaries-table04-input.html @@ -0,0 +1,25 @@ + + + + + + +

Text [before

+ + + + + + + + + +
OneTwo
ThreeFour
+

Text] after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table05-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table05-expected.html b/Editor/tests/selection/boundaries-table05-expected.html new file mode 100644 index 0000000..334ceb0 --- /dev/null +++ b/Editor/tests/selection/boundaries-table05-expected.html @@ -0,0 +1,41 @@ + + + +

Text before

+ + + + + + +
+ [ + + + + + + + + + + + +
OneTwo
ThreeFour
+ + + + + + + + + + + +
FiveSix
SevenEight
+ ] +
+

Text after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table05-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table05-input.html b/Editor/tests/selection/boundaries-table05-input.html new file mode 100644 index 0000000..2ec8be1 --- /dev/null +++ b/Editor/tests/selection/boundaries-table05-input.html @@ -0,0 +1,54 @@ + + + + + + + +

Text before

+ + + + + + + +
+ + + + + + + + + + + + +
OneT[wo
ThreeFour
+ + + + + + + + + + + + +
FiveSix
S]evenEight
+ +
+ +

Text after

+ + + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table06-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table06-expected.html b/Editor/tests/selection/boundaries-table06-expected.html new file mode 100644 index 0000000..95b96b8 --- /dev/null +++ b/Editor/tests/selection/boundaries-table06-expected.html @@ -0,0 +1,43 @@ + + + +

Text before

+ + + + + + + +
+ [ + + + + + + + + + + + +
OneTwo
ThreeFour
+
+ + + + + + + + + + + +
FiveSix
SevenEight
+ ] +
+

Text after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table06-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table06-input.html b/Editor/tests/selection/boundaries-table06-input.html new file mode 100644 index 0000000..a194718 --- /dev/null +++ b/Editor/tests/selection/boundaries-table06-input.html @@ -0,0 +1,57 @@ + + + + + + + +

Text before

+ + + + + + + + +
+ + + + + + + + + + + + +
OneT[wo
ThreeFour
+ +
+ + + + + + + + + + + + +
FiveSix
S]evenEight
+ +
+ +

Text after

+ + + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table07-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table07-expected.html b/Editor/tests/selection/boundaries-table07-expected.html new file mode 100644 index 0000000..b2943a5 --- /dev/null +++ b/Editor/tests/selection/boundaries-table07-expected.html @@ -0,0 +1,28 @@ + + + +

Text [before

+ + + + + + +
+ + + + + + + + + + + +
OneTwo
ThreeFour
+
+ ] +

Text after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table07-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table07-input.html b/Editor/tests/selection/boundaries-table07-input.html new file mode 100644 index 0000000..0a0fea0 --- /dev/null +++ b/Editor/tests/selection/boundaries-table07-input.html @@ -0,0 +1,41 @@ + + + + + + + +

Text [before

+ + + + + + + +
+ + + + + + + + + + + + +
OneT]wo
ThreeFour
+ +
+ +

Text after

+ + + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table08-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table08-expected.html b/Editor/tests/selection/boundaries-table08-expected.html new file mode 100644 index 0000000..de62065 --- /dev/null +++ b/Editor/tests/selection/boundaries-table08-expected.html @@ -0,0 +1,28 @@ + + + +

Text before

+ [ + + + + + + +
+ + + + + + + + + + + +
OneTwo
ThreeFour
+
+

Text] after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table08-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table08-input.html b/Editor/tests/selection/boundaries-table08-input.html new file mode 100644 index 0000000..24970ec --- /dev/null +++ b/Editor/tests/selection/boundaries-table08-input.html @@ -0,0 +1,41 @@ + + + + + + + +

Text before

+ + + + + + + +
+ + + + + + + + + + + + +
OneT[wo
ThreeFour
+ +
+ +

Text] after

+ + + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table09-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table09-expected.html b/Editor/tests/selection/boundaries-table09-expected.html new file mode 100644 index 0000000..f2c214b --- /dev/null +++ b/Editor/tests/selection/boundaries-table09-expected.html @@ -0,0 +1,21 @@ + + + +

Text before

+ [ + + + + + + + + + + + +
OneTwo
ThreeFour
+ ] +

Text after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table09-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table09-input.html b/Editor/tests/selection/boundaries-table09-input.html new file mode 100644 index 0000000..50dac14 --- /dev/null +++ b/Editor/tests/selection/boundaries-table09-input.html @@ -0,0 +1,30 @@ + + + + + + +

Text before

+ + + + + + + + + +
OneTw[]o
ThreeFour
+

Text after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table10-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table10-expected.html b/Editor/tests/selection/boundaries-table10-expected.html new file mode 100644 index 0000000..f2c214b --- /dev/null +++ b/Editor/tests/selection/boundaries-table10-expected.html @@ -0,0 +1,21 @@ + + + +

Text before

+ [ + + + + + + + + + + + +
OneTwo
ThreeFour
+ ] +

Text after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/boundaries-table10-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/boundaries-table10-input.html b/Editor/tests/selection/boundaries-table10-input.html new file mode 100644 index 0000000..0b08e8e --- /dev/null +++ b/Editor/tests/selection/boundaries-table10-input.html @@ -0,0 +1,30 @@ + + + + + + +

Text before

+ + + + + + + + + +
OneTw[]o
ThreeFour
+

Text after

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/delete01-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/delete01-expected.html b/Editor/tests/selection/delete01-expected.html new file mode 100644 index 0000000..b3b3b3c --- /dev/null +++ b/Editor/tests/selection/delete01-expected.html @@ -0,0 +1,7 @@ + + + + one tw[] three +

four five six

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/delete01-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/delete01-input.html b/Editor/tests/selection/delete01-input.html new file mode 100644 index 0000000..db1bef1 --- /dev/null +++ b/Editor/tests/selection/delete01-input.html @@ -0,0 +1,16 @@ + + + + + + +one two[] three +

four five six

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/delete02-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/delete02-expected.html b/Editor/tests/selection/delete02-expected.html new file mode 100644 index 0000000..7209012 --- /dev/null +++ b/Editor/tests/selection/delete02-expected.html @@ -0,0 +1,7 @@ + + + + one [] three +

four five six

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/delete02-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/delete02-input.html b/Editor/tests/selection/delete02-input.html new file mode 100644 index 0000000..ecb3df5 --- /dev/null +++ b/Editor/tests/selection/delete02-input.html @@ -0,0 +1,16 @@ + + + + + + +one [two] three +

four five six

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/delete03-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/delete03-expected.html b/Editor/tests/selection/delete03-expected.html new file mode 100644 index 0000000..6ad2497 --- /dev/null +++ b/Editor/tests/selection/delete03-expected.html @@ -0,0 +1,4 @@ + + +

one two three[]four five six

+ http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/delete03-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/delete03-input.html b/Editor/tests/selection/delete03-input.html new file mode 100644 index 0000000..9f62e83 --- /dev/null +++ b/Editor/tests/selection/delete03-input.html @@ -0,0 +1,16 @@ + + + + + + +one two three +

[]four five six

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/delete04-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/delete04-expected.html b/Editor/tests/selection/delete04-expected.html new file mode 100644 index 0000000..6ad2497 --- /dev/null +++ b/Editor/tests/selection/delete04-expected.html @@ -0,0 +1,4 @@ + + +

one two three[]four five six

+ http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/delete04-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/delete04-input.html b/Editor/tests/selection/delete04-input.html new file mode 100644 index 0000000..0653b4e --- /dev/null +++ b/Editor/tests/selection/delete04-input.html @@ -0,0 +1,16 @@ + + + + + + +one two three[ +

]four five six

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/delete05-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/delete05-expected.html b/Editor/tests/selection/delete05-expected.html new file mode 100644 index 0000000..23d8405 --- /dev/null +++ b/Editor/tests/selection/delete05-expected.html @@ -0,0 +1,4 @@ + + +

one two [] five six

+ http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/delete05-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/delete05-input.html b/Editor/tests/selection/delete05-input.html new file mode 100644 index 0000000..2676cbd --- /dev/null +++ b/Editor/tests/selection/delete05-input.html @@ -0,0 +1,16 @@ + + + + + + +one two [three +

four] five six

+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/deleteContents-list01-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/deleteContents-list01-expected.html b/Editor/tests/selection/deleteContents-list01-expected.html new file mode 100644 index 0000000..cb82670 --- /dev/null +++ b/Editor/tests/selection/deleteContents-list01-expected.html @@ -0,0 +1,25 @@ + + + +
    +
  1. One
  2. +
  3. Two
  4. +
  5. Three
  6. +
+
    +
  1. F[]r
  2. +
  3. Five
  4. +
  5. Six
  6. +
+
    +
  1. Seven
  2. +
  3. Eight
  4. +
  5. Nine
  6. +
+
    +
  1. Ten
  2. +
  3. Eleven
  4. +
  5. Twelve
  6. +
+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/deleteContents-list01-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/deleteContents-list01-input.html b/Editor/tests/selection/deleteContents-list01-input.html new file mode 100644 index 0000000..0626cb3 --- /dev/null +++ b/Editor/tests/selection/deleteContents-list01-input.html @@ -0,0 +1,34 @@ + + + + + + +
    +
  1. One
  2. +
  3. Two
  4. +
  5. Three
  6. +
+
    +
  1. F[ou]r
  2. +
  3. Five
  4. +
  5. Six
  6. +
+
    +
  1. Seven
  2. +
  3. Eight
  4. +
  5. Nine
  6. +
+
    +
  1. Ten
  2. +
  3. Eleven
  4. +
  5. Twelve
  6. +
+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/deleteContents-list02-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/deleteContents-list02-expected.html b/Editor/tests/selection/deleteContents-list02-expected.html new file mode 100644 index 0000000..9333aa5 --- /dev/null +++ b/Editor/tests/selection/deleteContents-list02-expected.html @@ -0,0 +1,24 @@ + + + +
    +
  1. One
  2. +
  3. Two
  4. +
  5. Three
  6. +
+
    +
  1. Fo[]ve
  2. +
  3. Six
  4. +
+
    +
  1. Seven
  2. +
  3. Eight
  4. +
  5. Nine
  6. +
+
    +
  1. Ten
  2. +
  3. Eleven
  4. +
  5. Twelve
  6. +
+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/deleteContents-list02-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/deleteContents-list02-input.html b/Editor/tests/selection/deleteContents-list02-input.html new file mode 100644 index 0000000..838773b --- /dev/null +++ b/Editor/tests/selection/deleteContents-list02-input.html @@ -0,0 +1,34 @@ + + + + + + +
    +
  1. One
  2. +
  3. Two
  4. +
  5. Three
  6. +
+
    +
  1. Fo[ur
  2. +
  3. Fi]ve
  4. +
  5. Six
  6. +
+
    +
  1. Seven
  2. +
  3. Eight
  4. +
  5. Nine
  6. +
+
    +
  1. Ten
  2. +
  3. Eleven
  4. +
  5. Twelve
  6. +
+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/deleteContents-list03-expected.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/deleteContents-list03-expected.html b/Editor/tests/selection/deleteContents-list03-expected.html new file mode 100644 index 0000000..92a6973 --- /dev/null +++ b/Editor/tests/selection/deleteContents-list03-expected.html @@ -0,0 +1,21 @@ + + + +
    +
  1. One
  2. +
  3. Two
  4. +
  5. Three
  6. +
+
  1. Fo[]x
+
    +
  1. Seven
  2. +
  3. Eight
  4. +
  5. Nine
  6. +
+
    +
  1. Ten
  2. +
  3. Eleven
  4. +
  5. Twelve
  6. +
+ + http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/selection/deleteContents-list03-input.html ---------------------------------------------------------------------- diff --git a/Editor/tests/selection/deleteContents-list03-input.html b/Editor/tests/selection/deleteContents-list03-input.html new file mode 100644 index 0000000..2431208 --- /dev/null +++ b/Editor/tests/selection/deleteContents-list03-input.html @@ -0,0 +1,34 @@ + + + + + + +
    +
  1. One
  2. +
  3. Two
  4. +
  5. Three
  6. +
+
    +
  1. Fo[ur
  2. +
  3. Five
  4. +
  5. Si]x
  6. +
+
    +
  1. Seven
  2. +
  3. Eight
  4. +
  5. Nine
  6. +
+
    +
  1. Ten
  2. +
  3. Eleven
  4. +
  5. Twelve
  6. +
+ +