Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 79CBF431FD0 for ; Sat, 2 Jul 2011 21:28:16 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qBNvOxRy9B30 for ; Sat, 2 Jul 2011 21:28:16 -0700 (PDT) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id CCBFE431FB6 for ; Sat, 2 Jul 2011 21:28:15 -0700 (PDT) Received: by bwg12 with SMTP id 12so3982009bwg.26 for ; Sat, 02 Jul 2011 21:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=/VF1ELdqs5eSA9zM5yGei7WA9f0nSgkB60qcm7SSYNg=; b=vROY6LzBfIDdz+aS6TLC1XdnVmHvqZMkcjpdUk3CqXm5sbuMQQbZMb8eNfoYRU49Ir NBRdITSNkkiLgdCPDiTt/Jn0nca4pEX9UoYyS7wRf4XkYGSMBqliWcIAycqYFAR41c/K +dA7qHPW5WmW1pklm7xFoIz6MnXSVTiIsCwQ4= Received: by 10.204.141.205 with SMTP id n13mr885259bku.198.1309667294180; Sat, 02 Jul 2011 21:28:14 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id k16sm4379288bks.13.2011.07.02.21.28.12 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 02 Jul 2011 21:28:13 -0700 (PDT) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH 1/2] test: add emacs test for hiding message when point is at invisible text Date: Sun, 3 Jul 2011 08:28:05 +0400 Message-Id: <1309667286-10357-1-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.5.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2011 04:28:16 -0000 Human-friendly scenario: * open a thread which has at least 2 messages in notmuch-show view * hide the first message * move to the first line of the second message * press C-a (bound to `beginning-of-visual-line') * press RET (bound to `notmuch-show-toggle-message') Result: the first message is shown Expected result: the second message is hidden or shown Currently the test is failing. The bug will be fixed by a subsequent patch. --- test/emacs | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/test/emacs b/test/emacs index 53f455a..173d371 100755 --- a/test/emacs +++ b/test/emacs @@ -347,4 +347,15 @@ test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail. (test-visible-output)' test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-with-hidden-messages +test_begin_subtest 'Hiding message when point is at invisible text' +test_emacs '(notmuch-show "id:1258471718-6781-2-git-send-email-dottedmag@dottedmag.net") + (notmuch-show-toggle-message) + (test-visible-output "EXPECTED") + (notmuch-show-toggle-message) + (goto-char (previous-single-char-property-change + (point) '\''invisible)) + (notmuch-show-toggle-message) + (test-visible-output)' +test_expect_equal_file OUTPUT EXPECTED + test_done -- 1.7.5.4