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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jhford, Assigned: jhford)

References

Details

Attachments

(1 file, 2 obsolete files)

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.
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
Depends on: 443090
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
Attached patch Correct feed test output (obsolete) (deleted) — Splinter Review
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
Component: General → RSS Discovery and Preview
Product: Testing → Firefox
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: RSS Discovery and Preview → General
OS: Mac OS X → All
Product: Firefox → Testing
Hardware: x86 → All
Attached patch Version 2 (obsolete) (deleted) — Splinter Review
Attachment #363892 - Attachment is obsolete: true
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
Component: General → RSS Discovery and Preview
Product: Testing → Firefox
Attached patch feed-test-cleanup-v3 (deleted) — Splinter Review
Cleaned up output
Attachment #366711 - Attachment is obsolete: true
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 ?
Assignee: nobody → bugzilla
Status: NEW → ASSIGNED
Depends on: 325080
(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
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.)
Blocks: 490255
No longer blocks: 443329
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
John, why WontFix? Fixing the format then/or porting to xpcshell looks still wanted to me.
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: