aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorArtur Malabarba <Malabarba@users.noreply.github.com>2015-03-26 20:53:26 +0000
committerArtur Malabarba <Malabarba@users.noreply.github.com>2015-03-26 20:53:26 +0000
commiteb62c729042c55ac7335ecee807b82e3c4c7fc5b (patch)
tree1d0337b03364cfce2fd0b700d48c1200703c2e73 /test
parentce6600296875e17009e2b85c769956cde55a2d53 (diff)
parent542bcc6a8be0dc5b28bfe43d7e954f4476c7f02a (diff)
Merge pull request #257 from vermiculus/more-ordering
More ordering
Diffstat (limited to 'test')
-rw-r--r--test/test-printing.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/test-printing.el b/test/test-printing.el
index 850edd8..4c72f68 100644
--- a/test/test-printing.el
+++ b/test/test-printing.el
@@ -55,10 +55,11 @@ after being run through `sx-tag--format'."
(ert-deftest question-list-display ()
(cl-letf (((symbol-function #'sx-request-make)
(lambda (&rest _) sx-test-data-questions)))
- (sx-tab-frontpage nil "emacs")
- (switch-to-buffer "*question-list*")
+ (sx-tab-all-questions nil "emacs")
+ (switch-to-buffer sx-tab--all-questions-buffer)
(goto-char (point-min))
- (should (equal (buffer-name) "*question-list*"))
+ (should (equal (buffer-name)
+ (format "*question-list: %s *" sx-question-list--current-tab)))
(line-should-match
(question-list-regex
"Focus-hook: attenuate colours when losing focus"
@@ -69,9 +70,9 @@ after being run through `sx-tag--format'."
"Babel doesn&#39;t wrap results in verbatim"
0 1 "org-mode" "org-export" "org-babel"))
;; ;; Use this when we have a real sx-question buffer.
- ;; (call-interactively 'sx-question-list-display-question)
- ;; (should (equal (buffer-name) "*sx-question*"))
- (switch-to-buffer "*question-list*")
+ ;; (save-excursion
+ ;; (call-interactively 'sx-question-list-display-question)
+ ;; (should (equal (buffer-name) "*sx-question*")))
(sx-question-list-previous 4)
(line-should-match
(question-list-regex