Closed Bug 1453279 Opened 7 years ago Closed 7 years ago

ReferenceError: require is not defined when running tests in devtools/shared/tests/browser

Categories

(DevTools :: General, defect)

60 Branch
defect
Not set
normal

Tracking

(firefox61 fixed)

RESOLVED FIXED
Firefox 61
Tracking Status
firefox61 --- fixed

People

(Reporter: johannh, Assigned: johannh)

Details

Attachments

(1 file)

The test suite requires devtools/client/shared/test/shared-head.js which is not included by default if you run only tests from that directory.
Comment on attachment 8966925 [details] Bug 1453279 - Include client/shared/test/shared-head.js in devtools/shared tests. https://reviewboard.mozilla.org/r/235606/#review241354 Thanks! This fixes the issue (`mach clobber` followed by `mach test browser_l10n_localizeMarkup.js`) ::: commit-message-0528a:1 (Diff revision 1) > +Bug 1453279 - Include client/shared/test/shared-head.js in devtools tests. r=jdescottes,nchevobbe Can we be more specific and say "in devtools/shared tests." (other browser.ini already import shared-head correctly)
Attachment #8966925 - Flags: review?(jdescottes) → review+
Pushed by jhofmann@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4dd12c7c8f1f Include client/shared/test/shared-head.js in devtools/shared tests. r=jdescottes
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: