From 72bcc0765c6accda85e7d5eb0a3cc4a68323d2ac Mon Sep 17 00:00:00 2001 From: Marco Bonardo Date: Wed, 11 Nov 2009 13:44:35 +0100 Subject: [PATCH] Fix orange in test_treeview_date.xul due to bug 519479 --- .../components/places/tests/chrome/test_treeview_date.xul | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/browser/components/places/tests/chrome/test_treeview_date.xul b/browser/components/places/tests/chrome/test_treeview_date.xul index 9acbda5fc0c..8f3f436599e 100644 --- a/browser/components/places/tests/chrome/test_treeview_date.xul +++ b/browser/components/places/tests/chrome/test_treeview_date.xul @@ -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");