It would be good to make CodeMirror more testable and add some tests, possibly using QUnit for unit tests.
|Resolved||kaldari||T101246 Highlighted wikisyntax while editing articles [AOI]|
|Resolved||MaxSem||T185030 Graduate Syntax Highlighting (CodeMirror) out of beta for non-RTL wikis on the 2010 wikitext editor|
|Open||None||T186850 Wikimedia-deployed extensions with no test coverage (tracking)|
|Resolved||MusikAnimal||T169592 Create unit tests for CodeMirror|
Maybe you mean acceptance tests? Those I think will be even harder... unless some wants to give me the rundown of the MediaWiki-way of doing it. Acceptance tests are nice because they can do some cross-browser testing, but from my experience they are slow and fragile. Here the "stream" and colouring is specified in markup produced by all those functions, so unit tests seem quite fitting.
No one has worked with QUnit? Maybe I could poke the VisualEditor folks for help.
That sounds pretty great, and perhaps better! But dunno how to do that either :(