Closed
Bug 95677
Opened 25 years ago
Closed 24 years ago
update urltest.cpp
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla0.9.5
People
(Reporter: andreas.otte, Assigned: andreas.otte)
Details
(Whiteboard: seeking r,sr)
Attachments
(3 files, 4 obsolete files)
|
22.67 KB,
patch
|
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
|
1.14 KB,
text/plain
|
Details | |
|
1.80 KB,
text/plain
|
Details |
urltest needs an overhaul ...
| Assignee | ||
Comment 1•25 years ago
|
||
urltest.cpp should be updated to the latest changes in urlparsing. Also some
more tests should be added.
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•25 years ago
|
||
| Assignee | ||
Comment 3•25 years ago
|
||
| Assignee | ||
Comment 4•25 years ago
|
||
I changed the format of urlparse.dat to include the testurl and the expected
results with -std and without.
Also urlparse.dat contains some more tests, especially file url tests, but they
are only for a unix like OS.
For that reason there is now a urlparse_win.dat which gets installed for
windows, which also contains some windows specific file url tests.
Maybe someone can do a mac version?
I think bbaetz is assigned this in our QA group, for the dozen or so business
days he is remaining here. I expect I will take this over when he leaves b/c get
the URL releated stuff as blackbox tester.
Comment 6•25 years ago
|
||
I haven't been working on the url parser...
| Assignee | ||
Comment 7•25 years ago
|
||
You can check on the options of urltest and see if it fits your criteria. Some
examples:
urltest -std -file urltest.dat
checks the testcases in the file with calling the nsStdURLParser
urltest -file urlparse.dat
checks the testcases in the file while really creating the URIs, sometimes using
different urlparsers.
urltest -abs x
x is irrelevant, as long as there is no base url the internal relative urls
tests are executed
urltest http://foo/bar
parses the absolute url into its components
urltest http://foo/bar -abs bar2
Resolves the base url and the relative path to a new url.
| Assignee | ||
Comment 8•24 years ago
|
||
| Assignee | ||
Comment 9•24 years ago
|
||
This version works with urltest -abs without parameter and executes the relative
url test. It also counts the failed relative tests and returns a correct error
code for all tests so that it can be used in shell scripts to check the result
of the tests.
Whiteboard: seeking r,sr
| Assignee | ||
Updated•24 years ago
|
Target Milestone: --- → mozilla0.9.4
| Assignee | ||
Updated•24 years ago
|
Target Milestone: mozilla0.9.4 → mozilla0.9.5
| Assignee | ||
Comment 10•24 years ago
|
||
| Assignee | ||
Comment 11•24 years ago
|
||
For the new version I included the base url into the array of relative url tests
which now allows different base urls. Added a test to check parsing of params
inside directory.
| Assignee | ||
Comment 12•24 years ago
|
||
| Assignee | ||
Comment 13•24 years ago
|
||
| Assignee | ||
Comment 14•24 years ago
|
||
| Assignee | ||
Comment 15•24 years ago
|
||
The last three attachments contain the whole update to urltest. Now there is
urlparse.dat for generic urls and urlparse_unx.dat and urltest_win.dat for
unix/windows specific file urls. Mac stuff still missing.
Comment 16•24 years ago
|
||
looks fine. I assume that you tested it and stuff. r=me.
darin can you sr.
| Assignee | ||
Comment 17•24 years ago
|
||
Yes I did some tests :-), it's in my tree for months now. I just didn't like it
anymore to discuss with people output of urltest which nobody could verify or
reproduce. I will ask Conrad for a file with mac file urls. I the future we
might have to change some of the test urls, that depends on where we go with UNC
support.
| Assignee | ||
Updated•24 years ago
|
Attachment #46784 -
Attachment is obsolete: true
| Assignee | ||
Updated•24 years ago
|
Attachment #46467 -
Attachment is obsolete: true
| Assignee | ||
Updated•24 years ago
|
Attachment #46117 -
Attachment is obsolete: true
| Assignee | ||
Updated•24 years ago
|
Attachment #46115 -
Attachment is obsolete: true
Comment 18•24 years ago
|
||
Comment on attachment 48617 [details] [diff] [review]
updated patch
sr=darin
Attachment #48617 -
Flags: superreview+
| Assignee | ||
Comment 19•24 years ago
|
||
checked in
| Assignee | ||
Comment 20•24 years ago
|
||
closing bug ...
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•