Opened on 12/04/2015 at 09:52:33 PM
Closed on 11/10/2017 at 11:15:18 AM
#3381 closed defect (rejected)
notification unit tests are broken
Reported by: | erikvold | Assignee: | erikvold |
---|---|---|---|
Priority: | P4 | Milestone: | |
Module: | Adblock-Plus-for-Firefox | Keywords: | |
Cc: | trev | Blocked By: | |
Blocking: | Platform: | Firefox | |
Ready: | yes | Confidential: | no |
Tester: | Unknown | Verified working: | no |
Review URL(s): |
Description (last modified by trev)
Environment
OSX, Firefox Nighty 45.0a1 (2015-12-04)
How to reproduce
Run notification unit tests
Observed behaviour
All of the tests in this suite appear to fail due to the beforeEach function:
beforeEach failed on No data: NotificationModule.downloader is undefined@ 1 ms Source: .setup/<@chrome://adblockplustests/content/tests/notification.js:33:9 setupVirtualTime@chrome://adblockplustests/content/common.js:157:5 .setup@chrome://adblockplustests/content/tests/notification.js:30:1 No notifications should be returned if there is no data@ 2 ms afterEach failed on No data: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIObserverService.removeObserver]@ 2 ms Source: ObserverInterposition.methods.removeObserver@resource://gre/modules/RemoteAddonsParent.jsm:388:5 AddonInterpositionService.prototype.interposeProperty/desc.value@resource://gre/components/multiprocessShims.js:160:52 restoreVirtualTime@chrome://adblockplustests/content/common.js:280:3 .teardown@chrome://adblockplustests/content/tests/notification.js:66:7
Expected behaviour
passing tests.
Background
This is fallout from bug 673569, the unit tests are accessing private module variables which are no longer global.
What to change
Make the affected variables properly global (change let to var).
Attachments (0)
Change History (7)
comment:2 Changed on 12/07/2015 at 01:45:52 PM by trev
- Cc trev added
comment:3 Changed on 12/07/2015 at 03:18:10 PM by trev
- Component changed from Extensions-for-Adblock-Plus to Adblock-Plus-for-Firefox
- Description modified (diff)
- Priority changed from Unknown to P4
- Ready set
comment:4 Changed on 12/07/2015 at 03:27:32 PM by erikvold
- Owner set to erikvold
comment:6 Changed on 12/29/2016 at 10:44:46 AM by wspee
comment:7 Changed on 11/10/2017 at 11:15:18 AM by trev
- Resolution set to rejected
- Status changed from new to closed
Mass-closing all bugs in Adblock Plus for Firefox module, the codebase of Adblock Plus 3.0 belongs into Platform and User-Interface modules. Old bugs are unlikely to still apply.
Note: See
TracTickets for help on using
tickets.
This ticket should be "fixed", see 0658b65ae7a2?