Open
Bug 472846
Opened 16 years ago
Updated 2 years ago
We need automated tests for view source
Categories
(Core :: DOM: HTML Parser, defect)
Core
DOM: HTML Parser
Tracking
()
NEW
People
(Reporter: cbartley, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
We need automated tests for view source.
The view source test plan is at https://wiki.mozilla.org/QA/Firefox3.1/ViewSource_Testplan.
Bug 464314 has an incomplete compiled-code test for entity decoding in view source linkification (missing makefile changes).
Bug 464339 has a reftest for view-source URLs that point to images.
We need more.
Reporter | ||
Comment 1•16 years ago
|
||
This test simply verifies that the source text displayed by a "view-source:" URL actually matches the raw source text of the file. It does not test syntax coloring or linkification, just basic fidelity. The test uses both an XMLHttpRequest and an IFRAME which seems rather yucky, but I can't think of any real alternatives.
Reporter | ||
Updated•16 years ago
|
Attachment #356210 -
Flags: review?(mrbkap)
Updated•16 years ago
|
Attachment #356210 -
Flags: review?(mrbkap) → review+
What URLs do you guys wanted automated tests for? I was able to make this work in a reftest.list:
== view-source:http://www.ganymede.org/ ./ganymede.html
The ganymede.html file has an <img> with the <body> set correctly. I can generate more of these. Just give me a list of URLs.
Comment 3•2 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: cab → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•