Bug 1117145 - Part 6 - Fix browser_basic_functionality.js. r=jaws
authorPaolo Amadini <paolo.mozmail@amadzone.org>
Mon, 29 Feb 2016 16:23:41 +0000
changeset 322351 3b3428c04743ca6da4472583dc809ae78cd3a5db
parent 322350 45f9877d7c4ae7977ce0de57f7579a5aff640e7a
child 322352 557f7ef0273a32917355cc0f42956efbe4465f20
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1117145
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1117145 - Part 6 - Fix browser_basic_functionality.js. r=jaws
browser/components/downloads/test/browser/browser_basic_functionality.js
--- a/browser/components/downloads/test/browser/browser_basic_functionality.js
+++ b/browser/components/downloads/test/browser/browser_basic_functionality.js
@@ -44,13 +44,13 @@ add_task(function* test_basic_functional
   let richlistbox = document.getElementById("downloadsListBox");
   /* disabled for failing intermittently (bug 767828)
     is(richlistbox.children.length, DownloadData.length,
        "There is the correct number of richlistitems");
   */
   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");
   }
 });