1 Return-Path: <dmitry.kurochkin@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 35AEA421177
\r
6 for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 21:35:29 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id TWqizJpF+Rgf for <notmuch@notmuchmail.org>;
\r
17 Sun, 29 Jan 2012 21:35:27 -0800 (PST)
\r
18 Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com
\r
19 [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id DD4E2421175
\r
22 for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 21:35:25 -0800 (PST)
\r
23 Received: by mail-bk0-f53.google.com with SMTP id 11so1052482bke.26
\r
24 for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 21:35:25 -0800 (PST)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=from:to:subject:date:message-id:x-mailer:in-reply-to:references;
\r
27 bh=S9ZZJ8HkmcVceIZY41Z7DYkAuQcPrhWDkTitJy8lCuI=;
\r
28 b=WDNux0wwvfz+8/MTYUhzahaAwTknuedF4Y/xm4WuQsamDjiokKW40qop+HHDnRpaJ0
\r
29 81GFrAC0Ok3uYUzdtTNSEOul4Riim25AfONnaCD33VB+8SS4igbCBUZ45Ikm9IoniNTR
\r
30 4LuHaIU2c/9UO13kct9h4PTkyQuYEumWi9+7A=
\r
31 Received: by 10.204.152.75 with SMTP id f11mr7586570bkw.127.1327901725634;
\r
32 Sun, 29 Jan 2012 21:35:25 -0800 (PST)
\r
33 Received: from localhost ([91.144.186.21])
\r
34 by mx.google.com with ESMTPS id o26sm28941934bko.14.2012.01.29.21.35.24
\r
35 (version=TLSv1/SSLv3 cipher=OTHER);
\r
36 Sun, 29 Jan 2012 21:35:25 -0800 (PST)
\r
37 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
38 To: notmuch@notmuchmail.org
\r
39 Subject: [PATCH v3 05/12] test: fix emacs tests after tagging operations
\r
41 Date: Mon, 30 Jan 2012 09:33:57 +0400
\r
42 Message-Id: <1327901644-15799-6-git-send-email-dmitry.kurochkin@gmail.com>
\r
43 X-Mailer: git-send-email 1.7.8.3
\r
44 In-Reply-To: <1327901644-15799-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
45 References: <1327725684-5887-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
46 <1327901644-15799-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
47 X-BeenThere: notmuch@notmuchmail.org
\r
48 X-Mailman-Version: 2.1.13
\r
50 List-Id: "Use and development of the notmuch mail system."
\r
51 <notmuch.notmuchmail.org>
\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
55 List-Post: <mailto:notmuch@notmuchmail.org>
\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
59 X-List-Received-Date: Mon, 30 Jan 2012 05:35:29 -0000
\r
61 After the recent tagging operations changes, functions bound to "+"
\r
62 and "-" in notmuch-search and notmuch-show views always read input
\r
63 from the minibuffer. Use kbd macros instead of calling them directly.
\r
65 test/emacs | 20 ++++++++++----------
\r
66 1 files changed, 10 insertions(+), 10 deletions(-)
\r
68 diff --git a/test/emacs b/test/emacs
\r
69 index 8ca4c8a..b9c0e02 100755
\r
72 @@ -101,26 +101,26 @@ test_begin_subtest "Add tag from search view"
\r
73 os_x_darwin_thread=$(notmuch search --output=threads id:ddd65cda0911171950o4eea4389v86de9525e46052d3@mail.gmail.com)
\r
74 test_emacs "(notmuch-search \"$os_x_darwin_thread\")
\r
76 - (notmuch-search-add-tag \"tag-from-search-view\")"
\r
77 + (execute-kbd-macro \"+tag-from-search-view\")"
\r
78 output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
79 test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox tag-from-search-view unread)"
\r
81 test_begin_subtest "Remove tag from search view"
\r
82 test_emacs "(notmuch-search \"$os_x_darwin_thread\")
\r
84 - (notmuch-search-remove-tag \"tag-from-search-view\")"
\r
85 + (execute-kbd-macro \"-tag-from-search-view\")"
\r
86 output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
87 test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox unread)"
\r
89 test_begin_subtest "Add tag from notmuch-show view"
\r
90 test_emacs "(notmuch-show \"$os_x_darwin_thread\")
\r
91 - (notmuch-show-add-tag \"tag-from-show-view\")"
\r
92 + (execute-kbd-macro \"+tag-from-show-view\")"
\r
93 output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
94 test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox tag-from-show-view unread)"
\r
96 test_begin_subtest "Remove tag from notmuch-show view"
\r
97 test_emacs "(notmuch-show \"$os_x_darwin_thread\")
\r
98 - (notmuch-show-remove-tag \"tag-from-show-view\")"
\r
99 + (execute-kbd-macro \"-tag-from-show-view\")"
\r
100 output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)
\r
101 test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox unread)"
\r
103 @@ -128,14 +128,14 @@ test_begin_subtest "Message with .. in Message-Id:"
\r
104 add_message [id]=123..456@example '[subject]="Message with .. in Message-Id"'
\r
105 test_emacs '(notmuch-search "id:\"123..456@example\"")
\r
106 (notmuch-test-wait)
\r
107 - (notmuch-search-add-tag "search-add")
\r
108 - (notmuch-search-add-tag "search-remove")
\r
109 - (notmuch-search-remove-tag "search-remove")
\r
110 + (execute-kbd-macro "+search-add")
\r
111 + (execute-kbd-macro "+search-remove")
\r
112 + (execute-kbd-macro "-search-remove")
\r
113 (notmuch-show "id:\"123..456@example\"")
\r
114 (notmuch-test-wait)
\r
115 - (notmuch-show-add-tag "show-add")
\r
116 - (notmuch-show-add-tag "show-remove")
\r
117 - (notmuch-show-remove-tag "show-remove")'
\r
118 + (execute-kbd-macro "+show-add")
\r
119 + (execute-kbd-macro "+show-remove")
\r
120 + (execute-kbd-macro "-show-remove")'
\r
121 output=$(notmuch search 'id:"123..456@example"' | notmuch_search_sanitize)
\r
122 test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Message with .. in Message-Id (inbox search-add show-add)"
\r