Holger Rapp
72ed530746
Anonymous triggers with empty trigger string where not expanded after whitespaces.
2011-07-26 16:21:39 +02:00
Holger Rapp
b774ce8f11
Merged my new parser implementation that can handle irregular cases and is generally more flexible.
2011-07-24 19:32:48 +02:00
Holger Rapp
b91e97fa5d
Homing in on a design
2011-07-24 09:31:25 +02:00
Holger Rapp
3508ee2e51
Fixed some test cases that got wrong because of the new sorting of the snippet list
2011-07-17 13:10:36 +02:00
rygwdn@gmail.com
4e145d7f79
Added tests and a fix for bug #774923 .
2011-05-02 16:20:36 -03:00
rygwdn@gmail.com
cd375f976c
Added fix for bug #774917 .
2011-05-02 14:56:27 -03:00
rygwdn@gmail.com
e566419c91
added tests for Bug #774917
2011-05-02 14:36:00 -03:00
rygwdn@gmail.com
6b86dcae2b
added fallback for crc and ability to disable hashing on entry.
...
also disabled hashing in parsing tests to avoid having the test files
overwritten in the process.
2011-04-27 23:41:30 -03:00
Holger Rapp
eeb8dc4831
Disable vims auto-wrapping inside snippets
...
- Disable autowrapping inside of snippets
- renable it when the snippet has been completely handled
- added snippet option 'f' to avoid disabling text wrapping
- added docs and tests
2011-04-09 17:48:14 +02:00
Holger Rapp
4fe0cd4da3
Added a failing test that can not be corrected with our current parser
2011-04-01 20:12:15 +02:00
Holger Rapp
2def1b4ce1
Escaping of \ didn't work
2011-04-01 16:50:49 +02:00
Holger Rapp
1b782e1218
Compatibility changes for python 2.6, mainly for windows
2011-03-30 08:23:59 +02:00
Holger Rapp
86ae63635e
Skip a bogus test on windows
2011-03-29 07:15:31 +02:00
Holger Rapp
0f50245882
Leave initial indent of line alone, only reindent snippet definition
2011-03-29 07:02:14 +02:00
Holger Rapp
a0a2b54f52
Catch errors and show them in a scratch buffer instead of posting useless lines in the statusbar
2011-03-28 23:02:58 +02:00
Holger Rapp
db82894c02
Added a testcase for verification of a question on launchpad
2011-03-28 20:54:30 +02:00
Holger Rapp
20742d3a6c
Added a test case for bug 719649
2011-03-25 09:09:46 +01:00
Holger Rapp
7f7adc1b9e
Removed some unicode symbols that confuse windows
2011-03-25 08:27:19 +01:00
Holger Rapp
09e4b7a708
We sent the keys for testing as unicode and expect vim to write the output as utf-8.
2011-03-25 08:21:48 +01:00
Holger Rapp
cacecfc9e2
Correct encoding of test.py
2011-03-25 07:45:22 +01:00
Holger Rapp
62231439f0
More windows test case fixing action
2011-03-25 07:36:55 +01:00
Holger Rapp
52c50db0e9
ork around for testing on windows. Some systems expect a second keystroke after ` and ´.
2011-03-24 08:49:33 +01:00
Holger Rapp
066b1d2bb4
Merged Ryans fixes to test on windows
2011-03-14 21:38:40 +01:00
Holger Rapp
093a27a5b1
Do not mess with clipboard while testing. Fix by Daniel Hahler (blueyed)
2011-03-14 20:18:58 +01:00
rygwdn@gmail.com
53f3df59db
added ability to skip tests depending on platform
2011-02-28 22:41:04 -04:00
rygwdn@gmail.com
45bad8667c
try to ensure that the GVIM window is open before sending keys to it
2011-02-28 22:00:47 -04:00
rygwdn@gmail.com
da3f4077ee
merged with trunk
2011-02-28 20:49:15 -04:00
Holger Rapp
e5591e2517
Dummy commit to overwrite old tags on launchpad
2011-02-21 09:34:12 +01:00
Holger Rapp
81be10835c
Initialize output variable in tests, so that less timing errors occure. This makes testing more stable on my system
2011-02-20 23:15:04 +01:00
Holger Rapp
9eb0e5b810
Parsing ultisnips takes even longer
2011-02-20 21:22:37 +01:00
Holger Rapp
cee3b423fc
Fix some 'No such mapping' warnings which led to random test failures on my system
2011-02-20 21:18:45 +01:00
Holger Rapp
37f28fe580
Sleep a bit after sourcing widelands in tests. Increases reliability on my system
2011-02-20 21:18:25 +01:00
Holger Rapp
91520a2160
Refactored test cases
2011-02-20 20:58:43 +01:00
Holger Rapp
70ba6f0083
Added another test case that encloses the snippet
2011-02-20 20:54:16 +01:00
Holger Rapp
461e81d6a2
Added stricter test case that show the problem and implement fixes for them
2011-02-20 20:49:32 +01:00
rygwdn@gmail.com
e66d4adfda
Added initial support for testing on windows.
...
Focuses a GVim window, which is assumed to be in the ultisnips directory,
then starts sending key presses to it. Please don't change the active
window while it's running!
2011-02-20 13:11:51 -04:00
rygwdn@gmail.com
1e068f102a
Add test to ensure that anon snippets aren't added to the list of snippets.
2010-12-18 13:59:00 -04:00
rygwdn@gmail.com
98b396ff24
Fixes Bug #427676 .
...
- Adds the idea of anonymous snippets with new method on SnippetManager to expand a snippet without adding it.
- Adds two new functions for adding new snippets, and expanding anonymous snippets.
- Adds tests for the above functionality.
2010-12-18 13:07:46 -04:00
rygwdn@gmail.com
b065b5cf30
Fixes Bug #691575 .
...
Deals with the case where there are multiple matches on the line. Tries all
matches until one fits!
2010-12-17 22:38:56 -04:00
rygwdn@gmail.com
fbb339d03e
add option to not expand tabs in snippet
2010-11-22 10:14:47 -04:00
rygwdn@gmail.com
eff5ec2c66
use shiftwidth again as per bug comments
2010-11-22 09:59:06 -04:00
rygwdn@gmail.com
23924c3249
use sts instead of sw for initial tabs
2010-11-18 13:30:07 -04:00
rygwdn@gmail.com
c20c76be71
Fixes bug #676998 .
...
- Adds a new module for handling indentation to bring everything together.
- Uses shiftwidth to replace initial tabs in snippets, this is closer to
what you would get if you were to type the snippet out by hand.
- Replaces code in SnippetUtil with common class.
- Replaces the code in launch() with the common class to properly, and
consistently indent the lines.
- Changes the tests to use shiftwidth instead of tabstop as per the bug.
- Fixes the indentation in python snippets to use tabs instead of spaces.
2010-11-18 12:58:15 -04:00
Holger Rapp
13331a8aba
Fixed a bug if a snippet contains folding markers. Call normal zv (show current line) after each insertion
2010-09-23 10:49:39 +02:00
Holger Rapp
14da7e5bf9
Fixed a small typo
2010-08-22 13:57:19 +02:00
Holger Rapp
5340bb174e
New failing tests
2010-08-21 12:06:03 +02:00
Holger Rapp
5aac3f5836
Implemented a fix for select mode mappings along the lines of the suggestions by Ryan. Added tests. Documentation is still missing
2010-08-20 09:32:12 +02:00
Holger Rapp
b5fe29bc0f
Fixed a TODO and removed some which do not seem to be reasonable at this point in time
2010-08-19 14:02:03 +02:00
Holger Rapp
686bacb7a2
All TrailingNewline tests pass now. Others broke though
2010-08-19 13:35:06 +02:00
Holger Rapp
6ba2c53ffc
Added the test cases. Only commented the easiest in so far
2010-08-19 10:26:10 +02:00