toolkit/components/places/tests/inline/test_keywords.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     3  * You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 add_autocomplete_test([
     6   "Searching for non-keyworded entry should autoFill it",
     7   "moz",
     8   "mozilla.org/",
     9   function () {
    10     addBookmark({ url: "http://mozilla.org/test/" });
    11   }
    12 ]);
    14 add_autocomplete_test([
    15   "Searching for keyworded entry should not autoFill it",
    16   "moz",
    17   "moz",
    18   function () {
    19     addBookmark({ url: "http://mozilla.org/test/", keyword: "moz" });
    20   }
    21 ]);
    23 add_autocomplete_test([
    24   "Searching for more than keyworded entry should autoFill it",
    25   "mozi",
    26   "mozilla.org/",
    27   function () {
    28     addBookmark({ url: "http://mozilla.org/test/", keyword: "moz" });
    29   }
    30 ]);
    32 add_autocomplete_test([
    33   "Searching for less than keyworded entry should autoFill it",
    34   "mo",
    35   "mozilla.org/",
    36   function () {
    37     addBookmark({ url: "http://mozilla.org/test/", keyword: "moz" });
    38   }
    39 ]);
    41 add_autocomplete_test([
    42   "Searching for keyworded entry is case-insensitive",
    43   "MoZ",
    44   "MoZ",
    45   function () {
    46     addBookmark({ url: "http://mozilla.org/test/", keyword: "moz" });
    47   }
    48 ]);

mercurial