#4116 closed defect (fixed)
ComboBox: test/example querying against a URL like foo.php?query=ca
Reported by: | bill | Owned by: | wolfram |
---|---|---|---|
Priority: | high | Milestone: | 1.0 |
Component: | Dijit - Form | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Add test file for ComboBox/FilteringSelect? with trivial dojo.data Store that gets data from a URL, like the old incrementalDataStore. Implement URL as PHP code (can copy format in tests/layout/getResponse.php).
Change History (7)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
It's a URL right? It returns the same thing a PHP file would return right?
No, it's different. A PHP file takes a query and returns the items matching the query. Example:
foo.php?query=a
returns:
[ "alabama", "arizona", "arkansas"]
(or something similar)
That's how people will be using Combobox/FilteringSelect? in real life so it's important to test. As I wrote in the bug description, "like the old incrementalDataStore" from 0.4.
comment:3 Changed 14 years ago by
Summary: | ComboBox: test/example using URL → ComboBox: test/example querying against a URL like foo.php?query=ca |
---|
comment:4 Changed 14 years ago by
comment:5 Changed 14 years ago by
Owner: | set to wolfram |
---|
comment:6 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed by [10875]. Thanks Wolfram!
comment:7 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
Note: See
TracTickets for help on using
tickets.
We already have ones that use URLs. Whether it is a static file or a PHP file doesn't matter because the return format is the same . . .
Here is the URL that the test in the nightly uses:
http://archive.dojotoolkit.org/nightly/checkout/dijit/tests/form/comboBoxData.json
It's a URL right? It returns the same thing a PHP file would return right? So I'm not sure what we are supposed to do to prove this ticket is fixed beyond that.
Also, if we do implement a PHP file, it will break offline testing, which is bad.