1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/places/tests/autocomplete/test_416211.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +/* 1.9 + * Test bug 416211 to make sure results that match the tag show the bookmark 1.10 + * title instead of the page title. 1.11 + */ 1.12 + 1.13 +let theTag = "superTag"; 1.14 + 1.15 +// Define some shared uris and titles (each page needs its own uri) 1.16 +let kURIs = [ 1.17 + "http://theuri/", 1.18 +]; 1.19 +let kTitles = [ 1.20 + "Page title", 1.21 + "Bookmark title", 1.22 + theTag, 1.23 +]; 1.24 + 1.25 +// Add page with a title, bookmark, and [tags] 1.26 +addPageBook(0, 0, 1, [2]); 1.27 + 1.28 +// Provide for each test: description; search terms; array of gPages indices of 1.29 +// pages that should match; optional function to be run before the test 1.30 +let gTests = [ 1.31 + ["0: Make sure the tag match gives the bookmark title", 1.32 + theTag, [0]], 1.33 +];