Closed
Bug 431142
Opened 17 years ago
Closed 11 years ago
Sunbird fails running cookie xpcshell tests
Categories
(Calendar :: Sunbird Only, defect)
Calendar
Sunbird Only
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: standard8, Unassigned)
References
Details
I've been running the core xpcshell tests on Sunbird. The following failures appear to be due to the fact that Sunbird doesn't include cookie handling (note: you may have to build with the data protocol to see some of these).
test_cookie_header.js
This test seems to hang - possibly not checking an error in the backend somewhere, therefore never getting a response from a listener.
test_cookie.js
../../../_tests/xpcshell-simple/test_cookies/unit/test_cookies.js:9: strict warning: reference to undefined property Cc['@mozilla.org/cookieService;1']
TypeError: Cc['@mozilla.org/cookieService;1'] is undefined
*** FAIL ***
TestCookies.cpp
Fails straight away - prob due to no cookies service.
I don't know what Sunbird wishes to do wrt these tests - I'm just trying to find what is blocking us in getting these enabled on tinderboxes.
Comment 1•17 years ago
|
||
We don't use the cookie extension at the moment, because it has no value for us.
See http://mxr.mozilla.org/mozilla/source/calendar/confvars.sh
Reporter | ||
Comment 2•17 years ago
|
||
(In reply to comment #1)
> We don't use the cookie extension at the moment, because it has no value for
> us.
>
> See http://mxr.mozilla.org/mozilla/source/calendar/confvars.sh
That's fine. You just won't be able to run the xpcshell tests automated until you either do use it or you convince the core devs that you should be allowed to modify the tests to detect that you're not using it.
Reporter | ||
Comment 3•17 years ago
|
||
(In reply to comment #2)
> That's fine. You just won't be able to run the xpcshell tests automated until
> you either do use it or you convince the core devs that you should be allowed
> to modify the tests to detect that you're not using it.
or find some other way around it, which means you won't run the core tests.
Updated•17 years ago
|
OS: Mac OS X → All
Hardware: PC → All
Version: unspecified → Trunk
Comment 4•16 years ago
|
||
(In reply to comment #0)
> test_cookie.js
>
> ../../../_tests/xpcshell-simple/test_cookies/unit/test_cookies.js:9: strict
> warning: reference to undefined property Cc['@mozilla.org/cookieService;1']
> TypeError: Cc['@mozilla.org/cookieService;1'] is undefined
> *** FAIL ***
I'm not sure why this test is running, because it lives in a part of the tree that's not build. Is the set of tests not derived from the build config?
> TestCookies.cpp
> Fails straight away - prob due to no cookies service.
I think running that test should depend on the setting of NECKO_COOKIES. What does the cookie module owner thing of that?
Reporter | ||
Comment 5•16 years ago
|
||
(In reply to comment #4)
> (In reply to comment #0)
> > test_cookie.js
> >
> > ../../../_tests/xpcshell-simple/test_cookies/unit/test_cookies.js:9: strict
> > warning: reference to undefined property Cc['@mozilla.org/cookieService;1']
> > TypeError: Cc['@mozilla.org/cookieService;1'] is undefined
> > *** FAIL ***
>
> I'm not sure why this test is running, because it lives in a part of the tree
> that's not build. Is the set of tests not derived from the build config?
Actually extensions/cookie does get built even if you've got NECKO_COOKIES not set; extensions/cookie is actually dependent on if you've got MOZ_PERMISSIONS set or not (on by default, no calendar override):
http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/toolkit/toolkit-tiers.mk&rev=1.15&mark=104-109#104
Comment 6•15 years ago
|
||
This bug is probably INVALID by now, but in any case its Sunbird Only
Component: General → Sunbird Only
QA Contact: general → sunbird
Comment 7•11 years ago
|
||
Resolving as WONTFIX because Sunbird has been discontinued and the code has been removed from the project.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•