Closed Bug 469855 Opened 16 years ago Closed 16 years ago

Query portion of in-browser JS tests can't be rearranged

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Waldo, Assigned: bc)

References

()

Details

Attachments

(2 files)

k.
Assignee: general → bclary
Status: NEW → ASSIGNED
Attached patch patchSplinter Review
should allow test=foo, language=bar;value, gczeal=n and jit to be positioned in the querystring.
Attachment #353292 - Flags: review?(jwalden+bmo)
Comment on attachment 353292 [details] [diff] [review]
patch

Is there a reason we can't split on ';', use /^([^=]+)=(.*)$/ and decodeURIComponent to grab names (properties) and values into an object, and then just grab the particular properties we want off that for greatest robustness going forward?  That would also make adding further parameters to the query really easy.
Attachment #353292 - Flags: review?(jwalden+bmo) → review-
Comment on attachment 353292 [details] [diff] [review]
patch

Need an answer to the question in the previous comment still.
(In reply to comment #4)
> (From update of attachment 353292 [details] [diff] [review])
> Need an answer to the question in the previous comment still.

sorry. I missed that question. No, I think that will work fine. I'll work something up tonight.
Attached patch patch v2Splinter Review
Attachment #354787 - Flags: review?(jwalden+bmo)
Comment on attachment 354787 [details] [diff] [review]
patch v2

I read through this somewhat skimmily, but basically looks good to me.  Thanks!
Attachment #354787 - Flags: review?(jwalden+bmo) → review+
http://hg.mozilla.org/mozilla-central/rev/364b477f377e and cvs.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
Flags: in-litmus-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: