Tests for the IBM® Extensions to the Dojo Toolkit - Atom Library
The test files contained in the two sub-directories underneath ibm_atom/tests/ are examples of using the various components of the
ibm_atom package. The test cases are described below:
- ibm_atom/tests/data/ml/test_AppStore_declaratively.html -- This test file demonstrates a practical usage of the AppStore.
A store is created in HTML markup, then the store is used in the JavaScriptTM code at the top. There
are demonstrations of nearly every function available in the AppStore.
- ibm_atom/tests/data/runTests.html -- This test file is a unit test ensuring that all functions of the AppStore work as
expected. This test file may or may not prove useful to a developer.
- ibm_atom/tests/widget/samplefeed.xml -- This is the sample feed used in all of the test cases.
- ibm_atom/tests/widget/samplefeedEdit.xml -- This is nearly identical to the above file, with the addition of several
'editable' entries (entries that have a edit link).
- Programmatic usage -- These test pages show the FeedViewer widget with some simple logic to display
the selected entry's content immediately below the viewer.
- ibm_atom/tests/widget/test_FeedViewer_local.html
- ibm_atom/tests/widget/test_FeedViewer_bind_local.html
- Declarative usage --- These three test files show the FeedViewer and
FeedEntryViewer widgets in action. The FeedEntryViewer widget responds to the selected entry on the
FeedViewer widget.
- ibm_atom/tests/widget/test_FeedViewer_local_declarative.html -- Basic declaration of the feed viewer
- ibm_atom/tests/widget/test_FeedViewer_local_declarative2.html -- Alternate declaration of the feed viewer
- ibm_atom/tests/widget/test_FeedViewer_bind_local_sync.html
- Complex usage of the feed viewer and editor.
- ibm_atom/tests/widget/test_FeedViewer_bind_local_split_declarative.html - This test file is more complicated than
the others. The page is split into three columns using a SplitContainer widget. The left column contains a
FeedViewer widget, the center column contains a FeedEntryEditor widget, and the right column contains a FeedEntryViewer
widget. The FeedEntryEditor and the FeedEntryViewer widgets each respond to events from the FeedViewer, displaying any
entry that has been clicked. The FeedEntryEditor allows editable entries to be edited and new entries to be created.