зеркало из https://github.com/mozilla/pjs.git
Add tests for indexOfItem and indexOfFolder, and fix mistake in results table
This commit is contained in:
Родитель
ba8c2abfa5
Коммит
196848dc51
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче