Add tests for indexOfItem and indexOfFolder, and fix mistake in results table

This commit is contained in:
bryner%brianryner.com 2005-12-10 05:23:14 +00:00
Родитель ba8c2abfa5
Коммит 196848dc51
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -258,6 +258,12 @@ if (observer._folderMoved != workFolder ||
observer._folderMovedNewIndex != 4) { observer._folderMovedNewIndex != 4) {
dump("moveFolder notification FAILED\n"); dump("moveFolder notification FAILED\n");
} }
if (bmsvc.indexOfItem(root, uri("http://google.com/")) != 1) {
dump("indexOfItem FAILED\n");
}
if (bmsvc.indexOfFolder(root, workFolder) != 4) {
dump("indexOfFolder FAILED\n");
}
/// EXPECTED TABLE RESULTS /// EXPECTED TABLE RESULTS
/// moz_bookmarks: /// moz_bookmarks:
@ -311,8 +317,8 @@ if (observer._folderMoved != workFolder ||
/// id name /// id name
/// -- ----------------------- /// -- -----------------------
/// 1 /// 1
/// 2 Bookmarks Toolbar /// 2 Bookmarks Menu
/// 3 Bookmarks Menu /// 3 Bookmarks Toolbar
/// 4 Firefox and Mozilla Links /// 4 Firefox and Mozilla Links
/// 5 Work /// 5 Work
/// 6 Home /// 6 Home