Ver código fonte

test-org: Fix a broken test

* testing/lisp/test-org.el (test-org-export/fuzzy-links): Fix the "No
  link found" error.
Nicolas Goaziou 13 anos atrás
pai
commit
aa5db9dd65
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      testing/lisp/test-org.el

+ 2 - 2
testing/lisp/test-org.el

@@ -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.