Open
Bug 424484
Opened 17 years ago
Updated 2 years ago
Need way to run mochitests from file://
Categories
(Testing :: Mochitest, defect)
Tracking
(Not tracked)
REOPENED
People
(Reporter: bzbarsky, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
Need this to test bug 418356 and bug 402983. This can be gotten around by using UniversalXPConnect to create/remove the files (in /tmp, say) as part of an http:// test, but that makes the test a lot more confusing. Ideally we would just have a directory tree running as file:// somewhere and we could point to a particular file in the tree as the testcase. It's important that it be possible to have the "main" testcase _not_ be at the top of the tree, so we can test accessing ancestors.
Reporter | ||
Comment 1•17 years ago
|
||
Also needed for bug 425201.
Reporter | ||
Updated•16 years ago
|
Blocks: CVE-2008-5015
Comment 3•16 years ago
|
||
Moving a bunch of Core :: Testing bugs to Testing :: Mochitest to clear out the former, which is obsolete now that we have more specialized categories for such bugs; filter on the string "MochitestMmMm" to delete all these notifications.
Component: Testing → Mochitest
Product: Core → Testing
QA Contact: testing → mochitest
Version: Trunk → unspecified
Comment 4•16 years ago
|
||
Here's a proposal that would just add file:// tests into the current test runner. Of course, it doesn't work, because http:// content can't link to file:// content, so you get "Error: uncaught exception: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "http://localhost:8888/tests/SimpleTest/TestRunner.js Line: 92"]"
The patch works by just requiring the file tests to be named "test_file_...".
I'm going to file a Caps bug blocking this one to see if we can make that work. If not, the alternative would be to add a whole new method to runtests.py, like --file, which would load the whole harness from a file:// URL.
Reporter | ||
Updated•16 years ago
|
Blocks: CVE-2009-1839
Comment 5•7 years ago
|
||
Mass closing mochitest bugs that haven't had activity in the past 5 years. Please re-open or file a new bug with modern context if this is still relevant.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Reporter | ||
Comment 6•7 years ago
|
||
This is still relevant. We need it to be able to write tests for critical security code. The fact that we haven't bothered to fix the harness to make this possible doesn't mean it doesn't actually need to happen...
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•