зеркало из https://github.com/mozilla/pjs.git
Bug 583885 - Fix FUEL browser_Bookmarks.js to not make bad assumption about annotations. r=sdwilsh
This commit is contained in:
Родитель
e63c8ce5d2
Коммит
03ea7e946d
|
@ -135,8 +135,10 @@ function test() {
|
||||||
|
|
||||||
// test names array - NOTE: "bookmarkProperties/description" is an annotation too
|
// test names array - NOTE: "bookmarkProperties/description" is an annotation too
|
||||||
var names = testBookmark.annotations.names;
|
var names = testBookmark.annotations.names;
|
||||||
is(names[1], "testing/bookmark/string", "Checking contents of annotation names array");
|
ok(names.some(function (f) f == "bookmarkProperties/description"), "Checking for description annotation");
|
||||||
is(names.length, 4, "Checking the annotation names array after adding 3 annotations");
|
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
|
// test adding a separator
|
||||||
var testSeparator = testFolder.addSeparator();
|
var testSeparator = testFolder.addSeparator();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче