Fix orange in test_treeview_date.xul due to bug 519479

This commit is contained in:
Marco Bonardo 2009-11-11 13:44:35 +01:00
Родитель b4f660f033
Коммит 72bcc0765c
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -156,7 +156,11 @@
var text = treeView.getCellText(r, c);
switch (c.element.getAttribute("anonid")) {
case "title":
is(text, node.title, "Title is correct");
// The title can differ, we did not set any title so we would
// expect null, but in such a case the view will generate a title
// through PlacesUIUtils.getBestTitle.
if (node.title)
is(text, node.title, "Title is correct");
break;
case "url":
is(text, node.uri, "Uri is correct");