Community
Participate
Working Groups
We already have some test cases for testing the internal diff parser. The inputs of the tests are strings of old content, new content and unified diff. The out put is a list of mappers to control the rendering of the diff blocks in both inline and side-by-side compare editor. To use one of the jsDIff APIS, createPatch, we need to pass all the unit tests. we will still use the old and new contents in the test data but the unified diff will be generated by jsDiff.
Simon, I talked about removing the "loop" pattern in my test cases. But it seems I have to keep this pattern in order to share the test data for both compare and jsDiff tests.
fixed with 640358f866b010cececa2e9b9779e5be2ac01ad9 I had to skip some cases for js diff only. var jsDiffSkip = [23,29,37,39,40,41,42,43,44,49]; Will look at them later.