From: NeilBrown Date: Sun, 20 Aug 2023 06:45:54 +0000 (+1000) Subject: tests: add markup test X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=85256db681d4467e7f5596153cd03ba69cbf9178;p=edlib.git tests: add markup test This test uses the new test-markup pane. Signed-off-by: NeilBrown --- diff --git a/DOC/TODO.md b/DOC/TODO.md index cba0875e..87fc877d 100644 --- a/DOC/TODO.md +++ b/DOC/TODO.md @@ -24,14 +24,14 @@ the file. - [X] merge command 9 must ensure selection is full lines. - [X] if cursor position causes pane size to change, this doesn't propagate. -- [ ] When is left_margin used? Can I use it for hanging indent? If +- [X] When is left_margin used? Can I use it for hanging indent? If not, how do I do that? Can I tab out, set margin, tab back for text? Am I using points properly? - [X] find a better way to handle "case when EOF is at the end" of a non-empty line. - [X] as renderline changes result if cursor is present, cursor pos must ALWAYS be given. -- [ ] write test view mode that treats each line in document as markup +- [X] write test view mode that treats each line in document as markup so markup can be tested more directly. - [X] in search-replace if you repeat :A-Enter, chars get deleted - if replacement string is shorter. If longer, they get added. diff --git a/tests.d/01-markup b/tests.d/01-markup new file mode 100644 index 00000000..a6de3608 --- /dev/null +++ b/tests.d/01-markup @@ -0,0 +1,114 @@ +Display 80,30 CB3B03DAB19CF99E39369DE43D3BEF7B 1,1 +Key ":C-X" +Display 80,30 72554BDCE7C88CB96C5C31E58EEE15AB 1,1 +Key ":C-F" +Display 80,30 9D61812C8B7EBE9538925D736D82B71E 49,13 +Key "-D" +Display 80,30 4142AA4D2A3661FA8141455C54E4BA9F 50,13 +Key "-O" +Display 80,30 82011980B3C7A31148961D77DC94507C 51,13 +Key "-C" +Display 80,30 178980CAE142EF4AFE53BD1CF8C5FD95 52,13 +Key "-/" +Display 80,30 9E26F90B527F9BC498B77676FF8973D8 53,13 +Key "-e" +Display 80,30 EE86A4459D61456D82A780F8F49013EC 54,13 +Key "-x" +Display 80,30 73D2C24EC0B16E67BE8356C80C0A421A 55,13 +Key "-t" +Display 80,30 E5AB77F093F61937F66BB91CA07AB116 56,13 +Key "-r" +Display 80,30 FCF02F793F63CF984C23CF22F231B2D7 57,13 +Key "-a" +Display 80,30 8AF80A13F948F8A5E87BB2EB9586EDF7 50,13 +Key "-/" +Display 80,30 4C4168A84C8EEA12D98B3045252EFE6E 51,13 +Key "-D" +Display 80,30 10FE362DC0945AE8D48E346B49682840 52,13 +Key "--" +Display 80,30 E083C02ABF68F11567C4896273FC0A9A 53,13 +Key "-t" +Display 80,30 2329CF2B5B4F0BCACE7934A44AE31840 54,13 +Key "-e" +Display 80,30 227147F7D7F4F1FF67522F25ACDC1F79 55,13 +Key "-s" +Display 80,30 86B9054ED3FACECF8E8B1EC8E305E491 56,13 +Key "-t" +Display 80,30 5DC5F07B44FAEEFF0FD836F1A0E57ABF 57,13 +Key "--" +Display 80,30 8EBFE376FB5FA1BEA59BBCCD700340D3 50,13 +Key "-m" +Display 80,30 496783CB11E8E96286F11FDB12CDC322 51,13 +Key "-a" +Display 80,30 EB6B85D1891D31FB342F9963FAC34EF1 52,13 +Key "-r" +Display 80,30 C93BA280297D2D267FE2E63C16E14C31 53,13 +Key "-k" +Display 80,30 D79CEBFEE5E393E54E1AAA53E7B3E51A 54,13 +Key "-u" +Display 80,30 125093C7430A2BC98FFB4C0D44022F08 55,13 +Key "-p" +Display 80,30 95512B109D72A603E35EF18D54F82BB5 56,13 +Key ":Enter" +Display 80,30 055172E6AF6EB4ACCFC468789FDBEF6A 1,0 +Key ":A-x" +Display 80,30 4B219973AD90D16B9D40886FB0816468 26,13 +Key "-t" +Display 80,30 5F3B8EB8451DBF416AB3D89398816C61 27,13 +Key "-e" +Display 80,30 6C45BBE3777FBE59DAC1D2D695C22FE8 28,13 +Key "-s" +Display 80,30 DA3EF2D2B17DB020E988274360029EAC 29,13 +Key "-t" +Display 80,30 45889D375C85523B729E8C5D2F0EF48A 30,13 +Key ":Tab" +Display 80,30 6C94956491F202D6EE7CE32BE609C97A 37,13 +Key ":Enter" +Display 80,30 F16D66F00816A2B9A11D20AB5C937CAB 25,3 +Key ":A->" +Display 80,30 A4F82F98E3242803C1945B069F2A7EB3 1,25 +Key ":C-P" +Display 80,30 4883D05F42E7977C3316B205198C82CD 1,24 +Key ":C-P" +Display 80,30 083AC82316484E0090ED83108CB0D62F 21,19 +Key ":C-S" +Display 80,30 0317E98A046BE36B5CC944710B4896E6 50,0 +Key "-r" +Display 80,30 B1A9760466E3EE84F46033F1C1A3E93F 51,0 +Key "-e" +Display 80,30 9A105BF0D46F002E5D8D5C0EB45EC751 52,0 +Key "-g" +Display 80,30 CC0A3CD5CE55E85D03338BA4614BC719 53,0 +Key "-i" +Display 80,30 FE764A0BFDA1EDAD36DA8F6232418EDD 54,0 +Key "-o" +Display 80,30 39FB29BECA2D077FFA8C123CC65B7B88 55,0 +Key "-n" +Display 80,30 465872FB2F1E87FD89EA8876A60A7132 56,0 +Key ":Enter" +Display 80,30 6DF62EC0C50EE886FBA0506556E62AF0 21,21 +Key ":C-F" +Display 80,30 083AC82316484E0090ED83108CB0D62F 21,21 +Key ":C-F" +Display 80,30 083AC82316484E0090ED83108CB0D62F 21,21 +Key ":C-F" +Display 80,30 083AC82316484E0090ED83108CB0D62F 21,21 +Key ":C-F" +Display 80,30 083AC82316484E0090ED83108CB0D62F 22,21 +Key ":C-B" +Display 80,30 083AC82316484E0090ED83108CB0D62F 21,21 +Key ":C-B" +Display 80,30 083AC82316484E0090ED83108CB0D62F 21,21 +Key ":C-B" +Display 80,30 083AC82316484E0090ED83108CB0D62F 21,21 +Key ":C-B" +Display 80,30 6DF62EC0C50EE886FBA0506556E62AF0 21,21 +Key ":C-B" +Display 80,30 6DF62EC0C50EE886FBA0506556E62AF0 30,20 +Key ":C-B" +Display 80,30 6DF62EC0C50EE886FBA0506556E62AF0 29,20 +Key ":C-X" +Display 80,30 B4FF6D7C1A70FAB07598405F0B9C2231 29,20 +Key ":C-C" +Display 80,30 6DF62EC0C50EE886FBA0506556E62AF0 29,20 +Close 233 diff --git a/tests.d/D-test-markup b/tests.d/D-test-markup index 635a1773..d658e8a0 100644 --- a/tests.d/D-test-markup +++ b/tests.d/D-test-markup @@ -1,8 +1,18 @@ -This is my test file for markup +This is my test file for markup Now is the time for all good men to come to the aid of the party -,wrap-,right:300,left:70>Now is the time for all good men to come to the aid of the party +,wrap-,right:300,left:70>Now is the time for all good men to come to the aid of the party LEFTMIDDLERIGHT This is a line that should wrap to form a paragraph with hanging indent + +There are several ways to spell: +ctab +
center +centre + +Double spaced text should be easy enough to achieve + +If some text is marked as a wrap region and it if wraps then it only appears when cursor is on it. +