diff --git a/browser/components/downloads/test/browser/browser_basic_functionality.js b/browser/components/downloads/test/browser/browser_basic_functionality.js index 56e71a415077..564a344a7c91 100644 --- a/browser/components/downloads/test/browser/browser_basic_functionality.js +++ b/browser/components/downloads/test/browser/browser_basic_functionality.js @@ -49,7 +49,7 @@ add_task(function* test_basic_functionality() { let itemCount = richlistbox.children.length; for (let i = 0; i < itemCount; i++) { let element = richlistbox.children[itemCount - i - 1]; - let download = DownloadsView.controllerForElement(element).download; + let download = DownloadsView.itemForElement(element).download; is(DownloadsCommon.stateOfDownload(download), DownloadData[i].state, "Download states match up"); }