help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 25.0.50.1, ert: (should (bolp)) fails in batch-mode


From: Andreas Röhler
Subject: Re: 25.0.50.1, ert: (should (bolp)) fails in batch-mode
Date: Sat, 19 Sep 2015 13:08:28 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


Am 19.09.2015 um 09:28 schrieb Eli Zaretskii:
Date: Sat, 19 Sep 2015 08:36:21 +0200

Assume test fails because

(font-lock-fontify-buffer)

doesn't work in batch-mode.

I.e. current implementation of general-close relies on face here - which should be changed.

;;;;;;;

(ert-deftest general-close-python-colon-test-2 ()
  (general-close-test-with-python-buffer
      "class TutorialApp(App):
    def build(self):
        return Button(text=\"Hello!\",
                      background_color=(0, 0, 1, 1)
                      font_size=150)
if __name__ == \"__main__\""
    (font-lock-fontify-buffer)
    (general-close)
    (should (eq (char-before) ?:))
    (should (eq 0 (current-indentation)))))

;;;;;;;

Thanks all!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]