mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix up comments now that these tests are using the shared test logic for bug 422869
This commit is contained in:
parent
021b224e44
commit
4be378c3f4
@ -51,12 +51,11 @@ let kTitles = [
|
||||
theTag,
|
||||
];
|
||||
|
||||
// Add page with a title, bookmark, and tag
|
||||
// Add page with a title, bookmark, and [tags]
|
||||
addPageBook(0, 0, 1, [2]);
|
||||
|
||||
// For each test, provide a title, the search terms, and an array of
|
||||
// [uri,title] indices of the pages that should be returned, followed by an
|
||||
// optional function
|
||||
// Provide for each test: description; search terms; array of gPages indices of
|
||||
// pages that should match; optional function to be run before the test
|
||||
let gTests = [
|
||||
["0: Make sure the tag match gives the bookmark title",
|
||||
theTag, [0]],
|
||||
|
@ -63,9 +63,8 @@ let kTitles = [
|
||||
addPageBook(0, 0, 0, [1]);
|
||||
addPageBook(1, 0, 0, [1]);
|
||||
|
||||
// For each test, provide a title, the search terms, and an array of
|
||||
// [uri,title] indices of the pages that should be returned, followed by an
|
||||
// optional function
|
||||
// Provide for each test: description; search terms; array of gPages indices of
|
||||
// pages that should match; optional function to be run before the test
|
||||
let gTests = [
|
||||
["0: Make sure tag matches return the right url as well as '+' remain escaped",
|
||||
theTag, [0,1]],
|
||||
|
@ -51,9 +51,8 @@ let kTitles = [
|
||||
addPageBook(0, 0); // regular url
|
||||
addPageBook(1, 0); // javascript: uri
|
||||
|
||||
// For each test, provide a title, the search terms, and an array of
|
||||
// [uri,title] indices of the pages that should be returned, followed by an
|
||||
// optional function
|
||||
// Provide for each test: description; search terms; array of gPages indices of
|
||||
// pages that should match; optional function to be run before the test
|
||||
let gTests = [
|
||||
["0: Match non-javascript: with plain search",
|
||||
"a", [0]],
|
||||
|
@ -59,10 +59,8 @@ addPageBook(1, 0, 0, [0,1]);
|
||||
addPageBook(2, 0, 0, [0,2]);
|
||||
addPageBook(3, 0, 0, [0,1,2]);
|
||||
|
||||
// For each test, provide a title, the search terms, and an array of uri
|
||||
// indices of the pages that should be returned, followed by an optional
|
||||
// function. The uris can be in any order, but must be an index created by
|
||||
// addPageBook or placed manually into gPages.
|
||||
// Provide for each test: description; search terms; array of gPages indices of
|
||||
// pages that should match; optional function to be run before the test
|
||||
let gTests = [
|
||||
["0: Make sure tags come back in the title when matching tags",
|
||||
"page1 tag", [0]],
|
||||
|
@ -49,9 +49,8 @@ let kTitles = [
|
||||
|
||||
addPageBook(0, 0);
|
||||
|
||||
// For each test, provide a title, the search terms, and an array of
|
||||
// [uri,title] indices of the pages that should be returned, followed by an
|
||||
// optional function
|
||||
// Provide for each test: description; search terms; array of gPages indices of
|
||||
// pages that should match; optional function to be run before the test
|
||||
let gTests = [
|
||||
["0: Bad escaped uri stays escaped",
|
||||
"site", [0]],
|
||||
|
@ -63,9 +63,8 @@ addPageBook(1, 1);
|
||||
addPageBook(2, 0, 0);
|
||||
addPageBook(3, 0, 1);
|
||||
|
||||
// For each test, provide a title, the search terms, and an array of
|
||||
// [uri,title] indices of the pages that should be returned, followed by an
|
||||
// optional function
|
||||
// Provide for each test: description; search terms; array of gPages indices of
|
||||
// pages that should match; optional function to be run before the test
|
||||
let gTests = [
|
||||
["0: Match 2 terms all in url",
|
||||
"c d", [0]],
|
||||
|
@ -82,10 +82,8 @@ addPageBook(8, 5);
|
||||
// CamelCase
|
||||
addPageBook(9, 0);
|
||||
|
||||
// For each test, provide a title, the search terms, and an array of uri
|
||||
// indices of the pages that should be returned, followed by an optional
|
||||
// function. The uris can be in any order, but must be an index created by
|
||||
// addPageBook or placed manually into gPages.
|
||||
// Provide for each test: description; search terms; array of gPages indices of
|
||||
// pages that should match; optional function to be run before the test
|
||||
let gTests = [
|
||||
["0: Match 'match' at the beginning or after / or on a CamelCase",
|
||||
"match", [0,2,4,9]],
|
||||
|
Loading…
Reference in New Issue
Block a user