Bug 583885 - Fix FUEL browser_Bookmarks.js to not make bad assumption about annotations. r=sdwilsh

This commit is contained in:
Justin Dolske 2010-08-02 16:02:19 -07:00
Родитель e63c8ce5d2
Коммит 03ea7e946d
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -135,8 +135,10 @@ function test() {
// test names array - NOTE: "bookmarkProperties/description" is an annotation too
var names = testBookmark.annotations.names;
is(names[1], "testing/bookmark/string", "Checking contents of annotation names array");
is(names.length, 4, "Checking the annotation names array after adding 3 annotations");
ok(names.some(function (f) f == "bookmarkProperties/description"), "Checking for description annotation");
ok(names.some(function (f) f == "testing/bookmark/string"), "Checking for string test annotation");
ok(names.some(function (f) f == "testing/bookmark/int"), "Checking for int test annotation");
ok(names.some(function (f) f == "testing/bookmark/double"), "Checking for double test annotation");
// test adding a separator
var testSeparator = testFolder.addSeparator();