[PATCH 3/3] test: add test for hiding/showing signature in notmuch-show view
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Sun, 22 May 2011 18:57:55 +0000 (22:57 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:18 +0000 (09:38 -0800)
a9/ac1c07956e9ab8d9a428aefe32c7063660549b [new file with mode: 0644]

diff --git a/a9/ac1c07956e9ab8d9a428aefe32c7063660549b b/a9/ac1c07956e9ab8d9a428aefe32c7063660549b
new file mode 100644 (file)
index 0000000..71c3cd6
--- /dev/null
@@ -0,0 +1,92 @@
+Return-Path: <dmitry.kurochkin@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1B2C4431FB6\r
+       for <notmuch@notmuchmail.org>; Sun, 22 May 2011 11:57:47 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id CYebLRlrr5md for <notmuch@notmuchmail.org>;\r
+       Sun, 22 May 2011 11:57:46 -0700 (PDT)\r
+Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
+       [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id B4F47429E2C\r
+       for <notmuch@notmuchmail.org>; Sun, 22 May 2011 11:57:44 -0700 (PDT)\r
+Received: by mail-fx0-f53.google.com with SMTP id 8so3802481fxm.26\r
+       for <notmuch@notmuchmail.org>; Sun, 22 May 2011 11:57:44 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer\r
+       :in-reply-to:references;\r
+       bh=gFr9vTmYXTANM2uEJanLDK2+UQDHlMxEe4ayGCwaNdA=;\r
+       b=d0+Dj7dSzzHgMBK7vuGckA6Ib+pDO8FxXk7IxisEO9tW9thNGmhdFJroBn2uAAYbUO\r
+       Z92MsLrhb9Byg/8lEMc40Wp6jWOnT37shfLqDMVKv/6u7jEAulJKvttkFgJLcROZ3Hru\r
+       obLuvoxD1CEhJjZTKrPlToydDdPuervyn1PsY=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       b=AF24Ld2YOlE3EIGQEY77kSGv1joej+ONnQeMMmvvnf7HEIN+CK0BPu96mKaT0Ftmsa\r
+       X4A+cCD2PLWtoUcypurglrzsqpRNYl3v+VxEriQLXeFsxaXXIPH4MRv0URz+g03HwH5F\r
+       t1jPhIXcMHinDH4+sdz74cl4+6CThrm/j7qWo=\r
+Received: by 10.223.92.132 with SMTP id r4mr1600021fam.142.1306090664371;\r
+       Sun, 22 May 2011 11:57:44 -0700 (PDT)\r
+Received: from localhost ([91.144.186.21])\r
+       by mx.google.com with ESMTPS id c24sm2063463fak.7.2011.05.22.11.57.43\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Sun, 22 May 2011 11:57:43 -0700 (PDT)\r
+From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 3/3] test: add test for hiding/showing signature in\r
+       notmuch-show view\r
+Date: Sun, 22 May 2011 22:57:55 +0400\r
+Message-Id: <1306090675-26982-3-git-send-email-dmitry.kurochkin@gmail.com>\r
+X-Mailer: git-send-email 1.7.5.1\r
+In-Reply-To: <1306090675-26982-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+References: <1306090675-26982-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 22 May 2011 18:57:47 -0000\r
+\r
+---\r
+ test/emacs |   11 +++++++++++\r
+ 1 files changed, 11 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/test/emacs b/test/emacs\r
+index f2983a7..ccf02af 100755\r
+--- a/test/emacs\r
++++ b/test/emacs\r
+@@ -141,4 +141,15 @@ first_line=$(echo "$expected" | head -n1)\r
+ output=$(test_emacs '(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com") (notmuch-show-view-raw-message) (princ (buffer-string))' | sed -ne "/$first_line/,\$ p")\r
+ test_expect_equal "$output" "$expected"\r
\r
++test_begin_subtest "Hiding/showing signature in notmuch-show view"\r
++maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu)\r
++output=$(test_emacs "(notmuch-show \"$maildir_storage_thread\")\r
++                   (search-forward \"Click/Enter to show.\")\r
++                   (button-activate (button-at (point)))\r
++                   (search-backward \"Click/Enter to hide.\")\r
++                   (button-activate (button-at (point)))\r
++                   (princ (buffer-string))")\r
++expected=$(cat $EXPECTED/notmuch-show-thread-maildir-storage)\r
++test_expect_equal "$output" "$expected"\r
++\r
+ test_done\r
+-- \r
+1.7.5.1\r
+\r