From 1ecdaaa6290b37e206528e6fa24645b631e25729 Mon Sep 17 00:00:00 2001 From: "edward.lee@engineering.uiuc.edu" Date: Thu, 27 Mar 2008 09:38:42 -0700 Subject: [PATCH] Bug 425056 - Location bar matches bookmarks that do not show search matches --- .../places/tests/unit/test_multi_word_search.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/toolkit/components/places/tests/unit/test_multi_word_search.js b/toolkit/components/places/tests/unit/test_multi_word_search.js index 94b943f9585b..a8bfad3ce6ce 100644 --- a/toolkit/components/places/tests/unit/test_multi_word_search.js +++ b/toolkit/components/places/tests/unit/test_multi_word_search.js @@ -41,9 +41,11 @@ /** * Test for bug 401869 to allow multiple words separated by spaces to match in * the page title, page url, or bookmark title to be considered a match. All - * terms must match but not all terms need to be in the title, etc. Also, if - * any part of the bookmark's title matches, it should be displayed over the - * page's title. + * terms must match but not all terms need to be in the title, etc. + * + * Test bug 424216 by making sure bookmark titles are always shown if one is + * available. Also bug 425056 makes sure matches aren't found partially in the + * page title and partially in the bookmark. */ Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); @@ -242,8 +244,8 @@ let gTests = [ "b e", [[0,0],[1,1]]], ["2: Match 3 terms all in title; display bookmark title if matched", "b a z", [[1,1],[3,1]]], - ["3: Match 2 terms in url and 1 in title; bookmark title didn't match", - "k f t", [[2,0],[3,0]]], + ["3: Match 2 terms in url and 1 in title; make sure bookmark title is used for search", + "k f t", [[2,0]]], ["4: Match 3 terms in url and 1 in title", "d i g z", [[1,1]]], ["5: Match nothing",