Bug: Intermittent [tier 2] TV-fis browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | Context menu has the expected number of items - Got +0, expected 9
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-10-21 20:23:20+00:00
Resolved: 2022-02-15 17:04:09+00:00

**Filed by:** mlaza [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=355625631&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/KEdP_6cCS8yJJeDMnj7R-w/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/KEdP_6cCS8yJJeDMnj7R-w/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2021-10-21T17:11:40.023Z] 17:11:40     INFO - TEST-START | browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js
[task 2021-10-21T17:11:40.537Z] 17:11:40     INFO - TEST-INFO | started process screentopng
[task 2021-10-21T17:11:41.169Z] 17:11:41     INFO - TEST-INFO | screentopng: exit 0
[task 2021-10-21T17:11:41.169Z] 17:11:41     INFO - Buffered messages logged at 17:11:40
[task 2021-10-21T17:11:41.171Z] 17:11:41     INFO - Entering test bound test_setUp
[task 2021-10-21T17:11:41.171Z] 17:11:41     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | At the start of the test, there should be 0 downloads - 
[task 2021-10-21T17:11:41.171Z] 17:11:41     INFO - Created download directory: /tmp/Temp-fb55a396-0368-4e4d-990c-41c36142ec1b/testsavedir3396425349
[task 2021-10-21T17:11:41.172Z] 17:11:41     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | Created /tmp/Temp-fb55a396-0368-4e4d-990c-41c36142ec1b/testsavedir3396425349/downloaded.pdf - 
[task 2021-10-21T17:11:41.172Z] 17:11:41     INFO - Created downloaded PDF file at:/tmp/Temp-fb55a396-0368-4e4d-990c-41c36142ec1b/testsavedir3396425349/downloaded.pdf
[task 2021-10-21T17:11:41.172Z] 17:11:41     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | Created /tmp/Temp-fb55a396-0368-4e4d-990c-41c36142ec1b/testsavedir3396425349/downloaded.txt - 
[task 2021-10-21T17:11:41.173Z] 17:11:41     INFO - Created downloaded text file at:/tmp/Temp-fb55a396-0368-4e4d-990c-41c36142ec1b/testsavedir3396425349/downloaded.txt
[task 2021-10-21T17:11:41.174Z] 17:11:41     INFO - Leaving test bound test_setUp
[task 2021-10-21T17:11:41.174Z] 17:11:41     INFO - Entering test bound Completed PDF download with improvements pref disabled
[task 2021-10-21T17:11:41.175Z] 17:11:41     INFO - Setting browser.download.improvements_to_download_panel to false
[task 2021-10-21T17:11:41.176Z] 17:11:41     INFO - {"state":1,"contentType":"application/pdf","target":{}}
[task 2021-10-21T17:11:41.176Z] 17:11:41     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | download target is a nsIFile - 
[task 2021-10-21T17:11:41.177Z] 17:11:41     INFO - Download succeeded? true
[task 2021-10-21T17:11:41.178Z] 17:11:41     INFO - Download target exists? true
[task 2021-10-21T17:11:41.179Z] 17:11:41     INFO - trigger the context menu
[task 2021-10-21T17:11:41.179Z] 17:11:41     INFO - context menu should be open, verify its menu items
[task 2021-10-21T17:11:41.180Z] 17:11:41     INFO - Got actual context menu items: 
[task 2021-10-21T17:11:41.181Z] 17:11:41     INFO - 
[task 2021-10-21T17:11:41.182Z] 17:11:41     INFO - Buffered messages finished
[task 2021-10-21T17:11:41.182Z] 17:11:41     INFO - TEST-UNEXPECTED-FAIL | browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | Context menu has the expected number of items - Got +0, expected 9
[task 2021-10-21T17:11:41.183Z] 17:11:41     INFO - Stack trace:
[task 2021-10-21T17:11:41.184Z] 17:11:41     INFO - chrome://mochikit/content/browser-test.js:test_is:1364
[task 2021-10-21T17:11:41.185Z] 17:11:41     INFO - chrome://mochitests/content/browser/browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js:verifyContextMenu:306
[task 2021-10-21T17:11:41.185Z] 17:11:41     INFO - chrome://mochitests/content/browser/browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js:testDownloadContextMenu:271
[task 2021-10-21T17:11:41.186Z] 17:11:41     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | Expected no errors verifying context menu items - 
[task 2021-10-21T17:11:41.187Z] 17:11:41     INFO - Leaving test bound Completed PDF download with improvements pref disabled
[task 2021-10-21T17:11:41.189Z] 17:11:41     INFO - Entering test bound Canceled PDF download with improvements pref disabled
[task 2021-10-21T17:11:41.190Z] 17:11:41     INFO - Setting browser.download.improvements_to_download_panel to false
[task 2021-10-21T17:11:41.191Z] 17:11:41     INFO - {"state":3,"contentType":"application/pdf","target":{}}
[task 2021-10-21T17:11:41.191Z] 17:11:41     INFO - Download succeeded? false
[task 2021-10-21T17:11:41.192Z] 17:11:41     INFO - Download target exists? false
[task 2021-10-21T17:11:41.193Z] 17:11:41     INFO - trigger the context menu
[task 2021-10-21T17:11:41.193Z] 17:11:41     INFO - context menu should be open, verify its menu items
[task 2021-10-21T17:11:41.194Z] 17:11:41     INFO - Got actual context menu items: 
[task 2021-10-21T17:11:41.195Z] 17:11:41     INFO - Go To Download Page (downloadsCmd_openReferrer)
[task 2021-10-21T17:11:41.196Z] 17:11:41     INFO - Copy Download Link (downloadsCmd_copyLocation)
[task 2021-10-21T17:11:41.197Z] 17:11:41     INFO - ---
[task 2021-10-21T17:11:41.197Z] 17:11:41     INFO - Remove From History (cmd_delete)
[task 2021-10-21T17:11:41.198Z] 17:11:41     INFO - Clear Preview Panel (downloadsCmd_clearList)
[task 2021-10-21T17:11:41.202Z] 17:11:41     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | Context menu has the expected number of items - 
```