This document contains a simple preliminary description of
testcases on Bookmarks interface of Webclient API.
| Test ID | Action | Expected Result |
| basic/api/History_addBookmark:0 | Method addBookmark() invoked and try to add to Bookmarks new Leaf with correct String | Mozilla doesn't crashes and added one leaf to Bookmarks |
| basic/api/History_addBookmark:1 | Method addBookmark() invoked and try to add to Bookmarks new folder with correct String | Mozilla doesn't crashes and added one folder to Bookmarks |
| basic/api/History_addBookmark:2 | Method addBookmark() invoked and try to add to Bookmarks new Leaf with name=null | Mozilla doesn't crashes and added one leaf to Bookmarks |
| basic/api/History_addBookmark:3 | Method addBookmark() invoked and try to add to Bookmarks new folder with name=null | Mozilla doesn't crashes and added one folder to Bookmarks |
| basic/api/History_addBookmark:4 | Method addBookmark() invoked and try to add to Bookmarks new Leaf with name="" | Mozilla doesn't crashes and added one leaf to Bookmarks |
| basic/api/History_addBookmark:5 | Method addBookmark() invoked and try to add to Bookmarks new folder with name="" | Mozilla doesn't crashes and added one folder to Bookmarks |
| Test ID | Action | Expected Result |
| basic/api/History_newBookmarkEntry:0 | Method newBookmarkEntry(String) invoked with correct url string | Mozilla doesn't crashes and creates a new bookmark leaf with correct URL |
| basic/api/History_newBookmarkEntry:1 | Method newBookmarkEntry(String) invoked with string == null | Mozilla doesn't crashes and creates a new bookmark leaf with URL==null |
| basic/api/History_newBookmarkEntry:2 | Method newBookmarkEntry(String) invoked with empty url string | Mozilla doesn't crashes and creates a new bookmark leaf with empty URL |
| Test ID | Action | Expected Result |
| basic/api/History_newBookmarkFolder:0 | Method newBookmarkFolder(String) invoked with correctly formed string | Mozilla doesn't crashes and creates a new bookmark folder with name == string |
| basic/api/History_newBookmarkFolder:1 | Method newBookmarkFolder(String) invoked with string == null | Mozilla doesn't crashes and creates a new bookmark folder with name == null |
| basic/api/History_newBookmarkFolder:2 | Method newBookmarkFolder(String) invoked with empty string | Mozilla doesn't crashes and creates a new bookmark folder with name == emplty string |
| Test ID | Action | Expected Result |
| basic/api/History_removeBookmark:0 | Method removeBookmark(BookmarkEntry) invoked when BookmarkEntry is null | Mozilla doesn't crashes and remove leaf BookmarkEntry from Bookamarks |
| basic/api/History_removeBookmark:1 | Method removeBookmark(BookmarkEntry) invoked when BookmarkEntry is correct entry from TreeModel | Mozilla doesn't crashes and remove folder BookmarkEntry from Bookamarks |
| basic/api/History_removeBookmark:2 | Method removeBookmark(BookmarkEntry) invoked when BookmarkEntry is unexist in TreeModel | Mozilla doesn't crashes and remove folder BookmarkEntry from Bookamarks |