Open Bug 371329 Opened 18 years ago Updated 3 years ago

XPI_NAME-built extensions not available to make check

Categories

(Testing :: XPCShell Harness, defect)

defect

Tracking

(Not tracked)

People

(Reporter: sayrer, Unassigned)

Details

Attachments

(1 file)

function run_test() { try { const cid = "@senecac.on.ca/firstxpcom;1"; var obj = Components.classes[cid].createInstance(); obj = obj.QueryInterface(Components.interfaces.IFirstXpcom); } catch (err) { do_throw(err); return; } do_check_true(true); } $ make check ... *** test pending *** exiting *** CHECK FAILED: TypeError: Components.classes[cid] has no properties JS frame :: ../../../dist/bin/test-harness/xpcshell-simple/head.js :: do_throw :: line 98 JS frame :: ../../../dist/bin/test_firstxpcom/test_sample.js :: run_test :: line 52 JS frame :: ../../../dist/bin/test-harness/xpcshell-simple/tail.js :: <TOP_LEVEL> :: line 41 2147500036 *** FAIL ***
Here's my simple XPCOM example (mozilla/extensions/firstxpcom) from a tutorial I'm writing.
I get the same thing. Normally, Firefox will start up ExtensionManager, register these things, quit, and then start again. Not sure how to make xpcshell do this.
xpcshell doesn't know anything about extensions, and can't really be taught. We could write a xulrunner-based xpcshell replacement that has the extension-management smarts.
Ah. bug 359830 seems to have something like that already.
Component: Testing → TUnit
Product: Core → Testing
QA Contact: testing → tunit
Version: Trunk → unspecified
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: