Closed
Bug 479976
Opened 16 years ago
Closed 15 years ago
Feed Unit Tests do not follow convention established in Bug443090
Categories
(Firefox Graveyard :: RSS Discovery and Preview, defect)
Firefox Graveyard
RSS Discovery and Preview
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: jhford, Assigned: jhford)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1b2) Gecko/20081201 Firefox/3.1b2
Build Identifier:
As specified in Bug 443090 there is a new convention for testing output. The tests in mozilla-central/toolkit/components/feeds/test/ do not follow this convention.
Reproducible: Always
Steps to Reproduce:
1. run make -k check in a a fully built objdir
Actual Results:
There are a bunch of tests with output like:
PASS | xml/rss2/feed_pubDate.xml | Test was: "channel pubDate works" | feed.fields.getProperty('pubDate') == 'Sat, 07 Sep 2002 00:00:01 GMT' |
Expected Results:
1234567890 | TEST-PASS | xml/rss2/feed_pubDate.xml | Test was: "channel pubDate works" | feed.fields.getProperty('pubDate') == 'Sat, 07 Sep 2002 00:00:01 GMT' |
I have written a patch which fixes this and am in the process of testing it.
Comment 1•16 years ago
|
||
Bugs to fix tests go in the component most closely related to those tests, FYI.
Component: General → RSS Discovery and Preview
Product: Testing → Firefox
QA Contact: general → rss.preview
Assignee | ||
Comment 2•16 years ago
|
||
1235495890.009 | TEST-PASS | xml/rss2/item_guid_bogus_url.xml | Test was: "item copes with bogus guid" | feed.items.queryElementAt(0, Components.interfaces.nsIFeedEntry).link == null; |
1235495890.015 | TEST-PASS | xml/rss2/item_guid_isPermaLink.xml | Test was: "item guid works" | var link = feed.items.queryElementAt(0, Components.interfaces.nsIFeedEntry).link; link.spec == 'http://www.example.org/'; |
Here is some sample output with my patch. I thought I had put it in a different component, I will change that if I can.
Component: RSS Discovery and Preview → General
Product: Firefox → Testing
Version: unspecified → Trunk
Assignee | ||
Comment 3•16 years ago
|
||
I would like to have this respect a mozconfig ac_add_options that I have added in another patch for bug 443329 but I don't know how to get something from autoconf into a JavaScript file. My immediate thought is to turn the javascript into a .in file. I will look into this
Updated•16 years ago
|
Component: General → RSS Discovery and Preview
Product: Testing → Firefox
Updated•16 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Updated•16 years ago
|
Component: RSS Discovery and Preview → General
OS: Mac OS X → All
Product: Firefox → Testing
Hardware: x86 → All
Assignee | ||
Comment 4•16 years ago
|
||
Attachment #363892 -
Attachment is obsolete: true
Assignee | ||
Comment 5•16 years ago
|
||
Comment on attachment 366711 [details] [diff] [review]
Version 2
Did not properly correct PASS and FAIL in old version of patch
Attachment #366711 -
Attachment description: Patch did not fully correct behaviour → Version 2
Updated•16 years ago
|
Component: General → RSS Discovery and Preview
Product: Testing → Firefox
Assignee | ||
Comment 6•16 years ago
|
||
Cleaned up output
Attachment #366711 -
Attachment is obsolete: true
Comment 8•16 years ago
|
||
Comment on attachment 367145 [details] [diff] [review]
feed-test-cleanup-v3
I think we want just
TEST FAILURE | TEST NAME | ADDITIONAL INFORMATION
(everywhere) for now.
Especially, forget about the time part.
Jeff, do you confirm ?
Updated•16 years ago
|
Assignee: nobody → bugzilla
Status: NEW → ASSIGNED
Comment 9•16 years ago
|
||
(In reply to comment #8)
At least, I'd like the 'TEST-*' part to be fixed here (asap),
then the timestamp addition moved to bug 443329 (later).
Blocks: 443329
Comment 10•16 years ago
|
||
I'd rather see these tests ported to be real xpcshell tests, FWIW. Will make it easier to maintain in the long run, instead of the current one-off test framework it's using. (Which predates our xpcshell framework.)
Updated•16 years ago
|
Assignee | ||
Updated•15 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Comment 11•15 years ago
|
||
John, why WontFix?
Fixing the format then/or porting to xpcshell looks still wanted to me.
Updated•6 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•