brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

[CLOSED] Code folding unit tests #10057

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by thehogfather Wednesday Aug 12, 2015 at 13:44 GMT Originally opened as https://github.com/adobe/brackets/pull/11584


Ref: #10893 Some simple tests for code-folding. Specifically it tests the following:

  1. Gutter fold marks are rendered on startup
  2. Folding code creates a folded region in editor
  3. Expanding code clears the folded region in editor
  4. Clearing the text marker on folded region expands it and updates the fold gutter
  5. Folded lines have a folded (i.e., closed) marker in the gutter
  6. Foldable lines have a foldable (i.e., open) marker in the gutter
  7. Persistence of fold states work as expected - i.e., fold states are saved and restored when persistence is enabled
  8. Persistence of fold states can be disabled
  9. Minimum fold size is obeyed
  10. Code folding can be disabled
  11. Selecting text does not trigger fold marks when `makeSelectionsFoldable' is disabled
  12. Selecting text triggers fold marks when `makeSelectionsFoldable' is enabled
  13. Successively selecting text only triggers fold region for the last selection

thehogfather included the following code: https://github.com/adobe/brackets/pull/11584/commits

core-ai-bot commented 3 years ago

Comment by nethip Thursday Aug 13, 2015 at 07:21 GMT


@thehogfather Thanks for this PR! Really appreciate it.@abose@MarcelGerber@sprintr Would you guys mind taking a look at this PR.

core-ai-bot commented 3 years ago

Comment by abose Wednesday Oct 14, 2015 at 09:59 GMT


@thehogfather Sorry , missed this PR for the release. Could you resolve the merge conflicts?

core-ai-bot commented 3 years ago

Comment by thehogfather Thursday Oct 15, 2015 at 06:58 GMT


done.

core-ai-bot commented 3 years ago

Comment by abose Thursday Oct 15, 2015 at 07:30 GMT


Thanks@thehogfather . verified all unit tests passing. Merging.