stable
Clone or download
Read-only
part of request #29602 Migrate pullrequest file-diffs to TypeScript This refactoring simplifies the writing of unit tests where FileLineHandles are manipulated (e.g almost everywhere) Now we can build stubbed handles containing FileDiffWidgets of any kind, or not with their own heights. -- No functional changes expected -- CI should be happy Change-Id: I273522c5e9eb5c53a5496f6c63730c4f22af21e5
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/pullrequest/scripts/pullrequests-app/src/app/file-diff/diff-modes/side-by-side-code-placeholder-builder.test.js | +13 | −12 | Go to diff View file |
M | plugins/pullrequest/scripts/pullrequests-app/src/app/file-diff/diff-modes/side-by-side-comment-placeholder-builder.test.js | +37 | −38 | Go to diff View file |
M | plugins/pullrequest/scripts/pullrequests-app/src/app/file-diff/diff-modes/side-by-side-comment-placeholder-widget-finder.test.ts | +8 | −18 | Go to diff View file |
M | plugins/pullrequest/scripts/pullrequests-app/src/app/file-diff/diff-modes/side-by-side-line-height-equalizer.test.js | +39 | −99 | Go to diff View file |
M | plugins/pullrequest/scripts/pullrequests-app/src/app/file-diff/diff-modes/side-by-side-line-widgets-helper.test.ts | +17 | −11 | Go to diff View file |
M | plugins/pullrequest/scripts/pullrequests-app/src/app/file-diff/diff-modes/side-by-side-lines-state.test.js | +9 | −8 | Go to diff View file |
M | plugins/pullrequest/scripts/pullrequests-app/src/app/file-diff/diff-modes/side-by-side-placeholder-positioner.test.js | +3 | −2 | Go to diff View file |
M | plugins/pullrequest/scripts/pullrequests-app/src/app/file-diff/diff-modes/types-codemirror-overriden.ts | +11 | −2 | Go to diff View file |
A | plugins/pullrequest/scripts/pullrequests-app/tests/stubs/FileLineHandleStub.ts | +60 | −0 | Go to diff View file |