From 196848dc51f742a9a604c84f8eca4c3867991b46 Mon Sep 17 00:00:00 2001 From: "bryner%brianryner.com" Date: Sat, 10 Dec 2005 05:23:14 +0000 Subject: [PATCH] Add tests for indexOfItem and indexOfFolder, and fix mistake in results table --- browser/components/places/tests/testbookmarks.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/browser/components/places/tests/testbookmarks.js b/browser/components/places/tests/testbookmarks.js index 53e3cc7200a..835360f233a 100755 --- a/browser/components/places/tests/testbookmarks.js +++ b/browser/components/places/tests/testbookmarks.js @@ -258,6 +258,12 @@ if (observer._folderMoved != workFolder || observer._folderMovedNewIndex != 4) { 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 /// moz_bookmarks: @@ -311,8 +317,8 @@ if (observer._folderMoved != workFolder || /// id name /// -- ----------------------- /// 1 -/// 2 Bookmarks Toolbar -/// 3 Bookmarks Menu +/// 2 Bookmarks Menu +/// 3 Bookmarks Toolbar /// 4 Firefox and Mozilla Links /// 5 Work /// 6 Home