Fix up comments now that these tests are using the shared test logic for bug 422869

This commit is contained in:
edward.lee@engineering.uiuc.edu 2008-04-12 10:14:45 -07:00
parent 021b224e44
commit 4be378c3f4
7 changed files with 15 additions and 24 deletions

View File

@ -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]],

View File

@ -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]],

View File

@ -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]],

View File

@ -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]],

View File

@ -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]],

View File

@ -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]],

View File

@ -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]],