Closed Bug 554805 Opened 15 years ago Closed 7 years ago

Look at how to test failure cases for bootstrap.js

Categories

(Toolkit :: Add-ons Manager, defect, P2)

defect

Tracking

()

RESOLVED INACTIVE

People

(Reporter: mossop, Unassigned)

References

Details

(Whiteboard: [rewrite])

From bug 553169 comment 21: > Is it worth checking that bootstrap.js exists and won't throw an exception for > a > syntax error? > > Actually, I'd like to see tests written for bootstrap.js failure conditions: > * where bootstrap.js throws an exception in enable, > * where bootstrap.js throws an exception in disable, > * where bootstrap.js just has a syntax error and can't be parsed > * where bootstrap.js throws an exception before enable and disable are > defined > * where bootstrap.js throws an exception after enable and disable are defined > * where bootstrap.js throws an exception after enable is defined, but before > disable is defined.
Flags: in-testsuite?
Flags: in-litmus-
Let's add a couple more combinations to this, swapping disable and enable: function disable() { // do something } function enable() { throw new Error("oh no"); }
Clarification: swapping disable and enable, to see what happens when disable is defined, but enable can't be defined due to a syntax or script error being thrown.
Assignee: dtownsend → nobody
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.