test-org: Fix a broken test

* testing/lisp/test-org.el (test-org-export/fuzzy-links): Fix the "No
  link found" error.
This commit is contained in:
Nicolas Goaziou 2012-03-02 15:14:23 +01:00
parent b65725e039
commit aa5db9dd65
1 changed files with 2 additions and 2 deletions

View File

@ -103,13 +103,13 @@ http://article.gmane.org/gmane.emacs.orgmode/21459/"
;; 1. Fuzzy link goes in priority to a matching target.
(org-test-with-temp-text
"#+TARGET: Test\n#+NAME: Test\n|a|b|\n<<Test>>\n* Test\n[[Test]]"
(goto-line 4)
(goto-line 6)
(org-open-at-point)
(should (looking-at "<<Test>>")))
;; 2. Fuzzy link should then go to a matching target keyword.
(org-test-with-temp-text
"#+NAME: Test\n|a|b|\n#+TARGET: Test\n* Test\n[[Test]]"
(goto-line 4)
(goto-line 5)
(org-open-at-point)
(should (looking-at "#\\+TARGET: Test")))
;; 3. Then fuzzy link points to an element with a given name.