zero.dojo
#DataStore
Tests confirm:
- zero.resource.DataStore inter-operates with the RESTful APIs of zero.resource (Zero Resource Model)
- works in the three browsers; FF, Safari and IE
The zero.resource.DataStore is an implementation of Dojo's dojo.data interface. There exist tests that run in the browsers(FF,Safari, and IE) that must be kicked off as follows:
- Checkout /CORE/zero.dojo.tests from the SVN branch being tested. (For instance... https://www.projectzero.org/svn/zero/trunk/CORE/zero.dojo.tests)
- "cd" into the zero.dojo.tests directory.
- Issue "zero resolve" from the command line.
- Issue "zero model sync".
- From the output of the previous step, confirm the command executes successfully and creates two tables for "employees" and "namevaluepairs".
- Issue "zero start".
- Go to http://localhost:8080/zrmtest/runTests.html
- Confirm that all tests pass (green). If ok, test with next browser, using the previous step.
- After completing the tests, Issue "zero stop".
DataGrid and Dijit paging
Tests confirm:
- #DataGrid and #Dijits can page ZRM data correctly
- #DataGrid works in the three browsers; FF, Safari and IE
The zero.grid.DataGrid is wrappered dojox.grid that provides a toolbar and paging controls. Follow these steps to verify that the grid can correctly page on the 3 separate browsers
- Ensure that the application is stopped. Execute "zero stop" if necessary.
- Download the nv_dump.json file and save it to your app/models/fixtures folder
- Ensure that data is in a predictable state by executing the following commands:
- "zero model reset"
- "zero model loaddata app/models/fixtures/nv_dump.json
- Start the application: "zero start
- Go to http://localhost:8080/zrmtest/dijit.gt ( Use FF if this your first time through, then Safari and finally IE )
- Ensure that the select boxes at the top of the page have unique data (value0, value1, etc.) and successfully navigates back and forth between data sets when "More choices" and "Previous chioces" are clicked on.
- If passed, use next browser and repeat step 5 - http://localhost:8080/zrmtest/dijit.gt