Simple image host.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

rectangular-region.feature 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Feature: Rectangular region
  2. Scenario: Works like regular region when on one line
  3. When I insert "some text"
  4. And I press "H-SPC"
  5. And I press "M-b"
  6. Then the region should be "text"
  7. And rectangular-region-mode should be on
  8. Scenario: Works like regular region when on one line, insert
  9. Given I turn on delete-selection-mode
  10. When I insert "some text"
  11. And I press "H-SPC"
  12. And I press "M-b"
  13. And I type "replacement"
  14. Then I should see "some replacement"
  15. And rectangular-region-mode should be off
  16. Scenario: Works like regular region when on one line, copy 1
  17. Given I turn on delete-selection-mode
  18. When I insert "some text"
  19. And I press "H-SPC"
  20. And I press "M-b"
  21. And I press "M-w"
  22. Then rectangular-region-mode should be off
  23. Scenario: Works like regular region when on one line, copy 2
  24. Given I turn on delete-selection-mode
  25. When I insert "some text"
  26. And I press "H-SPC"
  27. And I press "M-b"
  28. And I press "M-w"
  29. And I press "C-y"
  30. Then I should see "some texttext"
  31. Scenario: Changing multiple lines
  32. Given I turn on delete-selection-mode
  33. When I insert:
  34. """
  35. This is some text
  36. This is more text
  37. """
  38. And I go to point "6"
  39. And I press "H-SPC"
  40. And I press "M-f"
  41. And I press "C-n"
  42. And I type "was"
  43. Then I should see:
  44. """
  45. This was some text
  46. This was more text
  47. """
  48. And I should have 2 cursors
  49. Scenario: Changing multiple lines with gaps
  50. Given I turn on delete-selection-mode
  51. When I insert:
  52. """
  53. This is some text
  54. This is more text
  55. """
  56. And I go to point "6"
  57. And I press "H-SPC"
  58. And I go to the end of the word "more"
  59. And I type "was"
  60. Then I should see:
  61. """
  62. This was text
  63. This was text
  64. """
  65. And I should have 2 cursors