Simple image host.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mark-things.feature 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. Feature: Mark things
  2. Scenario: Mark all symbols like this with select
  3. Given I turn on emacs-lisp-mode
  4. And I turn on delete-selection-mode
  5. And I insert:
  6. """
  7. (defun abc (ghi) (message ghi))
  8. (defun def (ghi) (message some-other-ghi))
  9. """
  10. When I select "ghi"
  11. And I mark all symbols like this
  12. And I type "hmm"
  13. Then I should see:
  14. """
  15. (defun abc (hmm) (message hmm))
  16. (defun def (hmm) (message some-other-ghi))
  17. """
  18. Scenario: Mark all words like this with select
  19. Given I turn on emacs-lisp-mode
  20. And I turn on delete-selection-mode
  21. And I insert:
  22. """
  23. (defun abc (ghi) (message ghi))
  24. (defun def (ghi) (message some-other-ghi))
  25. """
  26. When I select "ghi"
  27. And I mark all words like this
  28. And I type "hmm"
  29. Then I should see:
  30. """
  31. (defun abc (hmm) (message hmm))
  32. (defun def (hmm) (message some-other-hmm))
  33. """
  34. Scenario: Mark all symbols like this in defun with select
  35. Given I turn on emacs-lisp-mode
  36. And I turn on delete-selection-mode
  37. And I insert:
  38. """
  39. (defun abc (ghi) (message ghi))
  40. (defun def (ghi) (message some-other-ghi))
  41. """
  42. When I select "ghi"
  43. And I mark all symbols like this in defun
  44. And I type "hmm"
  45. Then I should see:
  46. """
  47. (defun abc (hmm) (message hmm))
  48. (defun def (ghi) (message some-other-ghi))
  49. """
  50. Scenario: Mark all words like this in defun with select
  51. Given I turn on emacs-lisp-mode
  52. And I turn on delete-selection-mode
  53. And I insert:
  54. """
  55. (defun abc (ghi) (message ghi))
  56. (defun def (ghi) (message some-other-ghi))
  57. """
  58. When I select "ghi"
  59. And I mark all words like this in defun
  60. And I type "hmm"
  61. Then I should see:
  62. """
  63. (defun abc (hmm) (message hmm))
  64. (defun def (ghi) (message some-other-ghi))
  65. """
  66. Scenario: Mark all symbols like this with no select
  67. Given I turn on emacs-lisp-mode
  68. And I turn on delete-selection-mode
  69. And I insert:
  70. """
  71. (defun abc (ghi) (message ghi))
  72. (defun def (ghi) (message some-other-ghi))
  73. """
  74. When I go to word "ghi"
  75. And I mark all symbols like this
  76. And I type "hmm"
  77. Then I should see:
  78. """
  79. (defun abc (hmm) (message hmm))
  80. (defun def (hmm) (message some-other-ghi))
  81. """
  82. Scenario: Mark all words like this with no select
  83. Given I turn on emacs-lisp-mode
  84. And I turn on delete-selection-mode
  85. And I insert:
  86. """
  87. (defun abc (ghi) (message ghi))
  88. (defun def (ghi) (message some-other-ghi))
  89. """
  90. When I go to word "ghi"
  91. And I mark all words like this
  92. And I type "hmm"
  93. Then I should see:
  94. """
  95. (defun abc (hmm) (message hmm))
  96. (defun def (hmm) (message some-other-hmm))
  97. """
  98. Scenario: Mark all symbols like this in defun with no select
  99. Given I turn on emacs-lisp-mode
  100. And I turn on delete-selection-mode
  101. And I insert:
  102. """
  103. (defun abc (ghi) (message ghi))
  104. (defun def (ghi) (message some-other-ghi))
  105. """
  106. When I go to word "ghi"
  107. And I mark all symbols like this in defun
  108. And I type "hmm"
  109. Then I should see:
  110. """
  111. (defun abc (hmm) (message hmm))
  112. (defun def (ghi) (message some-other-ghi))
  113. """
  114. Scenario: Mark all words like this in defun with no select
  115. Given I turn on emacs-lisp-mode
  116. And I turn on delete-selection-mode
  117. And I insert:
  118. """
  119. (defun abc (ghi) (message ghi))
  120. (defun def (ghi) (message some-other-ghi))
  121. """
  122. When I go to word "ghi"
  123. And I mark all words like this in defun
  124. And I type "hmm"
  125. Then I should see:
  126. """
  127. (defun abc (hmm) (message hmm))
  128. (defun def (ghi) (message some-other-ghi))
  129. """