Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Karl Fogel
org-mode
Commits
099b6f0f
Commit
099b6f0f
authored
Apr 22, 2014
by
Bastien Guerry
Browse files
test-org.el: Fix test
* test-org.el (test-org/insert-todo-heading-respect-content): Fix test.
parent
fdb4b54e
Changes
1
Hide whitespace changes
Inline
Side-by-side
testing/lisp/test-org.el
View file @
099b6f0f
...
...
@@ -414,15 +414,12 @@
(
org-test-with-temp-text
"* H1\n Body"
(
org-insert-todo-heading-respect-content
)
(
nth
2
(
org-heading-components
))))
;; Add headline a
fter body of curren
t subtree
.
;; Add headline a
t the end of the firs
t subtree
(
should
(
org-test-with-temp-text
"* H1\nBody"
(
org-test-with-temp-text
"* H1\nH1Body\n** H2\nH2Body"
(
search-forward
"H1Body"
)
(
org-insert-todo-heading-respect-content
)
(
eobp
)))
(
should
(
org-test-with-temp-text
"* H1\n** H2\nBody"
(
org-insert-todo-heading-respect-content
)
(
eobp
)))
(
and
(
eobp
)
(
org-at-heading-p
))))
;; In a list, do not create a new item.
(
should
(
org-test-with-temp-text
"* H\n- an item\n- another one"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment