Fennec - mochitest chrome failure - downloads

NEW
Unassigned

Status

Firefox for Android Graveyard
General
--
critical
9 years ago
9 years ago

People

(Reporter: dougt, Unassigned)

Tracking

(Blocks: 1 bug)

Dependency tree / graph

Details

(Reporter)

Description

9 years ago
2 failures in toolkit/mozapps/downloads/tests/chrome/test_ui_stays_open_on_alert_clickback.xul 

this is probably caused by a lack of a function in the browser named:

JavaScript error: , line 0: uncaught exception: [Exception... "'[JavaScript Error: "browser.showDownloadManager is not a function" {file: "file:///c:/builds/fen
nec/mozilla-1.9.2/objdir-win32-d/mobile/dist/bin/components/downloadManagerUI.js" line: 60}]' when calling method: [nsIDownloadManagerUI::show]"  nsresult: "0x8
0570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: chrome://mochikit/content/chrome/toolkit/mozapps/downloads/tests/chrome/test_ui_st
ays_open_on_alert_clickback.xul :: test :: line 118"  data: yes]
We have a fix for that in one of gavin's patches
(Reporter)

Comment 2

9 years ago
bug number?
(Reporter)

Updated

9 years ago
Depends on: 519354
(Reporter)

Comment 4

9 years ago
mfinkle - test still fails, but now we just close the browser window (window.close()).

Gavin - Can you take a look at the test case and advise?
How to run mochitest chrome tests in fennec?
(Reporter)

Comment 6

9 years ago
you can build fennec on the desktop, then:

cd objdir/xulrunner/_test/testing/mochitest
python runtests.py --appname=../../../../mobile/dist/bin/fennec<.exe> --xre-path=../../../dist/bin --chrome
then just search for the test case you want to run, and click on it.
You need to log in before you can comment on or make changes to this bug.