From e44a7e37b6c7b5961adaffc62b9042b8d442938e Mon Sep 17 00:00:00 2001 From: mensonge Date: Thu, 13 Nov 2008 09:49:11 +0000 Subject: New feature: basic Ajax suggestion for tags and implementation of Dojo toolkit git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@151 b3834d28-1941-0410-a4f8-b48e95affb8f --- includes/js/dijit/tests/Container.html | 63 ++ includes/js/dijit/tests/Container.js | 9 + includes/js/dijit/tests/_Templated.html | 164 +++++ includes/js/dijit/tests/_Templated.js | 9 + includes/js/dijit/tests/_altCalendar.html | 36 + includes/js/dijit/tests/_base/manager.html | 322 +++++++++ includes/js/dijit/tests/_base/manager.js | 9 + .../js/dijit/tests/_base/test_FocusManager.html | 46 ++ .../js/dijit/tests/_base/test_focusWidget.html | 130 ++++ .../js/dijit/tests/_base/test_placeStrict.html | 400 +++++++++++ includes/js/dijit/tests/_base/test_typematic.html | 56 ++ includes/js/dijit/tests/_base/viewport.html | 79 +++ includes/js/dijit/tests/_base/viewport.js | 10 + includes/js/dijit/tests/_base/viewportStrict.html | 81 +++ includes/js/dijit/tests/_base/wai.html | 115 ++++ includes/js/dijit/tests/_base/wai.js | 9 + includes/js/dijit/tests/_data/categories.json | 12 + .../js/dijit/tests/_data/categoriesNested.json | 13 + includes/js/dijit/tests/_data/countries.json | 45 ++ includes/js/dijit/tests/_data/dijits.json | 1 + includes/js/dijit/tests/_data/states.json | 64 ++ includes/js/dijit/tests/_data/treeTest.json | 22 + includes/js/dijit/tests/_editor/test_6112.html | 745 +++++++++++++++++++++ .../js/dijit/tests/_editor/test_CustomPlugin.html | 151 +++++ includes/js/dijit/tests/_editor/test_RichText.html | 59 ++ .../js/dijit/tests/_editor/test_ToggleDir.html | 37 + includes/js/dijit/tests/_editor/test_richtext.css | 4 + .../tests/_editor/test_richtext.css.commented.css | 4 + includes/js/dijit/tests/_programaticTest.html | 109 +++ includes/js/dijit/tests/_testCommon.js | 103 +++ includes/js/dijit/tests/css/dijitTests.css | 69 ++ .../dijit/tests/css/dijitTests.css.commented.css | 78 +++ includes/js/dijit/tests/form/Form.html | 354 ++++++++++ includes/js/dijit/tests/form/Form.js | 9 + includes/js/dijit/tests/form/images/Alabama.jpg | Bin 0 -> 4585 bytes includes/js/dijit/tests/form/test_Button.html | 286 ++++++++ includes/js/dijit/tests/form/test_CheckBox.html | 127 ++++ includes/js/dijit/tests/form/test_ComboBox.html | 289 ++++++++ .../js/dijit/tests/form/test_ComboBox_destroy.html | 58 ++ includes/js/dijit/tests/form/test_DateTextBox.html | 156 +++++ .../js/dijit/tests/form/test_FilteringSelect.html | 296 ++++++++ .../js/dijit/tests/form/test_Form_onsubmit.html | 87 +++ includes/js/dijit/tests/form/test_MultiSelect.html | 138 ++++ .../js/dijit/tests/form/test_SimpleTextarea.html | 62 ++ includes/js/dijit/tests/form/test_Slider.html | 208 ++++++ includes/js/dijit/tests/form/test_Spinner.html | 92 +++ includes/js/dijit/tests/form/test_Textarea.html | 106 +++ includes/js/dijit/tests/form/test_TimeTextBox.html | 143 ++++ includes/js/dijit/tests/form/test_validate.html | 428 ++++++++++++ includes/js/dijit/tests/i18n/README | 4 + includes/js/dijit/tests/i18n/currency.html | 210 ++++++ includes/js/dijit/tests/i18n/date.html | 155 +++++ includes/js/dijit/tests/i18n/digit.html | 294 ++++++++ includes/js/dijit/tests/i18n/module.js | 18 + includes/js/dijit/tests/i18n/number.html | 136 ++++ includes/js/dijit/tests/i18n/test_i18n.js | 206 ++++++ includes/js/dijit/tests/i18n/textbox.html | 173 +++++ includes/js/dijit/tests/i18n/time.html | 207 ++++++ includes/js/dijit/tests/images/arrowSmall.gif | Bin 0 -> 54 bytes includes/js/dijit/tests/images/copy.gif | Bin 0 -> 210 bytes includes/js/dijit/tests/images/cut.gif | Bin 0 -> 112 bytes includes/js/dijit/tests/images/flatScreen.gif | Bin 0 -> 824 bytes includes/js/dijit/tests/images/note.gif | Bin 0 -> 617 bytes includes/js/dijit/tests/images/paste.gif | Bin 0 -> 241 bytes includes/js/dijit/tests/images/plus.gif | Bin 0 -> 151 bytes includes/js/dijit/tests/images/testsBodyBg.gif | Bin 0 -> 753 bytes includes/js/dijit/tests/images/tube.gif | Bin 0 -> 147 bytes includes/js/dijit/tests/images/tubeTall.gif | Bin 0 -> 256 bytes includes/js/dijit/tests/layout/ContentPane.html | 577 ++++++++++++++++ includes/js/dijit/tests/layout/ContentPane.js | 9 + includes/js/dijit/tests/layout/combotab.html | 11 + includes/js/dijit/tests/layout/doc0.html | 12 + includes/js/dijit/tests/layout/doc1.html | 13 + includes/js/dijit/tests/layout/doc2.html | 13 + includes/js/dijit/tests/layout/getResponse.php | 57 ++ includes/js/dijit/tests/layout/tab1.html | 6 + includes/js/dijit/tests/layout/tab2.html | 3 + includes/js/dijit/tests/layout/tab3.html | 39 ++ includes/js/dijit/tests/layout/tab4.html | 40 ++ .../tests/layout/test_AccordionContainer.html | 195 ++++++ .../dijit/tests/layout/test_BorderContainer.html | 163 +++++ .../tests/layout/test_BorderContainer_complex.html | 178 +++++ .../layout/test_BorderContainer_experimental.html | 253 +++++++ .../tests/layout/test_BorderContainer_full.html | 56 ++ .../tests/layout/test_BorderContainer_nested.html | 70 ++ .../js/dijit/tests/layout/test_ContentPane.html | 94 +++ .../js/dijit/tests/layout/test_LayoutCode.html | 383 +++++++++++ .../dijit/tests/layout/test_LayoutContainer.html | 174 +++++ .../js/dijit/tests/layout/test_SplitContainer.html | 116 ++++ .../js/dijit/tests/layout/test_StackContainer.html | 62 ++ .../tests/layout/test_StackContainer_code.html | 64 ++ .../js/dijit/tests/layout/test_TabContainer.html | 183 +++++ .../tests/layout/test_TabContainerTitlePane.html | 75 +++ .../tests/layout/test_TabContainer_noLayout.html | 104 +++ .../tests/layout/test_TabContainer_remote.html | 109 +++ includes/js/dijit/tests/manualTests.html | 12 + includes/js/dijit/tests/manualTests.js | 85 +++ includes/js/dijit/tests/module.js | 21 + includes/js/dijit/tests/ondijitclick.html | 95 +++ includes/js/dijit/tests/ondijitclick.js | 9 + includes/js/dijit/tests/runTests.html | 9 + includes/js/dijit/tests/test.html | 37 + includes/js/dijit/tests/test_Calendar.html | 81 +++ includes/js/dijit/tests/test_ColorPalette.html | 53 ++ includes/js/dijit/tests/test_Declaration.html | 66 ++ includes/js/dijit/tests/test_Dialog.html | 408 +++++++++++ .../js/dijit/tests/test_Dialog_focusDestroy.html | 61 ++ includes/js/dijit/tests/test_Editor.html | 153 +++++ includes/js/dijit/tests/test_InlineEditBox.html | 231 +++++++ includes/js/dijit/tests/test_Menu.html | 270 ++++++++ includes/js/dijit/tests/test_ProgressBar.html | 165 +++++ includes/js/dijit/tests/test_TitlePane.html | 126 ++++ includes/js/dijit/tests/test_Toolbar.html | 186 +++++ includes/js/dijit/tests/test_Tooltip.html | 117 ++++ includes/js/dijit/tests/test_TooltipDialog.html | 349 ++++++++++ includes/js/dijit/tests/test_Tree.html | 115 ++++ .../tests/test_Tree_Notification_API_Support.html | 287 ++++++++ includes/js/dijit/tests/test_instantiate.html | 111 +++ includes/js/dijit/tests/tree/test_Tree_DnD.html | 194 ++++++ .../dijit/tests/tree/test_Tree_Programmatic.html | 40 ++ includes/js/dijit/tests/tree/test_Tree_v1.html | 111 +++ includes/js/dijit/tests/widgetsInTemplate.html | 112 ++++ includes/js/dijit/tests/widgetsInTemplate.js | 9 + 123 files changed, 13868 insertions(+) create mode 100644 includes/js/dijit/tests/Container.html create mode 100644 includes/js/dijit/tests/Container.js create mode 100644 includes/js/dijit/tests/_Templated.html create mode 100644 includes/js/dijit/tests/_Templated.js create mode 100644 includes/js/dijit/tests/_altCalendar.html create mode 100644 includes/js/dijit/tests/_base/manager.html create mode 100644 includes/js/dijit/tests/_base/manager.js create mode 100644 includes/js/dijit/tests/_base/test_FocusManager.html create mode 100644 includes/js/dijit/tests/_base/test_focusWidget.html create mode 100644 includes/js/dijit/tests/_base/test_placeStrict.html create mode 100644 includes/js/dijit/tests/_base/test_typematic.html create mode 100644 includes/js/dijit/tests/_base/viewport.html create mode 100644 includes/js/dijit/tests/_base/viewport.js create mode 100644 includes/js/dijit/tests/_base/viewportStrict.html create mode 100644 includes/js/dijit/tests/_base/wai.html create mode 100644 includes/js/dijit/tests/_base/wai.js create mode 100644 includes/js/dijit/tests/_data/categories.json create mode 100644 includes/js/dijit/tests/_data/categoriesNested.json create mode 100644 includes/js/dijit/tests/_data/countries.json create mode 100644 includes/js/dijit/tests/_data/dijits.json create mode 100644 includes/js/dijit/tests/_data/states.json create mode 100644 includes/js/dijit/tests/_data/treeTest.json create mode 100644 includes/js/dijit/tests/_editor/test_6112.html create mode 100644 includes/js/dijit/tests/_editor/test_CustomPlugin.html create mode 100644 includes/js/dijit/tests/_editor/test_RichText.html create mode 100644 includes/js/dijit/tests/_editor/test_ToggleDir.html create mode 100644 includes/js/dijit/tests/_editor/test_richtext.css create mode 100644 includes/js/dijit/tests/_editor/test_richtext.css.commented.css create mode 100644 includes/js/dijit/tests/_programaticTest.html create mode 100644 includes/js/dijit/tests/_testCommon.js create mode 100644 includes/js/dijit/tests/css/dijitTests.css create mode 100644 includes/js/dijit/tests/css/dijitTests.css.commented.css create mode 100644 includes/js/dijit/tests/form/Form.html create mode 100644 includes/js/dijit/tests/form/Form.js create mode 100644 includes/js/dijit/tests/form/images/Alabama.jpg create mode 100644 includes/js/dijit/tests/form/test_Button.html create mode 100644 includes/js/dijit/tests/form/test_CheckBox.html create mode 100644 includes/js/dijit/tests/form/test_ComboBox.html create mode 100644 includes/js/dijit/tests/form/test_ComboBox_destroy.html create mode 100644 includes/js/dijit/tests/form/test_DateTextBox.html create mode 100644 includes/js/dijit/tests/form/test_FilteringSelect.html create mode 100644 includes/js/dijit/tests/form/test_Form_onsubmit.html create mode 100644 includes/js/dijit/tests/form/test_MultiSelect.html create mode 100644 includes/js/dijit/tests/form/test_SimpleTextarea.html create mode 100644 includes/js/dijit/tests/form/test_Slider.html create mode 100644 includes/js/dijit/tests/form/test_Spinner.html create mode 100644 includes/js/dijit/tests/form/test_Textarea.html create mode 100644 includes/js/dijit/tests/form/test_TimeTextBox.html create mode 100644 includes/js/dijit/tests/form/test_validate.html create mode 100644 includes/js/dijit/tests/i18n/README create mode 100644 includes/js/dijit/tests/i18n/currency.html create mode 100644 includes/js/dijit/tests/i18n/date.html create mode 100644 includes/js/dijit/tests/i18n/digit.html create mode 100644 includes/js/dijit/tests/i18n/module.js create mode 100644 includes/js/dijit/tests/i18n/number.html create mode 100644 includes/js/dijit/tests/i18n/test_i18n.js create mode 100644 includes/js/dijit/tests/i18n/textbox.html create mode 100644 includes/js/dijit/tests/i18n/time.html create mode 100644 includes/js/dijit/tests/images/arrowSmall.gif create mode 100644 includes/js/dijit/tests/images/copy.gif create mode 100644 includes/js/dijit/tests/images/cut.gif create mode 100644 includes/js/dijit/tests/images/flatScreen.gif create mode 100644 includes/js/dijit/tests/images/note.gif create mode 100644 includes/js/dijit/tests/images/paste.gif create mode 100644 includes/js/dijit/tests/images/plus.gif create mode 100644 includes/js/dijit/tests/images/testsBodyBg.gif create mode 100644 includes/js/dijit/tests/images/tube.gif create mode 100644 includes/js/dijit/tests/images/tubeTall.gif create mode 100644 includes/js/dijit/tests/layout/ContentPane.html create mode 100644 includes/js/dijit/tests/layout/ContentPane.js create mode 100644 includes/js/dijit/tests/layout/combotab.html create mode 100644 includes/js/dijit/tests/layout/doc0.html create mode 100644 includes/js/dijit/tests/layout/doc1.html create mode 100644 includes/js/dijit/tests/layout/doc2.html create mode 100644 includes/js/dijit/tests/layout/getResponse.php create mode 100644 includes/js/dijit/tests/layout/tab1.html create mode 100644 includes/js/dijit/tests/layout/tab2.html create mode 100644 includes/js/dijit/tests/layout/tab3.html create mode 100644 includes/js/dijit/tests/layout/tab4.html create mode 100644 includes/js/dijit/tests/layout/test_AccordionContainer.html create mode 100644 includes/js/dijit/tests/layout/test_BorderContainer.html create mode 100644 includes/js/dijit/tests/layout/test_BorderContainer_complex.html create mode 100644 includes/js/dijit/tests/layout/test_BorderContainer_experimental.html create mode 100644 includes/js/dijit/tests/layout/test_BorderContainer_full.html create mode 100644 includes/js/dijit/tests/layout/test_BorderContainer_nested.html create mode 100644 includes/js/dijit/tests/layout/test_ContentPane.html create mode 100644 includes/js/dijit/tests/layout/test_LayoutCode.html create mode 100644 includes/js/dijit/tests/layout/test_LayoutContainer.html create mode 100644 includes/js/dijit/tests/layout/test_SplitContainer.html create mode 100644 includes/js/dijit/tests/layout/test_StackContainer.html create mode 100644 includes/js/dijit/tests/layout/test_StackContainer_code.html create mode 100644 includes/js/dijit/tests/layout/test_TabContainer.html create mode 100644 includes/js/dijit/tests/layout/test_TabContainerTitlePane.html create mode 100644 includes/js/dijit/tests/layout/test_TabContainer_noLayout.html create mode 100644 includes/js/dijit/tests/layout/test_TabContainer_remote.html create mode 100644 includes/js/dijit/tests/manualTests.html create mode 100644 includes/js/dijit/tests/manualTests.js create mode 100644 includes/js/dijit/tests/module.js create mode 100644 includes/js/dijit/tests/ondijitclick.html create mode 100644 includes/js/dijit/tests/ondijitclick.js create mode 100644 includes/js/dijit/tests/runTests.html create mode 100644 includes/js/dijit/tests/test.html create mode 100644 includes/js/dijit/tests/test_Calendar.html create mode 100644 includes/js/dijit/tests/test_ColorPalette.html create mode 100644 includes/js/dijit/tests/test_Declaration.html create mode 100644 includes/js/dijit/tests/test_Dialog.html create mode 100644 includes/js/dijit/tests/test_Dialog_focusDestroy.html create mode 100644 includes/js/dijit/tests/test_Editor.html create mode 100644 includes/js/dijit/tests/test_InlineEditBox.html create mode 100644 includes/js/dijit/tests/test_Menu.html create mode 100644 includes/js/dijit/tests/test_ProgressBar.html create mode 100644 includes/js/dijit/tests/test_TitlePane.html create mode 100644 includes/js/dijit/tests/test_Toolbar.html create mode 100644 includes/js/dijit/tests/test_Tooltip.html create mode 100644 includes/js/dijit/tests/test_TooltipDialog.html create mode 100644 includes/js/dijit/tests/test_Tree.html create mode 100644 includes/js/dijit/tests/test_Tree_Notification_API_Support.html create mode 100644 includes/js/dijit/tests/test_instantiate.html create mode 100644 includes/js/dijit/tests/tree/test_Tree_DnD.html create mode 100644 includes/js/dijit/tests/tree/test_Tree_Programmatic.html create mode 100644 includes/js/dijit/tests/tree/test_Tree_v1.html create mode 100644 includes/js/dijit/tests/widgetsInTemplate.html create mode 100644 includes/js/dijit/tests/widgetsInTemplate.js (limited to 'includes/js/dijit/tests') diff --git a/includes/js/dijit/tests/Container.html b/includes/js/dijit/tests/Container.html new file mode 100644 index 0000000..64dd5d4 --- /dev/null +++ b/includes/js/dijit/tests/Container.html @@ -0,0 +1,63 @@ + + + + + Container + + + + + + +
+
+
+
+
+ + + diff --git a/includes/js/dijit/tests/Container.js b/includes/js/dijit/tests/Container.js new file mode 100644 index 0000000..0e9360c --- /dev/null +++ b/includes/js/dijit/tests/Container.js @@ -0,0 +1,9 @@ +if(!dojo._hasResource["dijit.tests.Container"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.tests.Container"] = true; +dojo.provide("dijit.tests.Container"); + +if(dojo.isBrowser){ + doh.registerUrl("dijit.tests.Container", dojo.moduleUrl("dijit", "tests/Container.html")); +} + +} diff --git a/includes/js/dijit/tests/_Templated.html b/includes/js/dijit/tests/_Templated.html new file mode 100644 index 0000000..de6dc59 --- /dev/null +++ b/includes/js/dijit/tests/_Templated.html @@ -0,0 +1,164 @@ + + + _Templated tests + + + + + +

_Templated test

+
+
+
+
+
+
+
+ + diff --git a/includes/js/dijit/tests/_Templated.js b/includes/js/dijit/tests/_Templated.js new file mode 100644 index 0000000..ea4e059 --- /dev/null +++ b/includes/js/dijit/tests/_Templated.js @@ -0,0 +1,9 @@ +if(!dojo._hasResource["dijit.tests._Templated"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.tests._Templated"] = true; +dojo.provide("dijit.tests._Templated"); + +if(dojo.isBrowser){ + doh.registerUrl("dijit.tests._Templated", dojo.moduleUrl("dijit", "tests/_Templated.html")); +} + +} diff --git a/includes/js/dijit/tests/_altCalendar.html b/includes/js/dijit/tests/_altCalendar.html new file mode 100644 index 0000000..57e9548 --- /dev/null +++ b/includes/js/dijit/tests/_altCalendar.html @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + +
+ - + + + +
+
+
+
+
+
+

+ + «» + +

+
diff --git a/includes/js/dijit/tests/_base/manager.html b/includes/js/dijit/tests/_base/manager.html new file mode 100644 index 0000000..3ca3349 --- /dev/null +++ b/includes/js/dijit/tests/_base/manager.html @@ -0,0 +1,322 @@ + + + + Dijit manager unit test + + + + + + + +

Dijit Manager Unit Test

+
+
+
+
+
+
+
+
+
+ +
+ +
+
+
+
+ +
+
+ +
+ +
picture of a flat-screen monitor
+ + example area + + +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+ + + +
+ +
+
+
+ +
+ +
+ +
+ + + + + + +
+ +
+ + + + +
+ +
+ + + +
+ +
+ +
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ +
+
+
+
+ +
+ +
+ +
+ +
+
+
+
+
+
+
+
+ +
+ +
+ +
+ + + +
+ +
+ +
+ +
+ + + +
+ + diff --git a/includes/js/dijit/tests/_base/manager.js b/includes/js/dijit/tests/_base/manager.js new file mode 100644 index 0000000..667a763 --- /dev/null +++ b/includes/js/dijit/tests/_base/manager.js @@ -0,0 +1,9 @@ +if(!dojo._hasResource["dijit.tests._base.manager"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.tests._base.manager"] = true; +dojo.provide("dijit.tests._base.manager"); + +if(dojo.isBrowser){ + doh.registerUrl("dijit.tests._base.manager", dojo.moduleUrl("dijit", "tests/_base/manager.html")); +} + +} diff --git a/includes/js/dijit/tests/_base/test_FocusManager.html b/includes/js/dijit/tests/_base/test_FocusManager.html new file mode 100644 index 0000000..1d6a707 --- /dev/null +++ b/includes/js/dijit/tests/_base/test_FocusManager.html @@ -0,0 +1,46 @@ + + + + dijit.focus Test + + + + + + + +

Focus/Selection Save/Restore Test

+

This is for testing whether focus and selection are restored by the focus manager

+
+
+
+
+ +
+ + + + + + diff --git a/includes/js/dijit/tests/_base/test_focusWidget.html b/includes/js/dijit/tests/_base/test_focusWidget.html new file mode 100644 index 0000000..edc01c1 --- /dev/null +++ b/includes/js/dijit/tests/_base/test_focusWidget.html @@ -0,0 +1,130 @@ + + + + dijit.focus Test + + + + + + + + +

Widget Focus Test

+

+ This is for testing code to detect onBlur and onFocus on a widget level.
+ Focused widgets' borders will turn red.
+ Also, heck the console log for focus and blur events on widgets. +

+ +
+
+
+ +
+
+ + + + +
+
+
+
+ +
+ +
+
+ + +
+ + +
+ push me + +
+
+
+ + diff --git a/includes/js/dijit/tests/_base/test_placeStrict.html b/includes/js/dijit/tests/_base/test_placeStrict.html new file mode 100644 index 0000000..c40325c --- /dev/null +++ b/includes/js/dijit/tests/_base/test_placeStrict.html @@ -0,0 +1,400 @@ + + + + + + dijit.place tests + + + + + + + +

Test dijit.place

+

Currently this just tests getViewport(). Change the size of your browser window and then reload, + and see if it reports the browser window size correctly.
+

All the text below is just filler text...
+ +

+ +
+ + TextBox class, tabIndex=2, Attributes: {trim: true, ucFirst: true, class: 'medium'}, First letter of each word is upper case. +
+
+ +
+ +
+ + TextBox class, Attributes: {trim: true, uppercase: true, class: 'medium'}, all letters converted to upper case. +
+
+ +
+ +
+ + TextBox class, tabIndex=1, Attributes: {trim: true, digit: true, class: 'small'}, all but digits extracted. +
+
+ +
+ +
+ + ValidationTextBox class, + Attributes: {lowercase: true, required: true}. Displays a prompt message if field is missing. +
+
+ +
+ +
+ + IntegerTextBox class, + Attributes: {required: true, min:-20000, max:+20000 }, Enter feet above sea level with a sign. +
+
+ +
+ +
+ + CurrencyTextBox class, + Attributes: {fractional: true}. Enter whole and cents. Currency symbol is optional. +
+
+ USD +
+ +
+ EUR +
+ + +
+ + DateTextBox class, + Attributes: {locale: "en-us", required: true}. Works for leap years +
+
+ +
+ +
+ + DateTextBox class, + Attributes: {locale: "de-de", min:2006-01-01, max:2006-12-31}. Works for leap years +
+
+ +
+ +
+ + TimeTextBox class, + Attributes: {formatLength: "medium", required: true, trim: true} +
+
+ +
+ +
+ + TimeTextBox class, + Attributes: {displayFormat:"HH:mm:ss", required: true, trim: true} +
+
+ +
+ + +
+ + RegexpTextBox class, + Attributes: {required: true} +
+
+ +
+ +
+ + (just a test that type attribute is obeyed) +
+
+ +
+ +
+ + value: null should show up as empty +
+
+ +
+ + + +
+ + diff --git a/includes/js/dijit/tests/_base/test_typematic.html b/includes/js/dijit/tests/_base/test_typematic.html new file mode 100644 index 0000000..4a85027 --- /dev/null +++ b/includes/js/dijit/tests/_base/test_typematic.html @@ -0,0 +1,56 @@ + + + + Typematic Test + + + + + + + +

Dijit typematic tests

+ Press and hold the ctrl+F10 keys to see a's typed (constant rate) in the input field,
+ or left-mouse click the button and hold down to see b's typed (increasing rate) in the input field.
+ + + + diff --git a/includes/js/dijit/tests/_base/viewport.html b/includes/js/dijit/tests/_base/viewport.html new file mode 100644 index 0000000..2b8454a --- /dev/null +++ b/includes/js/dijit/tests/_base/viewport.html @@ -0,0 +1,79 @@ + + + dijit.getViewport() test + + + + + + + +
+

dijit.getViewport() test

+
padding div
+ + +
    +
  1. check results div below to see that before adding text, document is smaller than viewport +
  2. after adding text, document should be bigger than viewport,and check that viewport size hasn't changed, + except maybe being a little bit smaller (about 15px) because of the size of the scrollbars +
  3. resize browser window and click the "recompute size" button; reported viewport size should change +
  4. scroll the window and click "recompute size" to see that the scroll position is taken into effect +
+
+
+ + diff --git a/includes/js/dijit/tests/_base/viewport.js b/includes/js/dijit/tests/_base/viewport.js new file mode 100644 index 0000000..8cee9c4 --- /dev/null +++ b/includes/js/dijit/tests/_base/viewport.js @@ -0,0 +1,10 @@ +if(!dojo._hasResource["dijit.tests._base.viewport"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.tests._base.viewport"] = true; +dojo.provide("dijit.tests._base.viewport"); + +if(dojo.isBrowser){ + doh.registerUrl("dijit.tests._base.viewport", dojo.moduleUrl("dijit", "tests/_base/viewport.html")); + doh.registerUrl("dijit.tests._base.viewportStrict", dojo.moduleUrl("dijit", "tests/_base/viewportStrict.html")); +} + +} diff --git a/includes/js/dijit/tests/_base/viewportStrict.html b/includes/js/dijit/tests/_base/viewportStrict.html new file mode 100644 index 0000000..812c796 --- /dev/null +++ b/includes/js/dijit/tests/_base/viewportStrict.html @@ -0,0 +1,81 @@ + + + + dijit.getViewport() test + + + + + + + +
+

dijit.getViewport() test

+
padding div
+ + +
    +
  1. check results div below to see that before adding text, document is smaller than viewport +
  2. after adding text, document should be bigger than viewport,and check that viewport size hasn't changed, + except maybe being a little bit smaller (about 15px) because of the size of the scrollbars +
  3. resize browser window and click the "recompute size" button; reported viewport size should change +
  4. scroll the window and click "recompute size" to see that the scroll position is taken into effect +
+
+
+ + diff --git a/includes/js/dijit/tests/_base/wai.html b/includes/js/dijit/tests/_base/wai.html new file mode 100644 index 0000000..50ab8ca --- /dev/null +++ b/includes/js/dijit/tests/_base/wai.html @@ -0,0 +1,115 @@ + + + Dijit wai unit test + + + + +
+
+
+ +
+ + diff --git a/includes/js/dijit/tests/_base/wai.js b/includes/js/dijit/tests/_base/wai.js new file mode 100644 index 0000000..3bd299a --- /dev/null +++ b/includes/js/dijit/tests/_base/wai.js @@ -0,0 +1,9 @@ +if(!dojo._hasResource["dijit.tests._base.wai"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.tests._base.wai"] = true; +dojo.provide("dijit.tests._base.wai"); + +if(dojo.isBrowser){ + doh.registerUrl("dijit.tests._base.wai", dojo.moduleUrl("dijit", "tests/_base/wai.html")); +} + +} diff --git a/includes/js/dijit/tests/_data/categories.json b/includes/js/dijit/tests/_data/categories.json new file mode 100644 index 0000000..3717e1e --- /dev/null +++ b/includes/js/dijit/tests/_data/categories.json @@ -0,0 +1,12 @@ +{ + identifier: 'id', + label: 'name', + items: [ + { id: '0', name:'Foods', numberOfItems:1, children:[ {_reference: '1'}, {_reference: '2'}, {_reference: '3'} ] }, + { id: '1', name:'Fruits', numberOfItems:1, children:[ {_reference: '4'} ] }, + { id: '4',name:'Citrus', numberOfItems:1, items:[ {_reference: '5'} ] }, + { id: '5', name:'Orange'}, + { id: '2', name:'Vegetables', numberOfItems:0}, + { id: '3', name:'Cereals', numberOfItems:0} + ] +} diff --git a/includes/js/dijit/tests/_data/categoriesNested.json b/includes/js/dijit/tests/_data/categoriesNested.json new file mode 100644 index 0000000..05fb89c --- /dev/null +++ b/includes/js/dijit/tests/_data/categoriesNested.json @@ -0,0 +1,13 @@ +{ + identifier: 'id', + label: 'name', + items: [ + { id: '0', name:'Fruits', numberOfItems:1, children:[ + { id: '1',name:'Citrus', numberOfItems:1, items:[ + { id: '4', name:'Orange'} + ]} + ]}, + { id: '2', name:'Vegetables', numberOfItems:0}, + { id: '3', name:'Cereals', numberOfItems:0} + ] +} diff --git a/includes/js/dijit/tests/_data/countries.json b/includes/js/dijit/tests/_data/countries.json new file mode 100644 index 0000000..3f16d0b --- /dev/null +++ b/includes/js/dijit/tests/_data/countries.json @@ -0,0 +1,45 @@ +{ identifier: 'name', + label: 'name', + items: [ + { name:'Africa', type:'continent', population:'900 million', area: '30,221,532 sq km', + timezone: '-1 UTC to +4 UTC', + children:[{_reference:'Egypt'}, {_reference:'Kenya'}, {_reference:'Sudan'}] }, + { name:'Egypt', type:'country' }, + { name:'Kenya', type:'country', + children:[{_reference:'Nairobi'}, {_reference:'Mombasa'}] }, + { name:'Nairobi', type:'city' }, + { name:'Mombasa', type:'city' }, + { name:'Sudan', type:'country', + children:{_reference:'Khartoum'} }, + { name:'Khartoum', type:'city' }, + { name:'Asia', type:'continent', + children:[{_reference:'China'}, {_reference:'India'}, {_reference:'Russia'}, {_reference:'Mongolia'}] }, + { name:'China', type:'country' }, + { name:'India', type:'country' }, + { name:'Russia', type:'country' }, + { name:'Mongolia', type:'country' }, + { name:'Australia', type:'continent', population:'21 million', + children:{_reference:'Commonwealth of Australia'}}, + { name:'Commonwealth of Australia', type:'country', population:'21 million'}, + { name:'Europe', type:'continent', + children:[{_reference:'Germany'}, {_reference:'France'}, {_reference:'Spain'}, {_reference:'Italy'}] }, + { name:'Germany', type:'country' }, + { name:'France', type:'country' }, + { name:'Spain', type:'country' }, + { name:'Italy', type:'country' }, + { name:'North America', type:'continent', + children:[{_reference:'Mexico'}, {_reference:'Canada'}, {_reference:'United States of America'}] }, + { name:'Mexico', type:'country', population:'108 million', area:'1,972,550 sq km', + children:[{_reference:'Mexico City'}, {_reference:'Guadalajara'}] }, + { name:'Mexico City', type:'city', population:'19 million', timezone:'-6 UTC'}, + { name:'Guadalajara', type:'city', population:'4 million', timezone:'-6 UTC' }, + { name:'Canada', type:'country', population:'33 million', area:'9,984,670 sq km', + children:[{_reference:'Ottawa'}, {_reference:'Toronto'}] }, + { name:'Ottawa', type:'city', population:'0.9 million', timezone:'-5 UTC'}, + { name:'Toronto', type:'city', population:'2.5 million', timezone:'-5 UTC' }, + { name:'United States of America', type:'country' }, + { name:'South America', type:'continent', + children:[{_reference:'Brazil'}, {_reference:'Argentina'}] }, + { name:'Brazil', type:'country', population:'186 million' }, + { name:'Argentina', type:'country', population:'40 million' } +]} diff --git a/includes/js/dijit/tests/_data/dijits.json b/includes/js/dijit/tests/_data/dijits.json new file mode 100644 index 0000000..160581b --- /dev/null +++ b/includes/js/dijit/tests/_data/dijits.json @@ -0,0 +1 @@ +{"timestamp":1193692111,"items":[{"namespace":"dijit","className":"dijit.ColorPalette","summary":"Grid showing various colors, so the user can pick a certain color","description":null,"examples":null},{"namespace":"dijit","className":"dijit.Declaration","summary":"The Declaration widget allows a user to declare new widget\nclasses directly from a snippet of markup.","description":null,"examples":null},{"namespace":"dijit","className":"dijit.DialogUnderlay","summary":"the thing that grays out the screen behind the dialog\n\nTemplate has two divs; outer div is used for fade-in\/fade-out, and also to hold background iframe.\nInner div has opacity specified in CSS file.","description":null,"examples":null},{"namespace":"dijit","className":"dijit.Dialog","summary":"Pops up a modal dialog window, blocking access to the screen\nand also graying out the screen Dialog is extended from\nContentPane so it supports all the same parameters (href, etc.)","description":null,"examples":null},{"namespace":"dijit","className":"dijit.TooltipDialog","summary":"Pops up a dialog that appears like a Tooltip","description":null,"examples":null},{"namespace":"dijit","className":"dijit.Editor","summary":"A rich-text Editing widget","description":null,"examples":null},{"namespace":"dijit","className":"dijit.InlineEditBox","summary":"Behavior for an existing node (

,

, , etc.) so that\nwhen you click it, an editor shows up in place of the original\ntext. Optionally, Save and Cancel button are displayed below the edit widget.\nWhen Save is clicked, the text is pulled from the edit\nwidget and redisplayed and the edit widget is again hidden.\nBy default a plain Textarea widget is used as the editor (or for\ninline values a TextBox), but you can specify an editor such as\ndijit.Editor (for editing HTML) or a Slider (for adjusting a number).\nAn edit widget must support the following API to be used:\nString getDisplayedValue() OR String getValue()\nvoid setDisplayedValue(String) OR void setValue(String)\nvoid focus()","description":null,"examples":null},{"namespace":"dijit","className":"dijit._InlineEditor","summary":"internal widget used by InlineEditBox, displayed when in editing mode\nto display the editor and maybe save\/cancel buttons. Calling code should\nconnect to save\/cancel methods to detect when editing is finished\n\nHas mainly the same parameters as InlineEditBox, plus these values:\n\nstyle: Object\nSet of CSS attributes of display node, to replicate in editor\n\nvalue: String\nValue as an HTML string or plain text string, depending on renderAsHTML flag","description":null,"examples":null},{"namespace":"dijit","className":"dijit.Menu","summary":null,"description":null,"examples":null},{"namespace":"dijit","className":"dijit.MenuItem","summary":"A line item in a Menu2\n\nMake 3 columns\nicon, label, and expand arrow (BiDi-dependent) indicating sub-menu","description":null,"examples":null},{"namespace":"dijit","className":"dijit.PopupMenuItem","summary":null,"description":null,"examples":null},{"namespace":"dijit","className":"dijit.MenuSeparator","summary":"A line between two menu items","description":null,"examples":null},{"namespace":"dijit","className":"dijit.ProgressBar","summary":"a progress widget\n\nusage:\n
","examples":null},{"namespace":"dijit","className":"dijit.form.RadioButton","summary":"Same as an HTML radio, but with fancy styling.","description":"This shared object keeps track of all widgets, grouped by name","examples":null},{"namespace":"dijit","className":"dijit.form.ComboBoxMixin","summary":"Auto-completing text box, and base class for FilteringSelect widget.\n\nThe drop down box's values are populated from an class called\na data provider, which returns a list of values based on the characters\nthat the user has typed into the input box.\n\nSome of the options to the ComboBox are actually arguments to the data\nprovider.\n\nYou can assume that all the form widgets (and thus anything that mixes\nin ComboBoxMixin) will inherit from _FormWidget and thus the \"this\"\nreference will also \"be a\" _FormWidget.","description":null,"examples":null},{"namespace":"dijit","className":"dijit.form._ComboBoxMenu","summary":"these functions are called in showResultList","description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.ComboBox","summary":null,"description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.CurrencyTextBox","summary":null,"description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.DateTextBox","summary":"A validating, serializable, range-bound date text box.","description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.FilteringSelect","summary":null,"description":null,"examples":null},{"namespace":"dijit","className":"dijit.form._FormMixin","summary":null,"description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.Form","summary":null,"description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.InlineEditBox","summary":null,"description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.NumberSpinner","summary":"Number Spinner","description":"This widget is the same as NumberTextBox but with up\/down arrows added","examples":null},{"namespace":"dijit","className":"dijit.form.NumberTextBoxMixin","summary":"A mixin for all number textboxes","description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.NumberTextBox","summary":"A validating, serializable, range-bound text box.\nconstraints object: min, max, places","description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.HorizontalSlider","summary":"A form widget that allows one to select a value with a horizontally draggable image","description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.VerticalSlider","summary":"A form widget that allows one to select a value with a vertically draggable image","description":null,"examples":null},{"namespace":"dijit","className":"dijit.form._SliderMover","summary":null,"description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.HorizontalRule","summary":null,"description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.VerticalRule","summary":null,"description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.HorizontalRuleLabels","summary":null,"description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.VerticalRuleLabels","summary":null,"description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.TextBox","summary":"A generic textbox field.\nServes as a base class to derive more specialized functionality in subclasses.","description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.Textarea","summary":"event handlers, you can over-ride these in your own subclasses","description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.TimeTextBox","summary":"NaN\nNaN","description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.ValidationTextBox","summary":"default values for new subclass properties","description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.MappedTextBox","summary":"A subclass of ValidationTextBox.\nProvides a hidden input field and a serialize method to override","description":null,"examples":null},{"namespace":"dijit","className":"dijit.form.RangeBoundTextBox","summary":"A subclass of MappedTextBox.\nTests for a value out-of-range","description":null,"examples":null},{"namespace":"dijit","className":"dijit.form._FormWidget","summary":null,"description":null,"examples":null},{"namespace":"dijit","className":"dijit.form._Spinner","summary":"Mixin for validation widgets with a spinner","description":"This class basically (conceptually) extends dijit.form.ValidationTextBox.\nIt modifies the template to have up\/down arrows, and provides related handling code.","examples":null},{"namespace":"dijit","className":"dijit.layout.AccordionContainer","summary":"Holds a set of panes where every pane's title is visible, but only one pane's content is visible at a time,\nand switching between panes is visualized by sliding the other panes up\/down.\nusage:\n
\n
\n
...<\/div>\n<\/div>\n
\n

This is some text<\/p>\n...\n<\/div>","description":null,"examples":null},{"namespace":"dijit","className":"dijit.layout.AccordionPane","summary":"AccordionPane is a ContentPane with a title that may contain another widget.\nNested layout widgets, such as SplitContainer, are not supported at this time.","description":null,"examples":null},{"namespace":"dijit","className":"dijit.layout.ContentPane","summary":"A widget that acts as a Container for other widgets, and includes a ajax interface","description":"A widget that can be used as a standalone widget\nor as a baseclass for other widgets\nHandles replacement of document fragment using either external uri or javascript\ngenerated markup or DOM content, instantiating widgets within that content.\nDon't confuse it with an iframe, it only needs\/wants document fragments.\nIt's useful as a child of LayoutContainer, SplitContainer, or TabContainer.\nBut note that those classes can contain any widget as a child.\nexample:\nSome quick samples:\nTo change the innerHTML use .setContent('new content<\/b>')\n\nOr you can send it a NodeList, .setContent(dojo.query('div [class=selected]', userSelection))\nplease note that the nodes in NodeList will copied, not moved\n\nTo do a ajax update use .setHref('url')","examples":null},{"namespace":"dijit","className":"dijit.layout.LayoutContainer","summary":"Provides Delphi-style panel layout semantics.\n\ndetails\nA LayoutContainer is a box with a specified size (like style=\"width: 500px; height: 500px;\"),\nthat contains children widgets marked with \"layoutAlign\" of \"left\", \"right\", \"bottom\", \"top\", and \"client\".\nIt takes it's children marked as left\/top\/bottom\/right, and lays them out along the edges of the box,\nand then it takes the child marked \"client\" and puts it into the remaining space in the middle.\n\nLeft\/right positioning is similar to CSS's \"float: left\" and \"float: right\",\nand top\/bottom positioning would be similar to \"float: top\" and \"float: bottom\", if there were such\nCSS.\n\nNote that there can only be one client element, but there can be multiple left, right, top,\nor bottom elements.\n\nusage\n + + + + + + + + + + +

Rich Text Test

+ +
+

test case for bug #6112

+ +
+ + diff --git a/includes/js/dijit/tests/_editor/test_CustomPlugin.html b/includes/js/dijit/tests/_editor/test_CustomPlugin.html new file mode 100644 index 0000000..eb8f650 --- /dev/null +++ b/includes/js/dijit/tests/_editor/test_CustomPlugin.html @@ -0,0 +1,151 @@ + + + + Editor Custom Plugin Test/Tutorial + + + + + + + + +

+ This editor should have my custom create link plugin +

+ + \ No newline at end of file diff --git a/includes/js/dijit/tests/_editor/test_RichText.html b/includes/js/dijit/tests/_editor/test_RichText.html new file mode 100644 index 0000000..0428edf --- /dev/null +++ b/includes/js/dijit/tests/_editor/test_RichText.html @@ -0,0 +1,59 @@ + + + + + Rich Text System Test + + + + + + + + + + + + +

Rich Text Test

+ +
+

thud

+ + + +
+ +
+

blah

+
+
    +
  • Right click on the client area of the page (ctrl-click for Macintosh). Menu should open.
  • +
  • Right click on each of the form controls above. Menu should open.
  • +
  • Right click near the righthand window border. Menu should open to the left of the pointer.
  • +
  • Right click near the bottom window border. Menu should open above the pointer.
  • +
+
+

..after

+
+ + + diff --git a/includes/js/dijit/tests/_editor/test_ToggleDir.html b/includes/js/dijit/tests/_editor/test_ToggleDir.html new file mode 100644 index 0000000..ec66c75 --- /dev/null +++ b/includes/js/dijit/tests/_editor/test_ToggleDir.html @@ -0,0 +1,37 @@ + + + + Editor Test2 + + + + + + + + +
+ +
+ + diff --git a/includes/js/dijit/tests/_editor/test_richtext.css b/includes/js/dijit/tests/_editor/test_richtext.css new file mode 100644 index 0000000..933acb8 --- /dev/null +++ b/includes/js/dijit/tests/_editor/test_richtext.css @@ -0,0 +1,4 @@ +h1 { + border: 1px solid black; + background-color:red; +} diff --git a/includes/js/dijit/tests/_editor/test_richtext.css.commented.css b/includes/js/dijit/tests/_editor/test_richtext.css.commented.css new file mode 100644 index 0000000..933acb8 --- /dev/null +++ b/includes/js/dijit/tests/_editor/test_richtext.css.commented.css @@ -0,0 +1,4 @@ +h1 { + border: 1px solid black; + background-color:red; +} diff --git a/includes/js/dijit/tests/_programaticTest.html b/includes/js/dijit/tests/_programaticTest.html new file mode 100644 index 0000000..41b1815 --- /dev/null +++ b/includes/js/dijit/tests/_programaticTest.html @@ -0,0 +1,109 @@ + + + + Dijit raw programatic test suite | The Dojo Toolkit + + + + + + + + + + +
+ + + diff --git a/includes/js/dijit/tests/_testCommon.js b/includes/js/dijit/tests/_testCommon.js new file mode 100644 index 0000000..519675f --- /dev/null +++ b/includes/js/dijit/tests/_testCommon.js @@ -0,0 +1,103 @@ +/* + _testCommon.js - a simple module to be included in dijit test pages to allow + for easy switching between the many many points of the test-matrix. + + in your test browser, provides a way to switch between available themes, + and optionally enable RTL (right to left) mode, and/or dijit_a11y (high- + constrast/image off emulation) ... probably not a genuine test for a11y. + + usage: on any dijit test_* page, press ctrl-f9 to popup links. + + there are currently (2 themes * 4 tests) * (10 variations of supported browsers) + not including testing individual locale-strings + + you should not be using this in a production enviroment. include + your css and set your classes manually. for test purposes only ... +*/ + +(function(){ + var d = dojo; + var theme = false; var testMode; + if(window.location.href.indexOf("?") > -1){ + var str = window.location.href.substr(window.location.href.indexOf("?")+1).split(/#/); + var ary = str[0].split(/&/); + for(var i=0; i'); + document.write(''); + + if(dojo.config.parseOnLoad){ + dojo.config.parseOnLoad = false; + dojo.config._deferParsing = true; + } + + d.addOnLoad(function(){ + + // set the classes + if(!d.hasClass(d.body(),theme)){ d.addClass(d.body(),theme); } + if(testMode){ d.addClass(d.body(),testMode); } + + // test-link matrix code: + var node = document.createElement('div'); + node.id = "testNodeDialog"; + d.addClass(node,"dijitTestNodeDialog"); + d.body().appendChild(node); + + _populateTestDialog(node); + + d.connect(document,"onkeypress", function _testNodeShow(/* Event */evt){ + var key = (evt.charCode == d.keys.SPACE ? d.keys.SPACE : evt.keyCode); + if(evt.ctrlKey && (key == d.keys.F9)){ // F9 is generic enough? + d.style('testNodeDialog',"top",(dijit.getViewport().t + 4) +"px"); + d.toggleClass('testNodeDialog',"dijitTestNodeShowing"); + } + }); + + if(dojo.config._deferParsing){ d.parser.parse(d.body()); } + + }); + + var _populateTestDialog = function(/* DomNode */node){ + // pseudo-function to populate our test-martix-link pop-up + var base = window.location.pathname; + var str = ""; + var themes = ["tundra",/*"noir", */ "soria", "nihilo" /* ,"squid" */ ]; + str += "Tests:
"; + d.forEach(themes,function(t){ + str += ''+ + ''+ + ''+ + ''+ + // too many potential locales to list, use &locale=[lang] to set + ''; + }); + str += ''; + str += ''; + node.innerHTML = str + "
'+t+'rtla11ya11y+rtl
jump to: themeTester
or: tests folder
"; + } +})(); diff --git a/includes/js/dijit/tests/css/dijitTests.css b/includes/js/dijit/tests/css/dijitTests.css new file mode 100644 index 0000000..cc2f7e4 --- /dev/null +++ b/includes/js/dijit/tests/css/dijitTests.css @@ -0,0 +1,69 @@ + +body { + background:#fff url("../images/testsBodyBg.gif") repeat-x top left; + padding:2em 2em 2em 2em; +} +h1.testTitle { + font-size:2em; + margin:0 0 1em 0; +} +.plusIcon, .plusBlockIcon { + background-image: url(../images/plus.gif); + background-repeat: no-repeat; + width: 16px; + height: 16px; +} +.plusBlockIcon { + display: block !important; +} +.noteIcon { + background-image: url(../images/note.gif); + background-repeat: no-repeat; + width: 20px; + height: 20px; +} +.flatScreenIcon { + background-image: url(../images/flatScreen.gif); + background-repeat: no-repeat; + width: 32px; + height: 32px; +} +.dijitTestNodeDialog { + position:absolute; + top:5px; + right:5px; + display:block; + width:200px; + visibility:hidden; + background-color:#fff !important; + color:#000 !important; + border:1px solid #000; + padding:5px; +} +.dijitTestNodeDialog table { + background-color:#fff !important; +} +.dijitTestNodeDialog td { + padding:3px; +} +.dijitTestNodeShowing { + visibility:visible; +} +.customFolderOpenedIcon, .customFolderClosedIcon { + background-image: url('../../demos/mail/icons.png'); + background-repeat: no-repeat; + width: 16px; + height: 16px; + text-align: center; + padding-right:4px; + background-position: -44px; +} +.dj_ie6 .customFolderOpenedIcon, .dj_ie6 .customFolderClosedIcon { + background-image: url('../../demos/mail/icons.gif'); +} +.customFolderClosedIcon { + background-position: -154px; +} +body .medium { + font-size: larger; +} diff --git a/includes/js/dijit/tests/css/dijitTests.css.commented.css b/includes/js/dijit/tests/css/dijitTests.css.commented.css new file mode 100644 index 0000000..dc91d16 --- /dev/null +++ b/includes/js/dijit/tests/css/dijitTests.css.commented.css @@ -0,0 +1,78 @@ +/* Test file styles for Dijit widgets */ + +body { + background:#fff url("../images/testsBodyBg.gif") repeat-x top left; + padding:2em 2em 2em 2em; +} + +h1.testTitle { + font-size:2em; + margin:0 0 1em 0; +} + +/* Icons used in the tests */ + +.plusIcon, .plusBlockIcon { + background-image: url(../images/plus.gif); + background-repeat: no-repeat; + width: 16px; + height: 16px; +} +.plusBlockIcon { + display: block !important; +} +.noteIcon { + background-image: url(../images/note.gif); + background-repeat: no-repeat; + width: 20px; + height: 20px; +} +.flatScreenIcon { + background-image: url(../images/flatScreen.gif); + background-repeat: no-repeat; + width: 32px; + height: 32px; +} +.dijitTestNodeDialog { + position:absolute; + top:5px; + right:5px; + display:block; + width:200px; + visibility:hidden; + background-color:#fff !important; + color:#000 !important; + border:1px solid #000; + padding:5px; +} +.dijitTestNodeDialog table { + background-color:#fff !important; +} +.dijitTestNodeDialog td { + padding:3px; +} +.dijitTestNodeShowing { + visibility:visible; +} + +.customFolderOpenedIcon, .customFolderClosedIcon { + background-image: url('../../demos/mail/icons.png'); /* mail icons sprite image */ + background-repeat: no-repeat; + width: 16px; + height: 16px; + text-align: center; + padding-right:4px; + background-position: -44px; +} + +.dj_ie6 .customFolderOpenedIcon, .dj_ie6 .customFolderClosedIcon { + background-image: url('../../demos/mail/icons.gif'); +} + +.customFolderClosedIcon { + background-position: -154px; +} + +body .medium { + font-size: larger; /* help test widget sizing */ +} diff --git a/includes/js/dijit/tests/form/Form.html b/includes/js/dijit/tests/form/Form.html new file mode 100644 index 0000000..312399a --- /dev/null +++ b/includes/js/dijit/tests/form/Form.html @@ -0,0 +1,354 @@ + + + + + Form unit test + + + + + + + +

Form Widget Unit Test

+

+ The form widget takes data in a form and serializes/deserializes it, so + it can be submitted as a JSON string of nested objects. +

+
Currently only widgets are supported, not raw elements.
+ +
+ + + +

Just HTML text

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DescriptionNameForm node/widget
DateTextBox inside contentpanefoo.bar.baz.quux +
+ +
+
Layoutcontainer +
+
DateTextBox 1available.from + +
DateTextBox 2available.to + +
ComboBoxplop.combo + +
CheckBox widgetcb2 + 1 + 2 + 3 + 4 +
Radio widgetr2 + 1 + 2 + 3 + 4 +
Multi-selectms1 + +
Hidden inputh1 + +
Auto-sizing textareat1 + +
Fixed size textareast1 + +
Editor widgetrichtext + +
File uploadfilename + +
+ + + + + +
+ + + + diff --git a/includes/js/dijit/tests/form/Form.js b/includes/js/dijit/tests/form/Form.js new file mode 100644 index 0000000..f0f6d8d --- /dev/null +++ b/includes/js/dijit/tests/form/Form.js @@ -0,0 +1,9 @@ +if(!dojo._hasResource["dijit.tests.form.Form"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.tests.form.Form"] = true; +dojo.provide("dijit.tests.form.Form"); + +if(dojo.isBrowser){ + doh.registerUrl("dijit.tests.form.Form", dojo.moduleUrl("dijit", "tests/form/Form.html")); +} + +} diff --git a/includes/js/dijit/tests/form/images/Alabama.jpg b/includes/js/dijit/tests/form/images/Alabama.jpg new file mode 100644 index 0000000..f2018e6 Binary files /dev/null and b/includes/js/dijit/tests/form/images/Alabama.jpg differ diff --git a/includes/js/dijit/tests/form/test_Button.html b/includes/js/dijit/tests/form/test_Button.html new file mode 100644 index 0000000..7c04f50 --- /dev/null +++ b/includes/js/dijit/tests/form/test_Button.html @@ -0,0 +1,286 @@ + + + + Dojo Button Widget Test + + + + + + + + + +

Dijit Button Test

+

Simple, drop down & combo buttons

+

+ Buttons can do an action, display a menu, or both: +

+
+ + tooltip on button +
+ Edit! +
+
Cut
+
Copy
+
Paste
+
+
+ Submenu + +
+
+
+
+ Color + +
+
+ Save + +
+ +
+
+

Buttons with no text label

+

Buttons have showLabel=false so text is not displayed. Should have title attribute displayed on mouse over

+
+ +
+ Color + +
+
+ Save + +
+
+
+

Toggle buttons

+

The button CSS as well as the icon CSS can change on toggle

+
+ + +
+
+

Sizing

+

Short button, tall buttons, big buttons, small buttons... + These buttons size to their content (just like <button>).

+
+ + + + +
+
+
+

Customized buttons

+

Dojo users can customize styles. Here's an example:

+ +
+ + + +
+
+

Toggling the display test

+

+ (Ticket #403) +

+
+ +
+ +
+

Programatically changing buttons

+

clicking the buttons below will change the buttons above

+ +
+ + + +
+

Button instantiated via javacript:

+
+ +

DropDownButton instantiated via javacript:

+ + + + + + + diff --git a/includes/js/dijit/tests/form/test_CheckBox.html b/includes/js/dijit/tests/form/test_CheckBox.html new file mode 100644 index 0000000..4358270 --- /dev/null +++ b/includes/js/dijit/tests/form/test_CheckBox.html @@ -0,0 +1,127 @@ + + + + CheckBox Widget Demo + + + + + + + + + +

Dijit CheckBox Test

+

+ Here are some checkboxes. Try clicking, and hovering, tabbing, and using the space bar to select: +

+ + +
+ + +
+ + +
+ + + "onChange" handler updates: [] +
+ + +
+ + +
+ + +
+
+ +
+ + + + + + + "onChange" handler updates: [] +
+

+ Here are some radio buttons. Try clicking, and hovering, tabbing, and arrowing +

+

+ Radio group #1: + + + + + + +

+

+ Radio group #2: (no default value, and has breaks)
+ +
+ +
+ +
+ (Note if using keyboard: tab to navigate, and use arrow or space to select) +

+

+ Radio group #3 (native radio buttons): + + + + + + +

+ +
+ + + + diff --git a/includes/js/dijit/tests/form/test_ComboBox.html b/includes/js/dijit/tests/form/test_ComboBox.html new file mode 100644 index 0000000..895a968 --- /dev/null +++ b/includes/js/dijit/tests/form/test_ComboBox.html @@ -0,0 +1,289 @@ + + + + Dojo ComboBox Widget Test + + + + + + + + + + +

Dojo ComboBox Widget Test

+

+A ComboBox is like a text <input> field (ie, you can input any value you want), +but it also has a list of suggested values that you can choose from. +The drop down list is filtered by the data you have already typed in. +

+
+ +

ComboBox #1: inlined data, autoComplete=false, default value of Iowa, pageSize=30

+ (200% Courier font): + +
onChange: + + + +
+ +
+ +
+ +

ComboBox #2: url, autoComplete=true:

+ (8pt font): + + Value: +
+ (150% font): + + Hey look, this one is kind of useful. +
+ +

ComboBox #3: initially disabled, url, autoComplete=false:

+ + + Value: +
+ +
+
+

ComboBox #4: url, autoComplete=false required=true:

+ + + Value: +
+

A ComboBox with no arrow

+ +
+

A combo created by createWidget

+ +
+

A ComboBox with an initial query. (Limits list to items with type = country.)

+ +
+ + + +
+

+This is some text below the ComboBoxes. It shouldn't get pushed out of the way when search results get returned. +also: adding a simple combo box to test IE bleed through problem: +

+ + +

Some tests:

+
    +
  1. Type in D - dropdown shows Delaware and District of columbia. [Would be nice if it bolded the D's in the dropdown list!]
  2. +
  3. Type in DX - input box shows DX and no dropdown.
  4. +
  5. Open dropdown, click an item, it selects and closes dropdown.
  6. +
  7. Click triangle icon - dropdown shows. Click it again - dropdown goes.
  8. +
  9. Check that you can type in more than required (e.g. alaba for alabama) and it still correctly shows alabama
  10. +
  11. Tab into the combo works, list should not apear.
  12. +
  13. Tab out of the combo works - closes dropdown and goes to next control (focus should not go to the dropdown because tabindex="-1").
  14. +
  15. Do the dropdown and click outside of it - the dropdown disappears.
  16. +
  17. Javascript disabled -> fallback to old style combo?
  18. +
  19. Can you paste in the start of a match? [no]
  20. +
  21. Backspace to start - dropdown shows all all items
  22. +
  23. Backspace deselects last character [Borked: currently you have to backspace twice]
  24. +
  25. Press down key to open dropdown
  26. +
  27. Down and up keys select previous/next in dropdown.
  28. +
  29. Non-alpha keys (F12, ctrl-c, whatever) should not affect dropdown.
  30. +
  31. Press down arrow to highlight an item, pressing enter selects it and closes dropdown.
  32. +
  33. Press down arrow to highlight an item, pressing space selects it and closes dropdown.
  34. +
  35. Check that pressing escape undoes the previous action and closes the dropdown
  36. +
  37. Check that pressing escape again clears the input box.
  38. +
  39. In IE, mouse scroll wheel scrolls through the list. Scrolls by 1 item per click even if user has set mouse to scroll more than 1 in mouse settings. Only scrolls if text input has focus (page scrolling works as normal otherwise)
  40. +
  41. In IE, dropdown list does not go behind the second combo (special code to manage this).
  42. +
  43. Check dropdown is aligned correctly with bottom of the text input
  44. +
  45. Probably should try the combo in a relative div or absolute div and see where the dropdown ends up. (Strongly suspect problems in this area in IE - boo)
  46. +
  47. Try repeatably droppingdown and closing the dropdown. Shouldnt get hung [sometimes flicks closed just after opening due to timers, but not a biggie]
  48. +
  49. Check that default selection of the text makes sense. e.g. text is selected after picking an item, on tabbing in to text input etc)
  50. +
  51. Check that dropdown is smooth [looks uggy on second keypress in FF - hides then shows]
  52. +
  53. Clear the field. Type in A and then tab *very quickly* and see if the results make sense (the dropdown is on a timer - searchTimer)
  54. +
  55. Clear the field and enter an invalid entry and tab out e.g. Qualude. Does that make sense given the combobox setup options?
  56. +
  57. (Add any other tests here)
  58. +
+
+ +
+ + diff --git a/includes/js/dijit/tests/form/test_ComboBox_destroy.html b/includes/js/dijit/tests/form/test_ComboBox_destroy.html new file mode 100644 index 0000000..0713b19 --- /dev/null +++ b/includes/js/dijit/tests/form/test_ComboBox_destroy.html @@ -0,0 +1,58 @@ + + + + Dojo ComboBox Widget Destruction Issue + + + + + + + + + +

Dojo ComboBox Widget Destruction Issue

+

+ ComboBox does not destroy itself properly, leading to a + JavaScript error. Could it have something to do with not disconnecting + events? +

+

+ Steps: +
    +
  1. Pick a state from the combo box below.
  2. +
  3. Click the "killit" button, which calls destroy on the widget.
  4. +
  5. Observe the JavaScript error.
  6. +
+

+
+ + +
+ + diff --git a/includes/js/dijit/tests/form/test_DateTextBox.html b/includes/js/dijit/tests/form/test_DateTextBox.html new file mode 100644 index 0000000..d36ac73 --- /dev/null +++ b/includes/js/dijit/tests/form/test_DateTextBox.html @@ -0,0 +1,156 @@ + + + + Test DateTextBox Widget + + + + + + + + + + +

Test DateTextBox Widget

+ +
+
+ + DateTextBox class, no attributes +
+
+ + onChange: +
+
+ + DateTextBox class, + Attributes: required="true", trim="true", constraints={min:'2004-01-01',max:'2006-12-31',formatLength:'long'}. Works for leap years +
+
+ + onChange: + + +
+
+ + DateTextBox class, + Attributes: lang="en-us", required="true", constraints={min:'2004-01-01',max:'2006-12-31'}. Works for leap years +
+
+ +
+
+ + DateTextBox class, + Attributes: lang="de-de", constraints={min:2004-01-01, max:2006-12-31}. Works for leap years +
+
+ +
+ +
+ + Date, overriding pattern with dd-MM-yyyy +
+
+ +
+ + + + + +
+ +
+
+ From: + To: +
+ +
+ + + +
+
+ + diff --git a/includes/js/dijit/tests/form/test_FilteringSelect.html b/includes/js/dijit/tests/form/test_FilteringSelect.html new file mode 100644 index 0000000..d40af13 --- /dev/null +++ b/includes/js/dijit/tests/form/test_FilteringSelect.html @@ -0,0 +1,296 @@ + + + + Dojo FilteringSelect Widget Test + + + + + + + + + + +

Dojo FilteringSelect Widget Test

+
+
+

The FilteringSelect widget is an enhanced version of HTML's <select> tag.

+

Similar features:

+
    +
  • There is a drop down list of possible values.
  • +
  • You can only enter a value from the drop down list. (You can't enter an arbitrary value.)
  • +
  • The value submitted with the form is the hidden value (ex: CA),
  • +
  • not the displayed value a.k.a. label (ex: California)
  • +
+

+ + +

Enhancements over plain HTML version:

+
    +
  • If you type in some text then it will filter down the list of possible values in the drop down list.
  • +
  • List can be specified either as a static list or via a javascript function (that can get the list from a server)
  • +
+

+ +
+ +
+

FilteringSelect #1: inlined data, autoComplete=false:

+ + + onChange: + + +
+ +
+ +

FilteringSelect #2: url, autoComplete=true:

+ + + Value: + +

FilteringSelect #3: url, autoComplete=false:

+ + + Value: +
+

FilteringSelect #5: custom labelFunc (value in textbox should be lower case when onChange is called), autoComplete=true:

+ + +
+
+ +

FilteringSelect #7: Input method editor Chinese characters

+

Using an input method editor (see IME for Windows) try typing 阿 (a) or 把 (ba).

+ + +
+
+

FilteringSelect #8: Japanese

+

Try typing 東、西、北、南 (north, south, east west) and a few choices will pop up.

+ + + Value: +
+

FilteringSelect #9: No data

+

This FilteringSelect has no options to choose from. It should still load.

+ + +
+
+

FilteringSelect #10: hasDownArrow=false:

+ + +
+
+
+

FilteringSelect #11: deep data, initial query of type=country:

+ + +
+
+

FilteringSelect #12: special characters

+

The drop down list should be:

+
    +
  • sticks & stones +
  • rags --> riches +
  • more\less +
  • 3 * 5 +
+ + +
+
+ + +

+ this is some text below the combo boxes. It shouldn't get pushed out of + the way when search results get returned. also: adding a simple combo + box to test IE bleed through problem: +

+ + + + +
+ + diff --git a/includes/js/dijit/tests/form/test_Form_onsubmit.html b/includes/js/dijit/tests/form/test_Form_onsubmit.html new file mode 100644 index 0000000..d8b43fa --- /dev/null +++ b/includes/js/dijit/tests/form/test_Form_onsubmit.html @@ -0,0 +1,87 @@ + + + + + Form unit test + + + + + + +

Form Widget Unit Test

+
+

This form shouldn't submit, nor reset

+ + + +
+ +
+

This form shouldn't submit, nor reset

+ + + +
+ +
+

This form should submit and reset

+ + + +
+ +
+

This form should submit and reset

+ + + +
+ + diff --git a/includes/js/dijit/tests/form/test_MultiSelect.html b/includes/js/dijit/tests/form/test_MultiSelect.html new file mode 100644 index 0000000..9f03d80 --- /dev/null +++ b/includes/js/dijit/tests/form/test_MultiSelect.html @@ -0,0 +1,138 @@ + + + + Testing MultiSelect form widget | The Dojo Toolkit + + + + + + + + + + + +

dijit.form.MultiSelect:

+ +
+ + + + + + + + + + +

+ + + + + +
+ + + +

markup:

+ + + +

+ + + + diff --git a/includes/js/dijit/tests/form/test_SimpleTextarea.html b/includes/js/dijit/tests/form/test_SimpleTextarea.html new file mode 100644 index 0000000..9462447 --- /dev/null +++ b/includes/js/dijit/tests/form/test_SimpleTextarea.html @@ -0,0 +1,62 @@ + + + + Testing SimpleTextArea | The Dojo Toolkit + + + + + + + + + + + + +

SimpleTextarea

+ +

+ This is a simple text area that doesn't automatically size itself according to it's content. + It can be used inside layout containers. +

+ +

Plain textarea (rows=5, cols=50)

+ + +

In a BorderContainer

+ +
+ + + + + +
+ + diff --git a/includes/js/dijit/tests/form/test_Slider.html b/includes/js/dijit/tests/form/test_Slider.html new file mode 100644 index 0000000..f1d0442 --- /dev/null +++ b/includes/js/dijit/tests/form/test_Slider.html @@ -0,0 +1,208 @@ + + + + Dojo Slider Widget Demo + + + + + + + + + + +

Slider

+ Also try using the arrow keys, buttons, or clicking on the progress bar to move the slider. +
+ +
+
initial value=10, min=0, max=100, pageIncrement=100, onChange event triggers input box value change immediately
+ +
+
    +
    +
    +
      +
    1. lowest
    2. +
    3. normal
    4. +
    5. highest
    6. +
    +
    + + Slider1 Value: +
    + + +
    +
    initial value=10, min=0, max=100, onChange event triggers input box value change when you mouse up or tab away
    +
    +
      +
    1. 0
    2. +
    3. 100
    4. +
    +
    +
    +
      +
      + Slider2 Value: +

      Fancy HTML labels (no slide animation):

      +
      +
      +
        +

      1. small
      2. +

      3. medium
      4. +

      5. large
      6. +
      +
      + +

      Standalone ruler example:

      + +
      +
      +
      +
      +
      +
        +
      1. +
      2. 1
      3. +
      4. 2
      5. +
      +
      + +

      horizontal, with buttons, disabled (to show styling):

      + +
      +
        +
        +
        +
          +
        1. lowest
        2. +
        3. normal
        4. +
        5. highest
        6. +
        +
        + + +

        Completely Programatic VerticalSlider and VerticalRule

        +

        min:1000, max:3000, 11 discrete values, no animation

        + +
        + Programmatic Value: + + + +
        + + +
        + +
        + + diff --git a/includes/js/dijit/tests/form/test_Spinner.html b/includes/js/dijit/tests/form/test_Spinner.html new file mode 100644 index 0000000..e9af53c --- /dev/null +++ b/includes/js/dijit/tests/form/test_Spinner.html @@ -0,0 +1,92 @@ + + + + Dojo Spinner Widget Test + + + + + + + + + + +

        Dijit Spinner Test

        + Try typing values, and use the up/down arrow keys and/or the arrow push + buttons to spin +
        +
        +

        number spinner

        +
        + initial value=900, no delta specified, no min specified, max=1550, onChange captured
        +
        + + onChange: +
        +
        + initial value=1000, delta=10, min=9 max=1550
        + + +
        +
        + initial value not specified, delta not specified, min not specified, max not specified, signed not specified, separator not specified
        + [verify no line break just after this text] + + [verify no line break just before this text] +
        +
        + Move the cursor left and right within the input field to see the effect on the spinner. +
        + initial value=+1.0, delta=0.1, min=-10.9, max=155, places=1, maxLength=20
        +
        + +
        + + +
        + + +
        + +
        + + diff --git a/includes/js/dijit/tests/form/test_Textarea.html b/includes/js/dijit/tests/form/test_Textarea.html new file mode 100644 index 0000000..c885aa6 --- /dev/null +++ b/includes/js/dijit/tests/form/test_Textarea.html @@ -0,0 +1,106 @@ + + + + Dojo Textarea Widget Demo + + + + + + + + + +

        Test Auto-sizing Textarea Widget

        + + +
        + +
        + +
        this is a very simple resizable text area
        + onChange: +
        + + + + +
        + + +
        + + +
        + +
        + + diff --git a/includes/js/dijit/tests/form/test_TimeTextBox.html b/includes/js/dijit/tests/form/test_TimeTextBox.html new file mode 100644 index 0000000..f68a28d --- /dev/null +++ b/includes/js/dijit/tests/form/test_TimeTextBox.html @@ -0,0 +1,143 @@ + + + + Test TimeTextBox Widget + + + + + + + + + + +

        Test TimeTextBox Widget

        + +
        + +
        + + TimeTextBox class, + Attributes: {formatLength:'medium'} +
        +
        + + onChange: +
        + +
        + + TimeTextBox class, + Attributes: {formatLength:'short'} +
        +
        + +
        + +
        + + TimeTextBox class, + Attributes: {timePattern:'h:mm:ss a'} +
        +
        + +
        + +
        + + TimeTextBox class, + Attributes: {timePattern:'HH:mm:ss'} +
        +
        + +
        + +
        + + TimeTextBox class, + Attributes: {timePattern:'HH:mm:ss', clickableIncrement:'T00:15:00', visibleIncrement:'T00:15:00', visibleRange:'T01:00:00'} +
        +
        + +
        + + + +
        + + +
        + +
        + + diff --git a/includes/js/dijit/tests/form/test_validate.html b/includes/js/dijit/tests/form/test_validate.html new file mode 100644 index 0000000..f6d1cde --- /dev/null +++ b/includes/js/dijit/tests/form/test_validate.html @@ -0,0 +1,428 @@ + + + + Test TextBox Validation Widgets + + + + + + + + + + +

        Dijit Validation Widgets

        + +
        + +
        + + TextBox class, tabIndex=2, Attributes: {trim: true, propercase: true, style: 'width:700px'}, First letter of each word is upper case. +
        +
        + +
        onChange: +
        + +
        + + TextBox class, Attributes: {trim: true, uppercase: true, class: 'verylong'}, all letters converted to upper case. +
        +
        + +
        + +
        + + NumberTextBox class, tabIndex=1, Attributes: {trim: true}, no initial value specified, tooltipPosition=[above, below] +
        +
        + +
        + +
        + + ValidationTextBox class, + Attributes: {lowercase: true, required: true, class: verylong, style: font-size: 15pt;}. Displays a prompt message if field is missing. +
        +
        + +
        + +
        + + IntegerTextBox class, + Attributes: {required: true, min:-20000, max:+20000 }, Enter feet above sea level with a sign. +
        +
        + + onChange: +
        + + + +
        + + CurrencyTextBox class, + Attributes: {fractional: true}. Enter whole and cents. Currency symbol is optional. +
        + +
        + USD +  onChange: +
        + +
        + euro currency (local format) fractional part is optional: + EUR + + + +
        + + +
        + euro currency (fixed lang: de-de) programmatically created, fractional part is optional: EUR +
        + + + + +
        + + RegexpTextBox class, + Attributes: {required: true} +
        +
        + +
        + +
        + + (just a test that type attribute is obeyed) +
        +
        + +
        + +
        + + value: null should show up as empty +
        +
        + +
        + + + +
        + + a test that readOnly is understood +
        +
        + + + +
        + + + +
        + + +
        + +
        +

        Tooltip positioning

        +

        + These buttons switch the positions searched to try to place the validation error tooltips. + Note that setting tooltip positioning to "above" or "below" is dangerous if + you have a node with a dropdown, but the drop down might overlap the tooltip. +

        + + + + diff --git a/includes/js/dijit/tests/i18n/README b/includes/js/dijit/tests/i18n/README new file mode 100644 index 0000000..a6516b6 --- /dev/null +++ b/includes/js/dijit/tests/i18n/README @@ -0,0 +1,4 @@ +Global Verification Tests (GVT) + +In order to run these tests, you will need full locale support in Dojo. Dojo only ships with a small subset by default. +See util/buildscripts/cldr for an ant-based build script. diff --git a/includes/js/dijit/tests/i18n/currency.html b/includes/js/dijit/tests/i18n/currency.html new file mode 100644 index 0000000..62108b2 --- /dev/null +++ b/includes/js/dijit/tests/i18n/currency.html @@ -0,0 +1,210 @@ + + + + + Test CurrencyTextBox + + + + + + + + + + + + +

        Dijit TextBox Globalization Test for Currency

        + + +

        + Before start this test, make sure the dojo/cldr/nls contains the data for "zh-cn", "fr-fr", and "ja-jp" + and currencies CNY, EGP, EUR, JPY. If not, convert these CLDR data and put them there. +

        + + + +

        Issues & Comments

        +

        Issue #1Fixed

        +

        + Some browsers like FireFox have a bug on the non-breaking space character (U+00A0, &nbsp; or &#160; or + &#xA0; in HTML). + They always convert the NBSP character to a normal space (U+0020, &#x20; in HTML) automatically in the following circumstances: +

        +
          +
        • Copy text from the page
        • +
        • Use innerHTML to get the content of a certain element
        • +
        • Use value to get an INPUT element's value
        • +
        + +

        + You cannot read a real NBSP character from an INPUT element on these browsers. It causes issues when some formatting data in CLDR + contains an NBSP character. For example, +

        +
          +
        • Many locales like French use an NBSP character as a group separator in numbers
        • +
        • French and Finnish use NBSP characters in their percentage and currency format patterns respectively
        • +
        + +

        + So Dojo may generate formatted data with NBSP characters in it but cannot read NBSP charaters from user's input in some browser. +

        + +

        Issue #2Fixed: the CLDR data generator should be fixed by adding code to convert U+200F to "\u200F" in nls JS files.

        +

        + Most Bidi currency symbols contain an LTR-MARK (U+200F) character at the very beginning. + But Firefox ignores it when it is not in any escaping form. This should be a bug of Firefox. + For example, click alert('‏'.indexOf('\u+200F')) (there is a U+200F in the empty-looking string): +

        +
          +
        • In Firefox, shows "-1" -- no U+200F found
        • +
        • In IE & Opera, shows "0" -- the U+200F is found
        • +
        +

        + But if the U+200F is in some escaping form, Firefox will work as well as other browsers. + Click alert('\u200F'.indexOf('\u+200F')) to see the same result both in Firefox and IE: +

        + + +

        Issue #3Fixed: added a "localeDigit" to the options

        +

        + Strictly speaking, the data conversion must support non-European number characters in some locales like Arabic and Hindi. + For example, ICU formats a number data into Indic number characters by default in the Arabic locale. + However, currently Dojo does not support this feature (Dojo uses the default number conversion of the browser). +

        + + + diff --git a/includes/js/dijit/tests/i18n/date.html b/includes/js/dijit/tests/i18n/date.html new file mode 100644 index 0000000..b4aa4cd --- /dev/null +++ b/includes/js/dijit/tests/i18n/date.html @@ -0,0 +1,155 @@ + + + + + Test DateTextBox + + + + + + + + + + + + + +

        Dijit TextBox Globalization Test for Date

        + + +

        + Before start this test, make sure the dojo/cldr/nls contains the data for "zh-cn", "fr-fr", "ja-jp", "ru-ru", "hi-in", "en-us" and "ar-eg". If not, convert these CLDR data and put them there. +

        + + + + diff --git a/includes/js/dijit/tests/i18n/digit.html b/includes/js/dijit/tests/i18n/digit.html new file mode 100644 index 0000000..dc3ed7a --- /dev/null +++ b/includes/js/dijit/tests/i18n/digit.html @@ -0,0 +1,294 @@ + + + + + Test Hindi/Arabic numerals + + + + + + + + + + + + + +

        Dijit TextBox Globalization Test for Number

        + + +

        + Before start this test, make sure the dojo/cldr/nls contains the data for "ar-eg" and "hi-in". If not, convert these CLDR data and put them there. +

        + + + + + + + diff --git a/includes/js/dijit/tests/i18n/module.js b/includes/js/dijit/tests/i18n/module.js new file mode 100644 index 0000000..b484737 --- /dev/null +++ b/includes/js/dijit/tests/i18n/module.js @@ -0,0 +1,18 @@ +if(!dojo._hasResource["dijit.tests.i18n.module"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.tests.i18n.module"] = true; +dojo.provide("dijit.tests.i18n.module"); + +try{ + if(dojo.isBrowser){ + doh.registerUrl("dijit.tests.i18n.currency", dojo.moduleUrl("dijit", "tests/i18n/currency.html")); + doh.registerUrl("dijit.tests.i18n.date", dojo.moduleUrl("dijit", "tests/i18n/date.html")); + doh.registerUrl("dijit.tests.i18n.number", dojo.moduleUrl("dijit", "tests/i18n/number.html")); + doh.registerUrl("dijit.tests.i18n.textbox", dojo.moduleUrl("dijit", "tests/i18n/textbox.html")); + doh.registerUrl("dijit.tests.i18n.time", dojo.moduleUrl("dijit", "tests/i18n/time.html")); + doh.registerUrl("dijit.tests.i18n.digit", dojo.moduleUrl("dijit", "tests/i18n/digit.html")); + } +}catch(e){ + doh.debug(e); +} + +} diff --git a/includes/js/dijit/tests/i18n/number.html b/includes/js/dijit/tests/i18n/number.html new file mode 100644 index 0000000..0a1b717 --- /dev/null +++ b/includes/js/dijit/tests/i18n/number.html @@ -0,0 +1,136 @@ + + + + + Test NumberTextBox + + + + + + + + + + + + +

        Dijit TextBox Globalization Test for Number

        + + +

        + Before start this test, make sure the dojo/cldr/nls contains the data for "zh-cn", "fr-fr". If not, convert these CLDR data and put them there. +

        + + + + + + diff --git a/includes/js/dijit/tests/i18n/test_i18n.js b/includes/js/dijit/tests/i18n/test_i18n.js new file mode 100644 index 0000000..bc44e63 --- /dev/null +++ b/includes/js/dijit/tests/i18n/test_i18n.js @@ -0,0 +1,206 @@ +var validateValues = []; +var formatWidgetCount = 0; +var validateWidgetCount = 0; + +function getElementsById(id){ + var result = []; + + if(!id || typeof(id) != "string"){ + return result; + } + + var ae = document.getElementsByTagName(dojo.byId(id).tagName); + for(var i = 0; i < ae.length; i++){ + if(ae[i].id == id){ + result.push(ae[i]); + } + } + return result; +} + +function getString(n){ + return n && n.toString(); +} + +function startTest(t){ + startTestFormat(t); + startTestValidate(t); +} + +function escapeEx(s){ + var result = ""; + for(var i = 0; i < s.length; i++){ + var c = s.charAt(i); + switch (c){ + case '"': + result += '\\"'; + break; + case "'": + result += "\\'"; + break; + default: + result += escape(c); + break; + } + } + return result; +} + +function getAllTestCases(){ + var allTestCases = []; + for(var i = 0; i < formatWidgetCount; i++){ + allTestCases.push({ + name: "format-" + i, + runTest: new Function("t", "startTestFormat(" + i + ", t)") + }); + } + for(var i = 0; i < validateWidgetCount; i++){ + allTestCases.push({ + name: "validate-" + i, + runTest: new Function("t", "startTestValidate(" + i + ", t)") + }); + } + return allTestCases; +} + +function startTestFormat(i, t){ + var test_node = dojo.doc.getElementById("test_display_" + i); + var exp = dojo.doc.getElementById("test_display_expected_" + i).value; + var res_node = dojo.doc.getElementById("test_display_result_" + i); + res_node.innerHTML = test_node.value; + res_node.style.backgroundColor = (test_node.value == exp) ? "#AFA" : "#FAA"; + res_node.innerHTML += " Compare (Escaped)"; + t.is(exp, test_node.value); +} + +function startTestValidate(i, t){ + /* + * The dijit.byNode has an issue: cannot handle same id. + */ + var test_node = dojo.doc.getElementById("test_validate_" + i); + var inp_node = dojo.doc.getElementById("test_validate_input_" + i); + var exp = dojo.doc.getElementById("test_validate_expected_" + i).innerHTML; + var res_node = dojo.doc.getElementById("test_validate_result_" + i); + var val_node = dojo.doc.getElementById("test_display_value_" + i); + + test_node.value = inp_node.value; + /* + * The dijit.byNode has an issue. + */ + var widget = null; + var node = test_node; + while ((widget = dijit.byNode(node)) == null){ + node = node.parentNode; + if(!node){ + break; + } + } + + if(widget){ + widget.focus(); + + var expected = validateValues[i]; + var result = widget.getValue(); + if(validateValues[i].processValue){ + expected = validateValues[i].processValue(expected); + result = validateValues[i].processValue(result); + } + var parseCorrect = getString(expected) == getString(result); + val_node.style.backgroundColor = parseCorrect ? "#AFA" : "#FAA"; + val_node.innerHTML = getString(result) + (parseCorrect ? "" : "
        Expected: " + getString(expected)); + + res_node.innerHTML = widget.isValid && !widget.isValid() ? "Wrong" : "Correct"; + res_node.style.backgroundColor = res_node.innerHTML == exp ? "#AFA" : "#FAA"; + + t.is(getString(expected), getString(result)); + } +} + +function genFormatTestCase(desc, dojoType, dojoAttrs, value, expValue, comment){ + dojo.doc.write(""); + dojo.doc.write("" + desc + ""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write("" + comment + ""); + dojo.doc.write(""); + formatWidgetCount++; +} +/* +[ + {attrs: {currency: "CNY", lang: "zh-cn"}, desc: "", value:"-123456789.46", expValue: "", comment: ""}, + ... +] +*/ +function genFormatTestCases(title, dojoType, testCases){ + dojo.doc.write("

        " + title + "

        "); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + + for(var i = 0; i < testCases.length; i++){ + var testCase = testCases[i]; + genFormatTestCase(testCase.desc, dojoType, testCase.attrs, testCase.value, testCase.expValue, testCase.comment); + } + + dojo.doc.write("
        Test DescriptionTestExpectedResultComment
        "); +} + +function genValidateTestCase(desc, dojoType, dojoAttrs, input, value, comment, isWrong){ + dojo.doc.write(""); + dojo.doc.write("" + desc + ""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write("" + (isWrong ? "Wrong" : "Correct") + ""); + dojo.doc.write(""); + dojo.doc.write("" + comment + ""); + dojo.doc.write(""); + validateValues.push(value); + validateWidgetCount++; +} +/* +[ + {attrs: {currency: "CNY", lang: "zh-cn"}, desc: "", value:false, expValue: "-123456789.46", comment: ""}, + ... +] +*/ +function genValidateTestCases(title, dojoType, testCases){ + dojo.doc.write("

        " + title + "

        "); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + dojo.doc.write(""); + + for(var i = 0; i < testCases.length; i++){ + var testCase = testCases[i]; + genValidateTestCase(testCase.desc, dojoType, testCase.attrs, testCase.expValue, testCase.value, testCase.comment, testCase.isWrong); + } + + dojo.doc.write("
        Test DescriptionTestInputParsed ValueExpectedResultComment
        "); +} diff --git a/includes/js/dijit/tests/i18n/textbox.html b/includes/js/dijit/tests/i18n/textbox.html new file mode 100644 index 0000000..573496e --- /dev/null +++ b/includes/js/dijit/tests/i18n/textbox.html @@ -0,0 +1,173 @@ + + + + + Test TextBox + + + + + + + + + + + + +

        Dijit TextBox Globalization Test

        + + + + + +

        Issues & Comments

        +

        Issue #1 Not fixed. Avoid using this function of TextBox.

        +

        + Strictly speaking, all casing manipulation must use ICU case mapping rules (routine). However, the default JavaScript routines used by Dojo + do not support ICU case mapping rules in all browsers. +

        + +

        Issue #2 Not fixed. Avoid using this function of TextBox.

        +

        + Trimming must get rid of all Unicode characters with the white space property. However, the default JavaScript routines used by Dojo + do not support get character properties in some browsers like IE. Other browsers like Firefox might support trimming more white space + characters. +

        + + + + + diff --git a/includes/js/dijit/tests/i18n/time.html b/includes/js/dijit/tests/i18n/time.html new file mode 100644 index 0000000..0a972b9 --- /dev/null +++ b/includes/js/dijit/tests/i18n/time.html @@ -0,0 +1,207 @@ + + + + + Test TextBox for Time + + + + + + + + + + + + + +

        Dijit TextBox Globalization Test for Time

        + +

        Press the following button to start all test after this page is loaded.

        + +

        + Before start this test, make sure the dojo/cldr/nls contains the data for "zh-cn", "fr-fr", "ja-jp", "ru-ru", "hi-in", "en-us" and "ar-eg". If not, convert these CLDR data and put them there. +

        + + + +

        Issues & Comments

        +

        Issue #1 Fixed

        +

        + Currently Dojo do not support parsing for most "long" and "full" time format which have a timezone mark in it. +

        + +

        Issue #2 Fixed: added a "localeDigit" to the options

        +

        + Strictly speaking, the data conversion must support non-European number characters in some locales like Arabic and Hindi. + For example, ICU formats a number data into Indic number characters by default in the Arabic locale. + However, currently Dojo does not support this feature (Dojo uses the default number conversion of the browser). +

        + +

        Issue #3 Fixed

        +

        + This defect only occurs on the "zh-cn" locale. Dojo accepts "下午"(pm) in the textbox, but it automatically changes it to + "上午"(am) after the focus changed. The date value of the textbox is also changed. +

        +

        + The root cause of this issue is that the parser method's code assumes am/pm symbol always appears after the hour value. + But this is not true, for example, the pattern for "zh-cn" puts am/pm field before all the other fields. +

        + + + diff --git a/includes/js/dijit/tests/images/arrowSmall.gif b/includes/js/dijit/tests/images/arrowSmall.gif new file mode 100644 index 0000000..8459ffa Binary files /dev/null and b/includes/js/dijit/tests/images/arrowSmall.gif differ diff --git a/includes/js/dijit/tests/images/copy.gif b/includes/js/dijit/tests/images/copy.gif new file mode 100644 index 0000000..4df29cc Binary files /dev/null and b/includes/js/dijit/tests/images/copy.gif differ diff --git a/includes/js/dijit/tests/images/cut.gif b/includes/js/dijit/tests/images/cut.gif new file mode 100644 index 0000000..9bdbf4a Binary files /dev/null and b/includes/js/dijit/tests/images/cut.gif differ diff --git a/includes/js/dijit/tests/images/flatScreen.gif b/includes/js/dijit/tests/images/flatScreen.gif new file mode 100644 index 0000000..05edd72 Binary files /dev/null and b/includes/js/dijit/tests/images/flatScreen.gif differ diff --git a/includes/js/dijit/tests/images/note.gif b/includes/js/dijit/tests/images/note.gif new file mode 100644 index 0000000..0f921be Binary files /dev/null and b/includes/js/dijit/tests/images/note.gif differ diff --git a/includes/js/dijit/tests/images/paste.gif b/includes/js/dijit/tests/images/paste.gif new file mode 100644 index 0000000..f236cbe Binary files /dev/null and b/includes/js/dijit/tests/images/paste.gif differ diff --git a/includes/js/dijit/tests/images/plus.gif b/includes/js/dijit/tests/images/plus.gif new file mode 100644 index 0000000..97e7265 Binary files /dev/null and b/includes/js/dijit/tests/images/plus.gif differ diff --git a/includes/js/dijit/tests/images/testsBodyBg.gif b/includes/js/dijit/tests/images/testsBodyBg.gif new file mode 100644 index 0000000..4e0b4a7 Binary files /dev/null and b/includes/js/dijit/tests/images/testsBodyBg.gif differ diff --git a/includes/js/dijit/tests/images/tube.gif b/includes/js/dijit/tests/images/tube.gif new file mode 100644 index 0000000..b506513 Binary files /dev/null and b/includes/js/dijit/tests/images/tube.gif differ diff --git a/includes/js/dijit/tests/images/tubeTall.gif b/includes/js/dijit/tests/images/tubeTall.gif new file mode 100644 index 0000000..e4fdb8b Binary files /dev/null and b/includes/js/dijit/tests/images/tubeTall.gif differ diff --git a/includes/js/dijit/tests/layout/ContentPane.html b/includes/js/dijit/tests/layout/ContentPane.html new file mode 100644 index 0000000..8853a3e --- /dev/null +++ b/includes/js/dijit/tests/layout/ContentPane.html @@ -0,0 +1,577 @@ + + + + Test ContentPane + + + + + + +

        dijit.layout.ContentPane test

        +

        Test designed to run on localhost (minimize impact from network latency)

        + +

        This should NOT be parsed automatically

        +
        +
        If this has a different background and a red border, the page parsed when it shouldn't
        +
        +

        Testing ContentPane

        +
        + Even tough the entire page isn't scanned for widgets, + any sub widgets of a ContentPane will be created when a ContentPane is created
        + This should have a backgroundcolor and a border +
        +
        +
        +
        +

        +
        + + diff --git a/includes/js/dijit/tests/layout/ContentPane.js b/includes/js/dijit/tests/layout/ContentPane.js new file mode 100644 index 0000000..c0b53bc --- /dev/null +++ b/includes/js/dijit/tests/layout/ContentPane.js @@ -0,0 +1,9 @@ +if(!dojo._hasResource["dijit.tests.layout.ContentPane"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.tests.layout.ContentPane"] = true; +dojo.provide("dijit.tests.layout.ContentPane"); + +if(dojo.isBrowser){ + doh.registerUrl("dijit.tests.layout.ContentPane", dojo.moduleUrl("dijit", "tests/layout/ContentPane.html"), 30000); +} + +} diff --git a/includes/js/dijit/tests/layout/combotab.html b/includes/js/dijit/tests/layout/combotab.html new file mode 100644 index 0000000..c881761 --- /dev/null +++ b/includes/js/dijit/tests/layout/combotab.html @@ -0,0 +1,11 @@ +
        +State: + + + + diff --git a/includes/js/dijit/tests/layout/doc0.html b/includes/js/dijit/tests/layout/doc0.html new file mode 100644 index 0000000..4c3f252 --- /dev/null +++ b/includes/js/dijit/tests/layout/doc0.html @@ -0,0 +1,12 @@ +

        Document 0

        +This document has a link.
        +(to check we're copying children around properly).
        +Also it's got a widget, a combo box:
        + +And a button too: + +Here's some text that comes AFTER the button. diff --git a/includes/js/dijit/tests/layout/doc1.html b/includes/js/dijit/tests/layout/doc1.html new file mode 100644 index 0000000..2bff8c5 --- /dev/null +++ b/includes/js/dijit/tests/layout/doc1.html @@ -0,0 +1,13 @@ + + +

        Document 1

        + +

        Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus risus. Praesent eu lacus et enim laoreet sollicitudin. Quisque mollis mi a lectus. Cras ante. Aliquam tempus justo laoreet justo. Vestibulum egestas feugiat nisi. Nulla ultrices consequat felis. Curabitur dignissim augue vel enim. Fusce tempus tempor mauris. Praesent suscipit pede in nunc. Duis mi neque, malesuada non, volutpat et, nonummy et, ante. Aliquam neque. Nulla rhoncus, turpis eget mattis molestie, magna nulla dictum ligula, quis tempor odio justo vel pede. Donec sit amet tellus. Phasellus sapien. Nulla id massa at nunc condimentum fringilla. Fusce suscipit ipsum et lorem consequat pulvinar. Quisque lacinia sollicitudin tellus.

        + +

        Nulla massa lectus, porttitor vitae, dignissim vel, iaculis eget, mi. Vestibulum sed lorem. Nullam convallis elit id leo. Aliquam est purus, rutrum at, sodales non, nonummy a, justo. Proin at diam vel nibh dictum rhoncus. Duis nisl. Etiam orci. Integer hendrerit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In ac erat. Sed velit orci, sodales quis, commodo ut, elementum sed, nibh. Cras mattis vulputate nisl. Mauris eu nulla sed orci dignissim laoreet. Morbi commodo, est vitae pharetra ullamcorper, ante nisl ultrices velit, sit amet vulputate turpis elit id lacus. Vestibulum diam. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

        + +

        Praesent rutrum nunc quis felis. Morbi tempor. Quisque porta magna imperdiet magna. Ut gravida, ipsum eu euismod consectetuer, nisl lectus posuere diam, vel dignissim elit nisi sit amet lorem. Curabitur non nunc. Morbi metus. Nulla facilisi. Sed et ante. Etiam ac lectus. Duis tristique molestie sem. Pellentesque nec quam. Nullam pellentesque ullamcorper sem.

        + +

        Duis ut massa eget arcu porttitor pharetra. Curabitur malesuada nisi id eros. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Vivamus massa. Donec quis justo ut tortor faucibus suscipit. Vivamus commodo neque eget nulla. Donec imperdiet lacus condimentum justo. In sollicitudin magna vitae libero. Curabitur scelerisque libero et eros imperdiet cursus. Maecenas adipiscing. Integer imperdiet, neque ut fringilla semper, leo nisi tincidunt enim, id accumsan leo nisi a libero. Morbi rutrum hendrerit eros. Vestibulum eget augue vel urna congue faucibus.

        + +

        Morbi ante sapien, consequat non, consectetuer vitae, pharetra non, dui. Cras tempus posuere quam. Vestibulum quis neque. Duis lobortis urna in elit. Aliquam non tellus. Etiam nisi eros, posuere vel, congue id, fringilla in, risus. Duis semper rutrum risus. Nullam felis massa, lobortis sit amet, posuere tempor, mattis id, tellus. Nulla id arcu interdum risus commodo tincidunt. Vivamus pretium pulvinar pede. Vivamus eget erat. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam bibendum, enim eu venenatis tempor, nunc elit convallis tortor, sit amet vulputate turpis arcu eu pede. Praesent molestie, lacus sed vehicula convallis, enim pede fringilla nunc, at porttitor justo ante a diam. Nunc magna eros, interdum vel, varius eget, volutpat eu, orci. Nunc nec mauris. Nulla facilisi. Vivamus dictum elementum risus. Nam placerat arcu.

        diff --git a/includes/js/dijit/tests/layout/doc2.html b/includes/js/dijit/tests/layout/doc2.html new file mode 100644 index 0000000..1173b29 --- /dev/null +++ b/includes/js/dijit/tests/layout/doc2.html @@ -0,0 +1,13 @@ + + +

        Document 2

        + +

        Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus risus. Praesent eu lacus et enim laoreet sollicitudin. Quisque mollis mi a lectus. Cras ante. Aliquam tempus justo laoreet justo. Vestibulum egestas feugiat nisi. Nulla ultrices consequat felis. Curabitur dignissim augue vel enim. Fusce tempus tempor mauris. Praesent suscipit pede in nunc. Duis mi neque, malesuada non, volutpat et, nonummy et, ante. Aliquam neque. Nulla rhoncus, turpis eget mattis molestie, magna nulla dictum ligula, quis tempor odio justo vel pede. Donec sit amet tellus. Phasellus sapien. Nulla id massa at nunc condimentum fringilla. Fusce suscipit ipsum et lorem consequat pulvinar. Quisque lacinia sollicitudin tellus.

        + +

        Nulla massa lectus, porttitor vitae, dignissim vel, iaculis eget, mi. Vestibulum sed lorem. Nullam convallis elit id leo. Aliquam est purus, rutrum at, sodales non, nonummy a, justo. Proin at diam vel nibh dictum rhoncus. Duis nisl. Etiam orci. Integer hendrerit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In ac erat. Sed velit orci, sodales quis, commodo ut, elementum sed, nibh. Cras mattis vulputate nisl. Mauris eu nulla sed orci dignissim laoreet. Morbi commodo, est vitae pharetra ullamcorper, ante nisl ultrices velit, sit amet vulputate turpis elit id lacus. Vestibulum diam. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

        + +

        Praesent rutrum nunc quis felis. Morbi tempor. Quisque porta magna imperdiet magna. Ut gravida, ipsum eu euismod consectetuer, nisl lectus posuere diam, vel dignissim elit nisi sit amet lorem. Curabitur non nunc. Morbi metus. Nulla facilisi. Sed et ante. Etiam ac lectus. Duis tristique molestie sem. Pellentesque nec quam. Nullam pellentesque ullamcorper sem.

        + +

        Duis ut massa eget arcu porttitor pharetra. Curabitur malesuada nisi id eros. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Vivamus massa. Donec quis justo ut tortor faucibus suscipit. Vivamus commodo neque eget nulla. Donec imperdiet lacus condimentum justo. In sollicitudin magna vitae libero. Curabitur scelerisque libero et eros imperdiet cursus. Maecenas adipiscing. Integer imperdiet, neque ut fringilla semper, leo nisi tincidunt enim, id accumsan leo nisi a libero. Morbi rutrum hendrerit eros. Vestibulum eget augue vel urna congue faucibus.

        + +

        Morbi ante sapien, consequat non, consectetuer vitae, pharetra non, dui. Cras tempus posuere quam. Vestibulum quis neque. Duis lobortis urna in elit. Aliquam non tellus. Etiam nisi eros, posuere vel, congue id, fringilla in, risus. Duis semper rutrum risus. Nullam felis massa, lobortis sit amet, posuere tempor, mattis id, tellus. Nulla id arcu interdum risus commodo tincidunt. Vivamus pretium pulvinar pede. Vivamus eget erat. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam bibendum, enim eu venenatis tempor, nunc elit convallis tortor, sit amet vulputate turpis arcu eu pede. Praesent molestie, lacus sed vehicula convallis, enim pede fringilla nunc, at porttitor justo ante a diam. Nunc magna eros, interdum vel, varius eget, volutpat eu, orci. Nunc nec mauris. Nulla facilisi. Vivamus dictum elementum risus. Nam placerat arcu.

        diff --git a/includes/js/dijit/tests/layout/getResponse.php b/includes/js/dijit/tests/layout/getResponse.php new file mode 100644 index 0000000..d695a4b --- /dev/null +++ b/includes/js/dijit/tests/layout/getResponse.php @@ -0,0 +1,57 @@ +WARNING This should NEVER be seen, delayed by 2 sec!"; + $delay = 2; + break; + case 1: + echo "
        Testing setHref
        "; + break; + case 2: + echo "
        Delayed setHref test
        +
        Delayed by " . ($delay/1000000) . " sec.
        "; + break; + case 3: + echo "IT WAS the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way -- in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only"; + break; + case 4: + echo "There were a king with a large jaw and a queen with a plain face, on the throne of England; there were a king with a large jaw and a queen with a fair face, on the throne of France. In both countries it was clearer than crystal to the lords of the State preserves of loaves and fishes, that things in general were settled for ever."; + break; + case 5: + echo "It was the year of Our Lord one thousand seven hundred and seventy- five. Spiritual revelations were conceded to England at that favoured period, as at this. Mrs. Southcott had recently attained her five-and- twentieth blessed birthday, of whom a prophetic private in the Life Guards had heralded the sublime appearance by announcing that arrangements were made for the swallowing up of London and Westminster. Even the Cock-lane ghost had been laid only a round dozen of years, after rapping out its messages, as the spirits of this very year last past (supernaturally deficient in originality) rapped out theirs. Mere messages in the earthly order of events had lately come to the English Crown and People, from a congress of British subjects in America:"; + break; + default: + echo "unknown messId:{$_GET['messId']}"; + } + } + + if(isset($_GET['bounceGetStr']) && $_GET['bounceGetStr']){ + echo "
        {$_SERVER["QUERY_STRING"]}
        "; + } + + if(isset($_GET['message']) && $_GET['message']){ + echo $_GET['message']; + } + + usleep($delay); + +?> diff --git a/includes/js/dijit/tests/layout/tab1.html b/includes/js/dijit/tests/layout/tab1.html new file mode 100644 index 0000000..a37b927 --- /dev/null +++ b/includes/js/dijit/tests/layout/tab1.html @@ -0,0 +1,6 @@ + +

        Tab 1

        + +

        I am tab 1. I was loaded externally. WebA11y(something to get focus)

        + +
        blah
        diff --git a/includes/js/dijit/tests/layout/tab2.html b/includes/js/dijit/tests/layout/tab2.html new file mode 100644 index 0000000..ed1ad76 --- /dev/null +++ b/includes/js/dijit/tests/layout/tab2.html @@ -0,0 +1,3 @@ +

        Tab 2

        + +

        I am tab 2. I was loaded externally as well.

        diff --git a/includes/js/dijit/tests/layout/tab3.html b/includes/js/dijit/tests/layout/tab3.html new file mode 100644 index 0000000..68dca6c --- /dev/null +++ b/includes/js/dijit/tests/layout/tab3.html @@ -0,0 +1,39 @@ +
        +
        +

        This is a nested tab container BUT loaded via an href.

        +
        +
        +

        + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean + semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin + porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. + Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. + Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae + risus. +

        +

        Aliquam vitae enim. Duis scelerisque metus auctor est venenatis + imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem + nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in + massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In + pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra + quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, + felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut + quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla + rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut + semper velit ante id metus. Praesent massa dolor, porttitor sed, + pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit + tortor pharetra congue. Suspendisse pulvinar. +

        +

        Vestibulum convallis eros ac justo. Proin dolor. Etiam aliquam. Nam + ornare elit vel augue. Suspendisse potenti. Etiam sed mauris eu neque + nonummy mollis. Vestibulum vel purus ac pede semper accumsan. Vivamus + lobortis, sem vitae nonummy lacinia, nisl est gravida magna, non cursus + est quam sed urna. Phasellus adipiscing justo in ipsum. Duis sagittis + dolor sit amet magna. Suspendisse suscipit, neque eu dictum auctor, + nisi augue tincidunt arcu, non lacinia magna purus nec magna. Praesent + pretium sollicitudin sapien. Suspendisse imperdiet. Class aptent taciti + sociosqu ad litora torquent per conubia nostra, per inceptos + hymenaeos. +

        +
        +
        \ No newline at end of file diff --git a/includes/js/dijit/tests/layout/tab4.html b/includes/js/dijit/tests/layout/tab4.html new file mode 100644 index 0000000..de9cd3c --- /dev/null +++ b/includes/js/dijit/tests/layout/tab4.html @@ -0,0 +1,40 @@ +
        +
        +

        Top of split container loaded via an href.

        +
        +
        +

        Bottom of split container loaded via an href.

        +

        + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean + semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin + porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. + Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. + Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae + risus. +

        +

        Aliquam vitae enim. Duis scelerisque metus auctor est venenatis + imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem + nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in + massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In + pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra + quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, + felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut + quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla + rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut + semper velit ante id metus. Praesent massa dolor, porttitor sed, + pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit + tortor pharetra congue. Suspendisse pulvinar. +

        +

        Vestibulum convallis eros ac justo. Proin dolor. Etiam aliquam. Nam + ornare elit vel augue. Suspendisse potenti. Etiam sed mauris eu neque + nonummy mollis. Vestibulum vel purus ac pede semper accumsan. Vivamus + lobortis, sem vitae nonummy lacinia, nisl est gravida magna, non cursus + est quam sed urna. Phasellus adipiscing justo in ipsum. Duis sagittis + dolor sit amet magna. Suspendisse suscipit, neque eu dictum auctor, + nisi augue tincidunt arcu, non lacinia magna purus nec magna. Praesent + pretium sollicitudin sapien. Suspendisse imperdiet. Class aptent taciti + sociosqu ad litora torquent per conubia nostra, per inceptos + hymenaeos. +

        +
        +
        \ No newline at end of file diff --git a/includes/js/dijit/tests/layout/test_AccordionContainer.html b/includes/js/dijit/tests/layout/test_AccordionContainer.html new file mode 100644 index 0000000..d8351e7 --- /dev/null +++ b/includes/js/dijit/tests/layout/test_AccordionContainer.html @@ -0,0 +1,195 @@ + + + + Accordion Widget Demo + + + + + + + + + + + + +

        AccordionContainer Tests

        + +

        Accordion from markup:

        +

        HTML before

        +

        HTML before

        +

        HTML before

        + +
        +
        + Hello World +
        +
        +

        + Nunc consequat nisi vitae quam. Suspendisse sed nunc. Proin + suscipit porta magna. Duis accumsan nunc in velit. Nam et nibh. + Nulla facilisi. Cras venenatis urna et magna. Aenean magna mauris, + bibendum sit amet, semper quis, aliquet nec, sapien. Aliquam + aliquam odio quis erat. Etiam est nisi, condimentum non, lacinia + ac, vehicula laoreet, elit. Sed interdum augue sit amet quam + dapibus semper. Nulla facilisi. Pellentesque lobortis erat nec + quam. +

        +

        + Sed arcu magna, molestie at, eu, elit. + Curabitur mattis lorem et est. Quisque et tortor. Integer bibendum + vulputate odio. Nam nec ipsum. Vestibulum mollis eros feugiat + augue. Integer fermentum odio lobortis odio. Nullam mollis nisl non + metus. Maecenas nec nunc eget pede ultrices blandit. Ut non purus + ut elit convallis eleifend. Fusce tincidunt, justo quis tempus + euismod, magna nulla viverra libero, sit amet lacinia odio diam id + risus. Ut varius viverra turpis. Morbi urna elit, imperdiet eu, + porta ac, pharetra sed, nisi. Etiam ante libero, ultrices ac, + faucibus ac, cursus sodales, nisl. Praesent nisl sem, fermentum eu, + consequat quis, varius interdum, nulla. Donec neque tortor, + sollicitudin sed, consequat nec, facilisis sit amet, orci. Aenean + ut eros sit amet ante pharetra interdum. +

        +
        +
        +

        The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.

        +
        +
        + +

        HTML after

        +

        HTML after

        +

        HTML after

        +

        +

        Accordion with widgets

        +
        +
        + +

        + Nunc consequat nisi vitae quam. Suspendisse sed nunc. Proin + suscipit porta magna. Duis accumsan nunc in velit. Nam et nibh. + Nulla facilisi. Cras venenatis urna et magna. Aenean magna mauris, + bibendum sit amet, semper quis, aliquet nec, sapien. Aliquam + aliquam odio quis erat. Etiam est nisi, condimentum non, lacinia + ac, vehicula laoreet, elit. Sed interdum augue sit amet quam + dapibus semper. Nulla facilisi. Pellentesque lobortis erat nec + quam. +

        +

        + Sed arcu magna, molestie at, fringilla in, sodales eu, elit. + Curabitur mattis lorem et est. Quisque et tortor. Integer bibendum + vulputate odio. Nam nec ipsum. Vestibulum mollis eros feugiat + augue. Integer fermentum odio lobortis odio. Nullam mollis nisl non + metus. Maecenas nec nunc eget pede ultrices blandit. Ut non purus + ut elit convallis eleifend. Fusce tincidunt, justo quis tempus + euismod, magna nulla viverra libero, sit amet lacinia odio diam id + risus. Ut varius viverra turpis. Morbi urna elit, imperdiet eu, + porta ac, pharetra sed, nisi. Etiam ante libero, ultrices ac, + faucibus ac, cursus sodales, nisl. Praesent nisl sem, fermentum eu, + consequat quis, varius interdum, nulla. Donec neque tortor, + sollicitudin sed, consequat nec, facilisis sit amet, orci. Aenean + ut eros sit amet ante pharetra interdum. +

        +
        + + +
        + +
        +
        +
        + 1Sed arcu magna, molestie at, fringilla in, sodales eu, elit. + Curabitur mattis lorem et est. Quisque et tortor. Integer bibendum + vulputate odio. Nam nec ipsum. Vestibulum mollis eros feugiat + augue. Integer fermentum odio lobortis odio. Nullam mollis nisl non + metus. Maecenas nec nunc eget pede ultrices blandit. Ut non purus + ut elit convallis eleifend. Fusce tincidunt, justo quis tempus + euismod, magna nulla viverra libero, sit amet lacinia odio diam id + risus. Ut varius viverra turpis. Morbi urna elit, imperdiet eu, + porta ac, pharetra sed, nisi. Etiam ante libero, ultrices ac, + faucibus ac, cursus sodales, nisl. Praesent nisl sem, fermentum eu, + consequat quis, varius interdum, nulla. Donec neque tortor, + sollicitudin sed, consequat nec, facilisis sit amet, orci. Aenean + ut eros sit amet ante pharetra interdum. +
        +
        + 2Sed arcu magna, molestie at, fringilla in, sodales eu, elit. + Curabitur mattis lorem et est. Quisque et tortor. Integer bibendum + vulputate odio. Nam nec ipsum. Vestibulum mollis eros feugiat + augue. Integer fermentum odio lobortis odio. Nullam mollis nisl non + metus. Maecenas nec nunc eget pede ultrices blandit. Ut non purus + ut elit convallis eleifend. Fusce tincidunt, justo quis tempus + euismod, magna nulla viverra libero, sit amet lacinia odio diam id + risus. Ut varius viverra turpis. Morbi urna elit, imperdiet eu, + porta ac, pharetra sed, nisi. Etiam ante libero, ultrices ac, + faucibus ac, cursus sodales, nisl. Praesent nisl sem, fermentum eu, + consequat quis, varius interdum, nulla. Donec neque tortor, + sollicitudin sed, consequat nec, facilisis sit amet, orci. Aenean + ut eros sit amet ante pharetra interdum. +
        +
        +
        +
        + +

        Programatically created:

        + + +
        + +
        + + + diff --git a/includes/js/dijit/tests/layout/test_BorderContainer.html b/includes/js/dijit/tests/layout/test_BorderContainer.html new file mode 100644 index 0000000..29fae01 --- /dev/null +++ b/includes/js/dijit/tests/layout/test_BorderContainer.html @@ -0,0 +1,163 @@ + + + + dijit.layout.BorderContainer Test + + + + + + + + + + +

        dijit.layout.BorderContainer tests

        +

        Headline layout (default), left is constrained - min:50, max:150

        + +
        +
        + top bar +
        +
        + left +
        +
        + main panel with a link.
        + (to check we're copying children around properly).
        + + Here's some text that comes AFTER the combo box. +
        +
        + right +
        +
        + bottom bar +
        +
        + + +
        + +

        Sidebar layout, BiDi sensitive, liveSplitters: false

        + +
        +
        + leading +
        +
        + top bar +
        +
        + main panel with a link.
        + (to check we're copying children around properly).
        + + Here's some text that comes AFTER the combo box. +
        +
        + bottom bar +
        +
        + trailing +
        +
        + +
        +

        Vertical panels only with splitters

        + +
        +
        + top bar +
        + +
        + main panel with a link.
        + (to check we're copying children around properly).
        + + Here's some text that comes AFTER the combo box. +
        +
        + bottom bar +
        +
        + +
        +

        More fun with layouts

        + +
        +
        +
        +
        top a
        +
        top b
        +
        +
        +
        +
        +
        bottom c
        +
        bottom d
        +
        +
        +
        +
        +
        leading e
        +
        leading f
        +
        +
        +
        trailing g
        +
        + +
        + + + diff --git a/includes/js/dijit/tests/layout/test_BorderContainer_complex.html b/includes/js/dijit/tests/layout/test_BorderContainer_complex.html new file mode 100644 index 0000000..784171c --- /dev/null +++ b/includes/js/dijit/tests/layout/test_BorderContainer_complex.html @@ -0,0 +1,178 @@ + + + + dijit.layout.BorderContainer Test - complex layout + + + + + + + + + + +

        dijit.layout.BorderContainer tests

        + +

        Complex layout:

        + +
        +
        +
        + left bar +
        +
        +

        + Nunc consequat nisi vitae quam. Suspendisse sed nunc. Proin + suscipit porta magna. Duis accumsan nunc in velit. Nam et nibh. + Nulla facilisi. Cras venenatis urna et magna. Aenean magna mauris, + bibendum sit amet, semper quis, aliquet nec, sapien. Aliquam + aliquam odio quis erat. Etiam est nisi, condimentum non, lacinia + ac, vehicula laoreet, elit. Sed interdum augue sit amet quam + dapibus semper. Nulla facilisi. Pellentesque lobortis erat nec + quam. +

        +

        + Sed arcu magna, molestie at, fringilla in, sodales eu, elit. + Curabitur mattis lorem et est. Quisque et tortor. Integer bibendum + vulputate odio. Nam nec ipsum. Vestibulum mollis eros feugiat + augue. Integer fermentum odio lobortis odio. Nullam mollis nisl non + metus. Maecenas nec nunc eget pede ultrices blandit. Ut non purus + ut elit convallis eleifend. Fusce tincidunt, justo quis tempus + euismod, magna nulla viverra libero, sit amet lacinia odio diam id + risus. Ut varius viverra turpis. Morbi urna elit, imperdiet eu, + porta ac, pharetra sed, nisi. Etiam ante libero, ultrices ac, + faucibus ac, cursus sodales, nisl. Praesent nisl sem, fermentum eu, + consequat quis, varius interdum, nulla. Donec neque tortor, + sollicitudin sed, consequat nec, facilisis sit amet, orci. Aenean + ut eros sit amet ante pharetra interdum. +

        +
        +
        +

        The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.

        +
        +
        + +
        +
        + right bar +
        +
        +

        + Nunc consequat nisi vitae quam. Suspendisse sed nunc. Proin + suscipit porta magna. Duis accumsan nunc in velit. Nam et nibh. + Nulla facilisi. Cras venenatis urna et magna. Aenean magna mauris, + bibendum sit amet, semper quis, aliquet nec, sapien. Aliquam + aliquam odio quis erat. Etiam est nisi, condimentum non, lacinia + ac, vehicula laoreet, elit. Sed interdum augue sit amet quam + dapibus semper. Nulla facilisi. Pellentesque lobortis erat nec + quam. +

        +

        + Sed arcu magna, molestie at, fringilla in, sodales eu, elit. + Curabitur mattis lorem et est. Quisque et tortor. Integer bibendum + vulputate odio. Nam nec ipsum. Vestibulum mollis eros feugiat + augue. Integer fermentum odio lobortis odio. Nullam mollis nisl non + metus. Maecenas nec nunc eget pede ultrices blandit. Ut non purus + ut elit convallis eleifend. Fusce tincidunt, justo quis tempus + euismod, magna nulla viverra libero, sit amet lacinia odio diam id + risus. Ut varius viverra turpis. Morbi urna elit, imperdiet eu, + porta ac, pharetra sed, nisi. Etiam ante libero, ultrices ac, + faucibus ac, cursus sodales, nisl. Praesent nisl sem, fermentum eu, + consequat quis, varius interdum, nulla. Donec neque tortor, + sollicitudin sed, consequat nec, facilisis sit amet, orci. Aenean + ut eros sit amet ante pharetra interdum. +

        +
        +
        +

        The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.

        +
        +
        +
        + +
        + +
        + +
        + +
        +

        I am tab 3

        +

        And I was already part of the page! That's cool, no?

        +

        tooltip on this paragraph

        +
        I'm a tooltip!
        + +
        + +

        + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean + semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin + porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. + Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. + Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae + risus. +

        +

        Aliquam vitae enim. Duis scelerisque metus auctor est venenatis + imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem + nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in + massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In + pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra + quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, + felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut + quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla + rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut + semper velit ante id metus. Praesent massa dolor, porttitor sed, + pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit + tortor pharetra congue. Suspendisse pulvinar. +

        +
        + + + + Sub TabContainer from href + + SplitContainer from href + +
        +
        +
        +
        +

        bottom bar (edit me)

        +
        +
        +
        + main panel with a link.
        + (to check we're copying children around properly).
        + + Here's some text that comes AFTER the combo box. +
        +
        + + + diff --git a/includes/js/dijit/tests/layout/test_BorderContainer_experimental.html b/includes/js/dijit/tests/layout/test_BorderContainer_experimental.html new file mode 100644 index 0000000..46483d9 --- /dev/null +++ b/includes/js/dijit/tests/layout/test_BorderContainer_experimental.html @@ -0,0 +1,253 @@ + + + + + BorderContainer Experiments | The Dojo Toolkit + + + + + + + + + + + +

        This is a test

        +

        This is only a test. An experiment in dynamically altering a BorderContainer's layout + (a seemingly unsupported feature just yet). It Demonstrates how to programatically alter/animate + the size of non-center regions though, and several simple layout configurations +

        + +
        +

        Layouts:

        +
        +
        + +
        +
        + pane0 +
        +
        + +
        +
        + Sinlge pane - l1 +
        +
        + +
        +

        two panes, vertical split:

        + + +
        +
        + Sinlge pane - left +
        +
        + Sinlge pane - center + +
        +
        + +
        +
        + Sinlge pane - center (splitter) (this is unsupported, and does not work) +
        +
        + Sinlge pane - right (no splitter) +
        +
        + +
        +
        + Sinlge pane - center (no splitter) +
        +
        + Sinlge pane - right (splitter) +
        +
        +
        + +
        +
        + Sinlge pane - top (splitter) + +
        +
        + Sinlge pane - center +
        +
        + +
        +
        + Sinlge pane - center +
        +
        + Single Pane Bottom (splitter) +
        +
        + Single Pane Top (splitter) +
        +
        + + + + + diff --git a/includes/js/dijit/tests/layout/test_BorderContainer_full.html b/includes/js/dijit/tests/layout/test_BorderContainer_full.html new file mode 100644 index 0000000..65386c2 --- /dev/null +++ b/includes/js/dijit/tests/layout/test_BorderContainer_full.html @@ -0,0 +1,56 @@ + + + + dijit.layout.BorderContainer Test - Full Screen + + + + + + + + + +
        +
        + leading +
        +
        + top bar +
        +
        + main panel with a link.
        + (to check we're copying children around properly).
        + + Here's some text that comes AFTER the combo box. +
        +
        + bottom bar +
        +
        + trailing +
        +
        + + diff --git a/includes/js/dijit/tests/layout/test_BorderContainer_nested.html b/includes/js/dijit/tests/layout/test_BorderContainer_nested.html new file mode 100644 index 0000000..72bdf53 --- /dev/null +++ b/includes/js/dijit/tests/layout/test_BorderContainer_nested.html @@ -0,0 +1,70 @@ + + + + dijit.layout.BorderContainer Test + + + + + + + + + + +

        dijit.layout.BorderContainer tests

        +

        Basic layout

        + +
        +
        + left +
        +
        + right +
        +
        + top bar +
        +
        + bottom bar +
        +
        + +
        +
        + left +
        +
        + right +
        +
        + top bar +
        +
        + bottom bar +
        +
        + main panel with a link.
        + (to check we're copying children around properly).
        + + Here's some text that comes AFTER the combo box. +
        +
        +
        +
        + + diff --git a/includes/js/dijit/tests/layout/test_ContentPane.html b/includes/js/dijit/tests/layout/test_ContentPane.html new file mode 100644 index 0000000..4557bef --- /dev/null +++ b/includes/js/dijit/tests/layout/test_ContentPane.html @@ -0,0 +1,94 @@ + + + + ContentPane Test + + + + + + + + + +

        Dijit layout.ContentPane tests

        +

        pre-container paragraph

        + +
        + some text (top-level container) + +
        + + text in the inner container (1) + +
        + hi +
        + + text in the inner container (2) + +
        + inner-inner 2 +
        + + text in the inner container (3) + +
        + inner-inner 3 +
        + + text in the inner container (4) + +
        + + some more text (top-level container) +
        + +

        mid-container paragraph

        + +
        + 2nd top-level container +
        + +

        post-container paragraph

        + +
        + some content pane blah blah blah +
        +
        +

        This text should automatically be replaced by downloaded content from combotab.html

        +
        + + + + diff --git a/includes/js/dijit/tests/layout/test_LayoutCode.html b/includes/js/dijit/tests/layout/test_LayoutCode.html new file mode 100644 index 0000000..9cec35e --- /dev/null +++ b/includes/js/dijit/tests/layout/test_LayoutCode.html @@ -0,0 +1,383 @@ + + + + Programmatic Layout Demo + + + + + + + + + +

        Test of layout code programmatic creation

        + + + + + +
        +

        Creator

        +

        Pressing a button will programatically add a hierarchy of widgets

        + + + + + +
        +

        Current widgets

        + This pane will let you try certain operations on each of the widgets. +
        +
        +
        +
        + When you press a button, this will be filled in with the generated widgets +
        + + diff --git a/includes/js/dijit/tests/layout/test_LayoutContainer.html b/includes/js/dijit/tests/layout/test_LayoutContainer.html new file mode 100644 index 0000000..cbe08f6 --- /dev/null +++ b/includes/js/dijit/tests/layout/test_LayoutContainer.html @@ -0,0 +1,174 @@ + + + + dijit.layout.LayoutContainer Test + + + + + + + + + +

        Dijit layout.LayoutContainer tests

        +

        Basic layout. Tabindex="0" added to each pane to test for tab order matching source code order. Tab order +should be: left, right, top, middle/main, bottom

        + +
        +
        + left +
        +
        + right +
        +
        + top bar +
        +
        + main panel with a link.
        + (to check we're copying children around properly).
        + + Here's some text that comes AFTER the combo box. +
        + +
        + bottom bar +
        + +
        + +

        Advanced layout. Tabindex="0" added to each pane to test for tab order matching source code order. Tab order +should be: left, top, bottom, inner left, inner middle, inner right. This is not an ideal tab order. See below to use nested +layout containers to achieve a tab order which matches presentation and source code order.

        +
        +
        + left +
        +
        + top bar +
        +
        + + bottom bar +
        +
        + inner left +
        + +
        + main panel with a link.
        + + (to check we're copying children around properly).
        + + Here's some text that comes AFTER the combo box. +
        +
        + inner right +
        +
        + +

        Advanced layout with nested containers. Tabindex="0" added to content panes to show tab order. Order should be: +left, top, inner left, inner middle, inner right, bottom. This is the preferred tab order for this type of layout.

        +
        +
        + left +
        +
        +
        + +
        + top bar +
        +
        +
        +
        + inner left +
        +
        + main panel with a link.
        + (to check we're copying children around properly).
        + + Here's some text that comes AFTER the combo box. +
        +
        + inner right +
        +
        +
        +
        + bottom bar +
        +
        +
        +
        + +

        Goofy spiral layout. Match of source code order to tab order can not be achieved with this type of layout.

        +
        +
        + outer left +
        +
        + outer top +
        +
        + outer right +
        +
        + outer bottom +
        +
        + inner left +
        +
        + inner top +
        +
        + inner right +
        +
        + inner bottom +
        +
        + main panel with a link.
        + (to check we're copying children around properly).
        + + Here's some text that comes AFTER the combo box. +
        +
        + + + diff --git a/includes/js/dijit/tests/layout/test_SplitContainer.html b/includes/js/dijit/tests/layout/test_SplitContainer.html new file mode 100644 index 0000000..f71d2dd --- /dev/null +++ b/includes/js/dijit/tests/layout/test_SplitContainer.html @@ -0,0 +1,116 @@ + + + + SplitContainer Widget Demo + + + + + + + + + +

        Dijit Split Container Test

        +

        HTML before

        + +
        +
        + this box has three split panes +
        +
        + in vertical mode +
        +
        + without active resizing +
        +
        + +
        +
        + this box has two horizontal panes +
        +
        + with active resizing, a smaller sizer, different starting sizes and minimum sizes +
        +
        + +

        HTML after

        + +the following splitter contains two iframes, see whether the resizer works ok in this situation +
        +
        + +
        +
        + +
        +
        + +

        Programatic Example:

        +
        + + + diff --git a/includes/js/dijit/tests/layout/test_StackContainer.html b/includes/js/dijit/tests/layout/test_StackContainer.html new file mode 100644 index 0000000..834b874 --- /dev/null +++ b/includes/js/dijit/tests/layout/test_StackContainer.html @@ -0,0 +1,62 @@ + + + + StackContainer Demo + + + + + + + + + + +

        A Tale Of Two Cities

        + + + + + +
        +

        IT WAS the best of times, it of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way -- in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only

        +

        There were a king with a large jaw and a queen with a plain face, on the throne of England; there were a king with a large jaw and a queen with a fair face, on the throne of France. In both countries it was clearer than crystal to the lords of the State preserves of loaves and fishes, that things in general were settled for ever.

        +

        It was the year of Our Lord one thousand seven hundred and seventy- five. Spiritual revelations were conceded to England at that favoured period, as at this. Mrs. Southcott had recently attained her five-and- twentieth blessed birthday, of whom a prophetic private in the Life Guards had heralded the sublime appearance by announcing that arrangements were made for the swallowing up of London and Westminster. Even the Cock-lane ghost had been laid only a round dozen of years, after rapping out its messages, as the spirits of this very year last past (supernaturally deficient in originality) rapped out theirs. Mere messages in the earthly order of events had lately come to the English Crown and People, from a congress of British subjects in America:

        +
        + + + + + + + diff --git a/includes/js/dijit/tests/layout/test_StackContainer_code.html b/includes/js/dijit/tests/layout/test_StackContainer_code.html new file mode 100644 index 0000000..137cc6e --- /dev/null +++ b/includes/js/dijit/tests/layout/test_StackContainer_code.html @@ -0,0 +1,64 @@ + + + + StackContainer Demo + + + + + + + + + + +

        A Tale Of Two Cities

        + +
        Links:
        + +
        +

        IT WAS the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way -- in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only

        +

        There were a king with a large jaw and a queen with a plain face, on the throne of England; there were a king with a large jaw and a queen with a fair face, on the throne of France. In both countries it was clearer than crystal to the lords of the State preserves of loaves and fishes, that things in general were settled for ever.

        +

        It was the year of Our Lord one thousand seven hundred and seventy- five. Spiritual revelations were conceded to England at that favoured period, as at this. Mrs. Southcott had recently attained her five-and- twentieth blessed birthday, of whom a prophetic private in the Life Guards had heralded the sublime appearance by announcing that arrangements were made for the swallowing up of London and Westminster. Even the Cock-lane ghost had been laid only a round dozen of years, after rapping out its messages, as the spirits of this very year last past (supernaturally deficient in originality) rapped out theirs. Mere messages in the earthly order of events had lately come to the English Crown and People, from a congress of British subjects in America:

        +
        + + + + diff --git a/includes/js/dijit/tests/layout/test_TabContainer.html b/includes/js/dijit/tests/layout/test_TabContainer.html new file mode 100644 index 0000000..5d51a8a --- /dev/null +++ b/includes/js/dijit/tests/layout/test_TabContainer.html @@ -0,0 +1,183 @@ + + + + TabContainer Demo + + + + + + + + + + +

        Dijit layout.TabContainer tests

        + +

        These tabs are made up of local and external content. Tab 1 and Tab 2 are loading + files tab1.html and tab2.html. Tab 3 and Another Tab are using content that is already + part of this page. Tab2 is initially selected. +

        + +
        + +
        + +
        + +
        +

        I am tab 3

        +

        And I was already part of the page! That's cool, no?

        +

        tooltip on this paragraph

        +
        I'm a tooltip!
        + +
        + +

        + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean + semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin + porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. + Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. + Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae + risus. +

        +

        Aliquam vitae enim. Duis scelerisque metus auctor est venenatis + imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem + nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in + massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In + pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra + quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, + felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut + quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla + rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut + semper velit ante id metus. Praesent massa dolor, porttitor sed, + pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit + tortor pharetra congue. Suspendisse pulvinar. +

        +
        + + + + Sub TabContainer from href + + SplitContainer from href + +
        + +

        + The next example is with closable tabs. + Tab 1 and Tab 3 can be closed; Tab 3 has a confirm box. +

        + +
        +
        +
        +
        +

        I am tab 3

        +

        And I was already part of the page! That's cool, no?

        +

        If you try to close me there should be a confirm dialog.

        +
        +
        + +

        Tabs with titles on the bottom:

        + +
        +
        +
        +
        + +

        Tabs with titles on the left:

        + +
        +
        +
        +
        + +

        Tabs with titles on the right:

        + +
        +
        +
        +
        + +

        +
        +
        + Once upon a time there was a dear little girl who was loved by + every one who looked at her, but most of all by her grandmother, + and there was nothing that she would not have given to the child. +
        +
        + Hard by a great forest dwelt a poor wood-cutter with his wife + and his two children. The boy was called Hansel and the girl Gretel. + He had little to bite and to break, and once when great dearth fell + on the land, he could no longer procure even daily bread. +
        +
        + There was once upon a time a hermit who lived in a forest at the foot + of a mountain, and passed his time in prayer and good works, + and every evening he carried, to the glory of God, two pails of water + up the mountain. +
        + +

        Typical rendering time

        + + + +
        IEFirefox (mac)
        1719922
        +

        Rendering time

        + + + diff --git a/includes/js/dijit/tests/layout/test_TabContainerTitlePane.html b/includes/js/dijit/tests/layout/test_TabContainerTitlePane.html new file mode 100644 index 0000000..139eb2b --- /dev/null +++ b/includes/js/dijit/tests/layout/test_TabContainerTitlePane.html @@ -0,0 +1,75 @@ + + + + TabContainer Nested TitlePane Test + + + + + + + + + + +

        Dijit layout.TabContainer nested TitlePane tests

        + +
        + +
        +

        I am tab 1

        +
        +

        This is a title pane, containing another tab container ...

        +

        + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque iaculis, nulla id semper faucibus, pede tellus nonummy magna, vitae adipiscing orci arcu ut augue. Nunc condimentum, magna a vestibulum convallis, libero purus pulvinar orci, sed vestibulum urna sem ut pede. More Ipsum... +

        +
        +
        +
        +
        +
        +
        +
        + +
        + + +

        Typical rendering time

        + + + +
        IEFirefox (mac)
        1719922
        +

        Rendering time

        + + + diff --git a/includes/js/dijit/tests/layout/test_TabContainer_noLayout.html b/includes/js/dijit/tests/layout/test_TabContainer_noLayout.html new file mode 100644 index 0000000..3fb8d15 --- /dev/null +++ b/includes/js/dijit/tests/layout/test_TabContainer_noLayout.html @@ -0,0 +1,104 @@ + + + + TabContainer doLayout=false Demo + + + + + + + + + + +

        Dijit layout.TabContainer doLayout=false tests

        + +

        + This tests tabs in doLayout=false mode, in which case the tab container's height == + the height of the currently selected tab. +

        +

        With doLayout=false mode tabs to the left or right are not supported and tabs at the bottom are a bit buggy in FireFox. +

        + + + + +
        + +
        + +
        + +
        +

        I am tab 3

        +

        And I was already part of the page! That's cool, no?

        + tooltip on this span +
        I'm a tooltip!
        + +
        + +

        + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean + semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin + porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. + Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. + Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae + risus. +

        +

        Aliquam vitae enim. Duis scelerisque metus auctor est venenatis + imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem + nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in + massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In + pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra + quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, + felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut + quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla + rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut + semper velit ante id metus. Praesent massa dolor, porttitor sed, + pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit + tortor pharetra congue. Suspendisse pulvinar. +

        +
        + + + + Sub TabContainer from href +
        + +

        + Some text here. This should appear directly below the TabContainer, + and the position will change based on the current height of the TabContainer. +

        + + diff --git a/includes/js/dijit/tests/layout/test_TabContainer_remote.html b/includes/js/dijit/tests/layout/test_TabContainer_remote.html new file mode 100644 index 0000000..19515a9 --- /dev/null +++ b/includes/js/dijit/tests/layout/test_TabContainer_remote.html @@ -0,0 +1,109 @@ + + + + TabContainer Demo + + + + + + + + + + +

        Dijit layout.TabContainer (delayed) remote tests

        + +

        These tabs are made up of external content. Loading is delayed to make it easier to see if refreshOnShow and preload = 'false' is working.
        + The tabs also tests to insert html in the Tab title +

        + +
        Create a Tab
        + + +

        Rendering time

        + + + diff --git a/includes/js/dijit/tests/manualTests.html b/includes/js/dijit/tests/manualTests.html new file mode 100644 index 0000000..7f8b1c1 --- /dev/null +++ b/includes/js/dijit/tests/manualTests.html @@ -0,0 +1,12 @@ + + + + Dijit Manual Test Runner + + + Redirecting to D.O.H runner + + + diff --git a/includes/js/dijit/tests/manualTests.js b/includes/js/dijit/tests/manualTests.js new file mode 100644 index 0000000..f4f09e1 --- /dev/null +++ b/includes/js/dijit/tests/manualTests.js @@ -0,0 +1,85 @@ +if(!dojo._hasResource["dijit.tests.manualTests"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.tests.manualTests"] = true; +dojo.provide("dijit.tests.manualTests"); + +try{ +if(dojo.isBrowser){ + var userArgs = window.location.search.replace(/[\?&](dojoUrl|testUrl|testModule)=[^&]*/g,"").replace(/^&/,"?"); + doh.registerUrl("dijit/demos/chat.html", dojo.moduleUrl("dijit","demos/chat.html"+userArgs), 99999999); + doh.registerUrl("dijit/demos/form.html", dojo.moduleUrl("dijit","demos/form.html"+userArgs), 99999999); + doh.registerUrl("dijit/demos/i18n.html", dojo.moduleUrl("dijit","demos/i18n.html"+userArgs), 99999999); + doh.registerUrl("dijit/demos/mail.html", dojo.moduleUrl("dijit","demos/mail.html"+userArgs), 99999999); + doh.registerUrl("dijit/demos/nihao.html", dojo.moduleUrl("dijit","demos/nihao.html"+userArgs), 99999999); + doh.registerUrl("dijit/demos/chat/client.html", dojo.moduleUrl("dijit","demos/chat/client.html"+userArgs), 99999999); + doh.registerUrl("dijit/demos/chat/community.html", dojo.moduleUrl("dijit","demos/chat/community.html"+userArgs), 99999999); + doh.registerUrl("dijit/demos/chat/operator.html", dojo.moduleUrl("dijit","demos/chat/operator.html"+userArgs), 99999999); + doh.registerUrl("dijit/demos/i18n/generate.html", dojo.moduleUrl("dijit","demos/i18n/generate.html"+userArgs), 99999999); + doh.registerUrl("dijit/demos/i18n/sprite.html", dojo.moduleUrl("dijit","demos/i18n/sprite.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test.html", dojo.moduleUrl("dijit","tests/test.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_Calendar.html", dojo.moduleUrl("dijit","tests/test_Calendar.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_ColorPalette.html", dojo.moduleUrl("dijit","tests/test_ColorPalette.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_Declaration.html", dojo.moduleUrl("dijit","tests/test_Declaration.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_Dialog.html", dojo.moduleUrl("dijit","tests/test_Dialog.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_Dialog_focusDestroy.html", dojo.moduleUrl("dijit","tests/test_Dialog_focusDestroy.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_Editor.html", dojo.moduleUrl("dijit","tests/test_Editor.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_InlineEditBox.html", dojo.moduleUrl("dijit","tests/test_InlineEditBox.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_instantiate.html", dojo.moduleUrl("dijit","tests/test_instantiate.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_Menu.html", dojo.moduleUrl("dijit","tests/test_Menu.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_ProgressBar.html", dojo.moduleUrl("dijit","tests/test_ProgressBar.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_TitlePane.html", dojo.moduleUrl("dijit","tests/test_TitlePane.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_ToolBar.html", dojo.moduleUrl("dijit","tests/test_ToolBar.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_Tooltip.html", dojo.moduleUrl("dijit","tests/test_Tooltip.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_TooltipDialog.html", dojo.moduleUrl("dijit","tests/test_TooltipDialog.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_Tree.html", dojo.moduleUrl("dijit","tests/test_Tree.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/test_Tree_Notification_API_Support.html", dojo.moduleUrl("dijit","tests/test_Tree_Notification_API_Support.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/_programaticTest.html", dojo.moduleUrl("dijit","tests/_programaticTest.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/form/test_Button.html", dojo.moduleUrl("dijit","tests/form/test_Button.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/form/test_CheckBox.html", dojo.moduleUrl("dijit","tests/form/test_CheckBox.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/form/test_ComboBox.html", dojo.moduleUrl("dijit","tests/form/test_ComboBox.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/form/test_ComboBox_destroy.html", dojo.moduleUrl("dijit","tests/form/test_ComboBox_destroy.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/form/test_DateTextBox.html", dojo.moduleUrl("dijit","tests/form/test_DateTextBox.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/form/test_FilteringSelect.html", dojo.moduleUrl("dijit","tests/form/test_FilteringSelect.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/form/test_MultiSelect.html", dojo.moduleUrl("dijit","tests/form/test_MultiSelect.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/form/test_SimpleTextarea.html", dojo.moduleUrl("dijit","tests/form/test_SimpleTextarea.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/form/test_Slider.html", dojo.moduleUrl("dijit","tests/form/test_Slider.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/form/test_Spinner.html", dojo.moduleUrl("dijit","tests/form/test_Spinner.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/form/test_Textarea.html", dojo.moduleUrl("dijit","tests/form/test_Textarea.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/form/test_TimeTextBox.html", dojo.moduleUrl("dijit","tests/form/test_TimeTextBox.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/form/test_validate.html", dojo.moduleUrl("dijit","tests/form/test_validate.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_AccordionContainer.html", dojo.moduleUrl("dijit","tests/layout/test_AccordionContainer.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_BorderContainer.html", dojo.moduleUrl("dijit","tests/layout/test_BorderContainer.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_BorderContainer_complex.html", dojo.moduleUrl("dijit","tests/layout/test_BorderContainer_complex.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_BorderContainer_experimental.html", dojo.moduleUrl("dijit","tests/layout/test_BorderContainer_experimental.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_BorderContainer_full.html", dojo.moduleUrl("dijit","tests/layout/test_BorderContainer_full.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_BorderContainer_nested.html", dojo.moduleUrl("dijit","tests/layout/test_BorderContainer_nested.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_ContentPane.html", dojo.moduleUrl("dijit","tests/layout/test_ContentPane.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_LayoutCode.html", dojo.moduleUrl("dijit","tests/layout/test_LayoutCode.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_LayoutContainer.html", dojo.moduleUrl("dijit","tests/layout/test_LayoutContainer.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_SplitContainer.html", dojo.moduleUrl("dijit","tests/layout/test_SplitContainer.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_StackContainer.html", dojo.moduleUrl("dijit","tests/layout/test_StackContainer.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_StackContainer_code.html", dojo.moduleUrl("dijit","tests/layout/test_StackContainer_code.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_TabContainer.html", dojo.moduleUrl("dijit","tests/layout/test_TabContainer.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_TabContainerTitlePane.html", dojo.moduleUrl("dijit","tests/layout/test_TabContainerTitlePane.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_TabContainer_noLayout.html", dojo.moduleUrl("dijit","tests/layout/test_TabContainer_noLayout.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/layout/test_TabContainer_remote.html", dojo.moduleUrl("dijit","tests/layout/test_TabContainer_remote.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/tree/test_Tree_DnD.html", dojo.moduleUrl("dijit","tests/tree/test_Tree_DnD.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/tree/test_Tree_Programmatic.html", dojo.moduleUrl("dijit","tests/tree/test_Tree_Programmatic.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/tree/test_Tree_v1.html", dojo.moduleUrl("dijit","tests/tree/test_Tree_v1.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/_base/test_FocusManager.html", dojo.moduleUrl("dijit","tests/_base/test_FocusManager.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/_base/test_focusWidget.html", dojo.moduleUrl("dijit","tests/_base/test_focusWidget.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/_base/test_placeStrict.html", dojo.moduleUrl("dijit","tests/_base/test_placeStrict.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/_base/test_typematic.html", dojo.moduleUrl("dijit","tests/_base/test_typematic.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/_editor/test_CustomPlugin.html", dojo.moduleUrl("dijit","tests/_editor/test_CustomPlugin.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/_editor/test_RichText.html", dojo.moduleUrl("dijit","tests/_editor/test_RichText.html"+userArgs), 99999999); + doh.registerUrl("dijit/tests/_editor/test_ToggleDir.html", dojo.moduleUrl("dijit","tests/_editor/test_ToggleDir.html"+userArgs), 99999999); + doh.registerUrl("dijit/themes/templateThemeTest.html", dojo.moduleUrl("dijit","themes/templateThemeTest.html"+userArgs), 99999999); + doh.registerUrl("dijit/themes/themeTester.html", dojo.moduleUrl("dijit","themes/themeTester.html"+userArgs), 99999999); + if(dojo.isIE){ + doh.registerUrl("dijit/themes/themeTesterQuirk.html", dojo.moduleUrl("dijit","themes/themeTesterQuirk.html"+userArgs), 99999999); + } +} +}catch(e){ + doh.debug(e); +} + +} diff --git a/includes/js/dijit/tests/module.js b/includes/js/dijit/tests/module.js new file mode 100644 index 0000000..f8a736c --- /dev/null +++ b/includes/js/dijit/tests/module.js @@ -0,0 +1,21 @@ +if(!dojo._hasResource["dijit.tests.module"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.tests.module"] = true; +dojo.provide("dijit.tests.module"); + +try{ + dojo.require("dijit.tests._base.manager"); + dojo.require("dijit.tests._base.viewport"); + dojo.require("dijit.tests._base.wai"); + dojo.require("dijit.tests._Templated"); + dojo.require("dijit.tests.widgetsInTemplate"); + dojo.require("dijit.tests.Container"); + dojo.require("dijit.tests.layout.ContentPane"); + dojo.require("dijit.tests.ondijitclick"); + dojo.require("dijit.tests.form.Form"); +}catch(e){ + doh.debug(e); +} + + + +} diff --git a/includes/js/dijit/tests/ondijitclick.html b/includes/js/dijit/tests/ondijitclick.html new file mode 100644 index 0000000..36de0e0 --- /dev/null +++ b/includes/js/dijit/tests/ondijitclick.html @@ -0,0 +1,95 @@ + + + + + Test Dijit Internal Event: "ondijitclick" + + + + + +
        + + diff --git a/includes/js/dijit/tests/ondijitclick.js b/includes/js/dijit/tests/ondijitclick.js new file mode 100644 index 0000000..6fd67ea --- /dev/null +++ b/includes/js/dijit/tests/ondijitclick.js @@ -0,0 +1,9 @@ +if(!dojo._hasResource["dijit.tests.ondijitclick"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.tests.ondijitclick"] = true; +dojo.provide("dijit.tests.ondijitclick"); + +if(dojo.isBrowser){ + doh.registerUrl("dijit.tests.ondijitclick", dojo.moduleUrl("dijit", "tests/ondijitclick.html")); +} + +} diff --git a/includes/js/dijit/tests/runTests.html b/includes/js/dijit/tests/runTests.html new file mode 100644 index 0000000..9395bd0 --- /dev/null +++ b/includes/js/dijit/tests/runTests.html @@ -0,0 +1,9 @@ + + + + Dijit Unit Test Runner + + + Redirecting to D.O.H runner. + + diff --git a/includes/js/dijit/tests/test.html b/includes/js/dijit/tests/test.html new file mode 100644 index 0000000..c793092 --- /dev/null +++ b/includes/js/dijit/tests/test.html @@ -0,0 +1,37 @@ + + + + widget infrastructure test + + + + + + + + + + + + + + diff --git a/includes/js/dijit/tests/test_Calendar.html b/includes/js/dijit/tests/test_Calendar.html new file mode 100644 index 0000000..df86ba0 --- /dev/null +++ b/includes/js/dijit/tests/test_Calendar.html @@ -0,0 +1,81 @@ + + + + Calendar Widget Test + + + + + + + + +

        Dijit Calendar Test

        + + before + + + + + after +

        + disable weekends +

        + +

        Customized template with "today" button

        + + +
        + + + +
        + + + diff --git a/includes/js/dijit/tests/test_ColorPalette.html b/includes/js/dijit/tests/test_ColorPalette.html new file mode 100644 index 0000000..38675ea --- /dev/null +++ b/includes/js/dijit/tests/test_ColorPalette.html @@ -0,0 +1,53 @@ + + + + ColorPalette Test + + + + + + + + + + + +

        dijit.ColorPalette test:

        + +

        Default color palette (7x10):

        +
        + + Test color is: . + +

        Small color palette (3x4):

        +
        + +

        Default color palette (7x10) created via createWidget:

        +
        + + + diff --git a/includes/js/dijit/tests/test_Declaration.html b/includes/js/dijit/tests/test_Declaration.html new file mode 100644 index 0000000..4e909b9 --- /dev/null +++ b/includes/js/dijit/tests/test_Declaration.html @@ -0,0 +1,66 @@ + + + + Dojo Toolkit - Declaration test + + + + + +

        Simple macro:

        +

        (Check to make sure that links contain employee number) +

        + ${name} + update + delete +
        +
        +
        +
        + +

        Using dojoAttachEvent, dojoAttachPoint

        +
        + XXXXXX + +
        + + + +

        Extending another widget

        +

        HideButton2 extends HideButton (above) and changes the template (but keeps the onclick handler).

        + + YYYYYY + + + + +

        Something more complicated:

        +
        + + +

        thinger blah stuff ${foo}

        + +
        +

        baz thud

        +
        + +
        +
        + + + diff --git a/includes/js/dijit/tests/test_Dialog.html b/includes/js/dijit/tests/test_Dialog.html new file mode 100644 index 0000000..0eabc76 --- /dev/null +++ b/includes/js/dijit/tests/test_Dialog.html @@ -0,0 +1,408 @@ + + + + Dialog Widget Dojo Tests + + + + + + + + + +

        Dijit layout.Dialog tests

        + | + +
        + + + + + + + + + + + + + + + + + + + + + + + + +
        +
        +
        + + + | + + + + + | + +
        +
        +
        +

        + This is the first tab. +

        +

        + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean + semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin + porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. + Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. + Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae + risus. +

        +
        +
        +

        + This is the second tab. +

        +

        + Make it overflow. ipsum dolor sit amet, consectetuer adipiscing elit. Aenean + semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin + porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. + Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. + Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae + risus. +

        +

        + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean + semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin + porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. + Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. + Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae + risus. +

        +

        + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean + semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin + porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. + Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. + Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae + risus. +

        +
        +
        +
        + + | + +
        + + + +
        + + + +
        + +

        Test refocus="false", click programatic dialog, focus input below, wait. close dialog.

        + +

        (scroll down to see more links to click, for testing positioning / scroll handling)

        + +

        +Here's a form. Try clicking the programatic dialog link, then focusing on the form. +After the dialog closes focus should be returned to the form +

        + +
        + +
        + +
        + +
        + + +

        Aliquam vitae enim. Duis scelerisque metus auctor est venenatis +imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem +nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in +massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In +pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra +quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, +felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut +quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla +rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut +semper velit ante id metus. Praesent massa dolor, porttitor sed, +pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit +tortor pharetra congue. Suspendisse pulvinar. +

        +

        Vestibulum convallis eros ac justo. Proin dolor. Etiam aliquam. Nam +ornare elit vel augue. Suspendisse potenti. Etiam sed mauris eu neque +nonummy mollis. Vestibulum vel purus ac pede semper accumsan. Vivamus +lobortis, sem vitae nonummy lacinia, nisl est gravida magna, non cursus +est quam sed urna. Phasellus adipiscing justo in ipsum. Duis sagittis +dolor sit amet magna. Suspendisse suscipit, neque eu dictum auctor, +nisi augue tincidunt arcu, non lacinia magna purus nec magna. Praesent +pretium sollicitudin sapien. Suspendisse imperdiet. Class aptent taciti +sociosqu ad litora torquent per conubia nostra, per inceptos +hymenaeos. +

        +
        +
        + +
        +
        +

        Mauris pharetra lorem sit amet sapien. Nulla libero metus, tristique +et, dignissim a, tempus et, metus. Ut libero. Vivamus tempus purus vel +ipsum. Quisque mauris urna, vestibulum commodo, rutrum vitae, ultrices +vitae, nisl. Class aptent taciti sociosqu ad litora torquent per +conubia nostra, per inceptos hymenaeos. Nulla id erat sit amet odio +luctus eleifend. Proin massa libero, ultricies non, tincidunt a, +vestibulum non, tellus. Nunc nunc purus, lobortis a, pulvinar at, +egestas a, mi. Cras adipiscing velit a mauris. Morbi felis. Etiam at +felis. Cras eget eros et justo mattis pulvinar. Nullam at justo id +risus porttitor dignissim. Vestibulum sed velit vel metus tincidunt +tempus. Nunc euismod nisl id dolor tristique tincidunt. Nullam placerat +turpis sed odio. Curabitur in est id nibh tempus ultrices. Aliquam +consectetuer dapibus eros. Aliquam nisl. +

        +

        +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean +semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin +porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. +Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. +Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae +risus. +

        +

        Aliquam vitae enim. Duis scelerisque metus auctor est venenatis +imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem +nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in +massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In +pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra +quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, +felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut +quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla +rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut +semper velit ante id metus. Praesent massa dolor, porttitor sed, +pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit +tortor pharetra congue. Suspendisse pulvinar. +

        +

        Vestibulum convallis eros ac justo. Proin dolor. Etiam aliquam. Nam +ornare elit vel augue. Suspendisse potenti. Etiam sed mauris eu neque +nonummy mollis. Vestibulum vel purus ac pede semper accumsan. Vivamus +lobortis, sem vitae nonummy lacinia, nisl est gravida magna, non cursus +est quam sed urna. Phasellus adipiscing justo in ipsum. Duis sagittis +dolor sit amet magna. Suspendisse suscipit, neque eu dictum auctor, +nisi augue tincidunt arcu, non lacinia magna purus nec magna. Praesent +pretium sollicitudin sapien. Suspendisse imperdiet. Class aptent taciti +sociosqu ad litora torquent per conubia nostra, per inceptos +hymenaeos. +

        +
        +
        + +
        +
        +

        Mauris pharetra lorem sit amet sapien. Nulla libero metus, tristique +et, dignissim a, tempus et, metus. Ut libero. Vivamus tempus purus vel +ipsum. Quisque mauris urna, vestibulum commodo, rutrum vitae, ultrices +vitae, nisl. Class aptent taciti sociosqu ad litora torquent per +conubia nostra, per inceptos hymenaeos. Nulla id erat sit amet odio +luctus eleifend. Proin massa libero, ultricies non, tincidunt a, +vestibulum non, tellus. Nunc nunc purus, lobortis a, pulvinar at, +egestas a, mi. Cras adipiscing velit a mauris. Morbi felis. Etiam at +felis. Cras eget eros et justo mattis pulvinar. Nullam at justo id +risus porttitor dignissim. Vestibulum sed velit vel metus tincidunt +tempus. Nunc euismod nisl id dolor tristique tincidunt. Nullam placerat +turpis sed odio. Curabitur in est id nibh tempus ultrices. Aliquam +consectetuer dapibus eros. Aliquam nisl. +

        + +Show Dialog +

        +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean +semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin +porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. +Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. +Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae +risus. +

        +

        Aliquam vitae enim. Duis scelerisque metus auctor est venenatis +imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem +nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in +massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In +pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra +quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, +felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut +quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla +rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut +semper velit ante id metus. Praesent massa dolor, porttitor sed, +pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit +tortor pharetra congue. Suspendisse pulvinar. +

        +

        Vestibulum convallis eros ac justo. Proin dolor. Etiam aliquam. Nam +ornare elit vel augue. Suspendisse potenti. Etiam sed mauris eu neque +nonummy mollis. Vestibulum vel purus ac pede semper accumsan. Vivamus +lobortis, sem vitae nonummy lacinia, nisl est gravida magna, non cursus +est quam sed urna. Phasellus adipiscing justo in ipsum. Duis sagittis +dolor sit amet magna. Suspendisse suscipit, neque eu dictum auctor, +nisi augue tincidunt arcu, non lacinia magna purus nec magna. Praesent +pretium sollicitudin sapien. Suspendisse imperdiet. Class aptent taciti +sociosqu ad litora torquent per conubia nostra, per inceptos +hymenaeos. +

        +

        Mauris pharetra lorem sit amet sapien. Nulla libero metus, tristique +et, dignissim a, tempus et, metus. Ut libero. Vivamus tempus purus vel +ipsum. Quisque mauris urna, vestibulum commodo, rutrum vitae, ultrices +vitae, nisl. Class aptent taciti sociosqu ad litora torquent per +conubia nostra, per inceptos hymenaeos. Nulla id erat sit amet odio +luctus eleifend. Proin massa libero, ultricies non, tincidunt a, +vestibulum non, tellus. Nunc nunc purus, lobortis a, pulvinar at, +egestas a, mi. Cras adipiscing velit a mauris. Morbi felis. Etiam at +felis. Cras eget eros et justo mattis pulvinar. Nullam at justo id +risus porttitor dignissim. Vestibulum sed velit vel metus tincidunt +tempus. Nunc euismod nisl id dolor tristique tincidunt. Nullam placerat +turpis sed odio. Curabitur in est id nibh tempus ultrices. Aliquam +consectetuer dapibus eros. Aliquam nisl. +

        + +

        +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean +semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin +porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. +Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. +Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae +risus. +

        +

        Aliquam vitae enim. Duis scelerisque metus auctor est venenatis +imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem +nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in +massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In +pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra +quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, +felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut +quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla +rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut +semper velit ante id metus. Praesent massa dolor, porttitor sed, +pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit +tortor pharetra congue. Suspendisse pulvinar. +

        +

        Vestibulum convallis eros ac justo. Proin dolor. Etiam aliquam. Nam +ornare elit vel augue. Suspendisse potenti. Etiam sed mauris eu neque +nonummy mollis. Vestibulum vel purus ac pede semper accumsan. Vivamus +lobortis, sem vitae nonummy lacinia, nisl est gravida magna, non cursus +est quam sed urna. Phasellus adipiscing justo in ipsum. Duis sagittis +dolor sit amet magna. Suspendisse suscipit, neque eu dictum auctor, +nisi augue tincidunt arcu, non lacinia magna purus nec magna. Praesent +pretium sollicitudin sapien. Suspendisse imperdiet. Class aptent taciti +sociosqu ad litora torquent per conubia nostra, per inceptos +hymenaeos. +

        +

        Mauris pharetra lorem sit amet sapien. Nulla libero metus, tristique +et, dignissim a, tempus et, metus. Ut libero. Vivamus tempus purus vel +ipsum. Quisque mauris urna, vestibulum commodo, rutrum vitae, ultrices +vitae, nisl. Class aptent taciti sociosqu ad litora torquent per +conubia nostra, per inceptos hymenaeos. Nulla id erat sit amet odio +luctus eleifend. Proin massa libero, ultricies non, tincidunt a, +vestibulum non, tellus. Nunc nunc purus, lobortis a, pulvinar at, +egestas a, mi. Cras adipiscing velit a mauris. Morbi felis. Etiam at +felis. Cras eget eros et justo mattis pulvinar. Nullam at justo id +risus porttitor dignissim. Vestibulum sed velit vel metus tincidunt +tempus. Nunc euismod nisl id dolor tristique tincidunt. Nullam placerat +turpis sed odio. Curabitur in est id nibh tempus ultrices. Aliquam +consectetuer dapibus eros. Aliquam nisl. +

        + + + + diff --git a/includes/js/dijit/tests/test_Dialog_focusDestroy.html b/includes/js/dijit/tests/test_Dialog_focusDestroy.html new file mode 100644 index 0000000..187a5d4 --- /dev/null +++ b/includes/js/dijit/tests/test_Dialog_focusDestroy.html @@ -0,0 +1,61 @@ + + + + Dialog Widget Dojo Tests + + + + + + + + + +

        Dijit layout.Dialog tests

        + +

        If you input this box, you can type. You should be able to type and use backspace/etc +when you destroy the visible dialog. refs #5351 +

        + + + + + + + + diff --git a/includes/js/dijit/tests/test_Editor.html b/includes/js/dijit/tests/test_Editor.html new file mode 100644 index 0000000..b73ecea --- /dev/null +++ b/includes/js/dijit/tests/test_Editor.html @@ -0,0 +1,153 @@ + + + + Editor Test + + + + + + + + + +
        Automated Test - all check boxes should be checked
        + Focus: + Value: + + Change: + Blur: + Disabled: +
        +
        + +

        +

        Created from div

        +
        +

        This instance is created from a div directly with default toolbar and plugins

        +
        + + +
        + +

        Created from textarea,auto-expanding

        +
        +

        + +

        ..after

        +
        +
        + +

        Optional toolbar buttons

        +
        +

        + +

        ..after

        + +
        +
        + +

        Plugins specified

        +
        +

        + +

        ..after

        +
        +
        + +

        Programmatic creation

        +
        This div will become an editor.
        + +
        This div will become an auto-expanding editor.
        + + + diff --git a/includes/js/dijit/tests/test_InlineEditBox.html b/includes/js/dijit/tests/test_InlineEditBox.html new file mode 100644 index 0000000..ea8d7a8 --- /dev/null +++ b/includes/js/dijit/tests/test_InlineEditBox.html @@ -0,0 +1,231 @@ + + + + Inline Edit Box Test + + + + + + + + + +

        Dijit InlineEditBox Test

        + + + + + + +

        Form Letter with blanks

        +
        +

        +

        + Dear , +

        +

        + Thank you for your recent order. + Please remit +  for + your purchase of +  deluxe +  on +  in + . +

        +

        +

        + Sincerely, +

        + +
        +
        + +

        Form Letter with predefined values, and no auto-save

        +
        +

        + Bob Vance Refrigeration +

        +

        + Dear John, +

        +

        + Thank you for your recent order. + Please remit + $2,000 + for your purchase of + 3 + deluxe + refrigerators + on + 01/01/2007 + in + + Pennsylvania + . +

        +

        + We sincerely appreciate your business and hope we can do business again. +

        +

        + Sincerely, +

        + Bob Vance +
        +
        + + +

        Inline-block Text (of 400px width)

        +
        + The following section uses inline block text of 400px. + When clicking the editable text it should bring up an editor which is also 400px wide. +
        + (before plain inline)
        hello world
        (after plain inline) +
        + (before editable inline) +
        + hello world +
        + (after editable inline) +
        + +

        Pararagraph

        + (before plain paragraph) +

        + Aliquam vitae enim. Duis scelerisque metus auctor est venenatis +imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem +nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in +massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In +pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra +quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, +felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut +quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla +rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut +semper velit ante id metus. Praesent massa dolor, porttitor sed, +pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit +tortor pharetra congue. Suspendisse pulvinar. +

        + (before editable paragraph. the editable paragraph has Save/Cancel buttons when open.) +

        + Aliquam vitae enim. Duis scelerisque metus auctor est venenatis +imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem +nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in +massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In +pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra +quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, +felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut +quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla +rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut +semper velit ante id metus. Praesent massa dolor, porttitor sed, +pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit +tortor pharetra congue. Suspendisse pulvinar. +

        + These buttons will + / + + the InlineEditBox above. +
        + +

        Editor

        +

        + Aliquam vitae enim. Duis scelerisque metus auctor est venenatis +imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem +nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in +massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In +pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra +quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, +felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut +quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla +rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut +semper velit ante id metus. Praesent massa dolor, porttitor sed, +pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit +tortor pharetra congue. Suspendisse pulvinar. +

        + +

        FilteringSelect (no down arrow, and save/cancel buttons):

        + before + + Indiana + + after +
        + +

        Programmatically created:

        + before block
        Click here to edit a block programmatically created inline edit region
        after + +
        + + diff --git a/includes/js/dijit/tests/test_Menu.html b/includes/js/dijit/tests/test_Menu.html new file mode 100644 index 0000000..a0bed27 --- /dev/null +++ b/includes/js/dijit/tests/test_Menu.html @@ -0,0 +1,270 @@ + + + + + Menu System Test + + + + + + + + + + + + + + + + + +
        +

        Dijit Menu System Test

        + +

        Form

        + +
        + +

        left click to open the menu for this input:
        Note: because of the window contextMenu, make sure you get
        the right menu by verifying the left
        click one starts with "Left Click Menu"
        at the very top.

        +
        + + +
        + +
        + Click button below to create special menu on this div. +
        + + + +
        +

        (this space intentionally left blank to aid testing with controls + at the bottom of the browser window)

        +
        + +

        + +

        See also: form/test_Button + (PopupMenu is used with DropDownButton and ComboButton)

        + +

        Mouse opening tests

        + +
          +
        • Right click on the client area of the page (ctrl-click for Macintosh). Menu should open.
        • +
        • Right click on each of the form controls above. Menu should open.
        • +
        • Right click near the righthand window border. Menu should open to the left of the pointer.
        • +
        • Right click near the bottom window border. Menu should open above the pointer.
        • +
        + + +

        Mouse hover tests

        + +
          +
        • Hover over the first item with the pointer. Item should highlight and get focus.
        • +
        • Hover over the second (disabled) item. Item should highlight and get focus.
        • +
        • Seperator items should not highlight on hover - no items should highlight in this case.
        • +
        + + +

        Mouse click tests

        + +
          +
        • Click on the first menu item. Alert should open with the message "Hello world". The menu should dissapear.
        • +
        • Click on the second menu item (disabled). Should not do anything - focus should remain on the disabled item.
        • +
        • Click anywhere outside the menu. Menu should close. Focus will be set by the browser based on where the user clicks.
        • +
        + + +

        Mouse submenu tests

        + +
          +
        • Hover over the "Enabled Submenu" item. Item should highlight and then pop open a submenu after a short (500ms) delay.
        • +
        • Hover over any of the other menu items. Submenu should close immediately and deselect the submenu parent item. The newly hovered item should become selected.
        • +
        • Hover over the "Disabled Submenu" item. Item should highlight, but no submenu should appear.
        • +
        • Clicking on the "Enabled Submenu" item before the submenu has opened (you'll have to be quick!) should immediatley open the submenu.
        • +
        • Clicking on the "Enabled Submenu" item after the submenu has opened should have no effect - the item is still selected and the submenu still open.
        • +
        • Hover over submenu item 1. Should select it - the parent menu item should stay selected also.
        • +
        • Hover over submenu item 2. Should select it - the parent menu item should stay selected also.
        • +
        + + +

        Keyboard opening tests

        + +
          +
        • On Windows: press shift-f10 with focus on any of the form controls. Should open the menu.
        • +
        • On Windows: press the context menu key (located on the right of the space bar on North American keyboards) with focus on any of the form controls. Should open the menu.
        • +
        • On Firefox on the Mac: press ctrl-space with focus on any of the form controls. Should open the menu.
        • +
        + + +

        Keyboard closing tests

        + +
          +
        • Open the menu.
        • +
        • Press tab. Should close the menu and return focus to where it was before the menu was opened.
        • +
        • Open the menu.
        • +
        • Press escape. Should close the menu and return focus to where it was before the menu was opened.
        • +
        + + +

        Keyboard navigation tests

        + +
          +
        • Open the menu.
        • +
        • Pressing up or down arrow should cycle focus through the items in that menu.
        • +
        • Pressing enter or space should invoke the menu item.
        • +
        • Disabled items receive focus but no action is taken upon pressing enter or space.
        • +
        + + +

        Keyboard submenu tests

        + +
          +
        • Open the menu.
        • +
        • The first item should become selected.
        • +
        • Press the right arrow key. Nothing should happen.
        • +
        • Press the left arrow key. Nothing should happen.
        • +
        • Press the down arrow until "Enabled Submenu" is selected. The submenu should not appear.
        • +
        • Press enter. The submenu should appear with the first item selected.
        • +
        • Press escape. The submenu should vanish - "Enabled Submenu" should remain selected.
        • +
        • Press the right arrow key. The submenu should appear with the first item selected.
        • +
        • Press the right arrow key. Nothing should happen.
        • +
        • Press the left arrow key. The submenu should close - "Enabled Submenu" should remain selected.
        • +
        • Press the left arrow key. The menu should not close and "Enabled Submenu" should remain selected.
        • +
        • Press escape. The menu should close and focus should be returned to where it was before the menu was opened.
        • +
        + +
        + + + diff --git a/includes/js/dijit/tests/test_ProgressBar.html b/includes/js/dijit/tests/test_ProgressBar.html new file mode 100644 index 0000000..7df8119 --- /dev/null +++ b/includes/js/dijit/tests/test_ProgressBar.html @@ -0,0 +1,165 @@ + + + + Dojo Toolkit - ProgressBar test + + + + + + + + + + + + +

        Dijit ProgressBar Tests

        + +

        Test 1

        + Progress Value +
        + Max Progress Value +
        + +
        +
        + +

        Test 2

        + Write here: +
        +
        +
        +
        + Small, without text and background image: +
        +
        +
        + Show decimal place: +
        + +

        Test 3

        + No explicit maximum (both 50%) +
        +
        +
        + +

        Test 4

        + +
        + +

        Test 5 - indeterminate progess

        + + +
        + + +
        + + + diff --git a/includes/js/dijit/tests/test_TitlePane.html b/includes/js/dijit/tests/test_TitlePane.html new file mode 100644 index 0000000..d0096c0 --- /dev/null +++ b/includes/js/dijit/tests/test_TitlePane.html @@ -0,0 +1,126 @@ + + + + TitlePane Test + + + + + + + + + +

        Dijit TitlePane Test

        + +

        Test #1: plain title pane, width=300px

        +
        + Lorem Ipsum Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque + iaculis, nulla id semper faucibus, pede tellus nonummy magna, vitae adipiscing + orci arcu ut augue. Nunc condimentum, magna a vestibulum convallis, libero purus + pulvinar orci, sed vestibulum urna sem ut pede. More Ipsum... + Sed sollicitudin suscipit risus. Nam ullamcorper. Sed nisl lectus, pellentesque + nec, malesuada eget, ornare a, libero. Lorem ipsum dolor sit amet, + consectetuer adipiscing elit. +
        + +

        Test #2: title pane with form, width=300px

        + +
        +
        + Age:
        + Discount card
        +
        +
        +
        +
        + +

        Test #3: initially closed pane

        +
        +
        + Age:
        + Discount card
        +
        +
        +
        + + +

        Test #4: title pane with href (initially closed)

        +

        The pane should open to "Loading..." message and then 2 seconds later it should slide open more to show loaded data.

        +
        + Loading... +
        + +

        Test #5: title pane with href (initially closed)

        +

        The pane should start to open to "Loading..." but halfway through href data will be loaded, and it should expand correctly.

        +
        + Loading... +
        + +

        Test #6: nested title pane

        +
        +

        This is a title pane, containing another title pane ... +

        Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque iaculis, nulla id semper faucibus, pede tellus nonummy magna, vitae adipiscing orci arcu ut augue. Nunc condimentum, magna a vestibulum convallis, libero purus pulvinar orci, sed vestibulum urna sem ut pede. +More Ipsum... + +

        +

        And this is the inner title pane... +

        Sed sollicitudin suscipit risus. Nam ullamcorper. Sed nisl lectus, pellentesque nec, malesuada eget, ornare a, libero. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. +

        + +

        And this is the closing line for the outer title pane. +

        + +

        Test #7: subclassed title pane (only arrow is selectable and focusable)

        +
        + Lorem Ipsum Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque + iaculis, nulla id semper faucibus, pede tellus nonummy magna, vitae adipiscing + orci arcu ut augue. Nunc condimentum, magna a vestibulum convallis, libero purus + pulvinar orci, sed vestibulum urna sem ut pede. More Ipsum... + Sed sollicitudin suscipit risus. Nam ullamcorper. Sed nisl lectus, pellentesque + nec, malesuada eget, ornare a, libero. Lorem ipsum dolor sit amet, + consectetuer adipiscing elit. +
        + + + + + +
        + Here's some text below the title panes (to make sure that closing a title pane releases the space that the content was taking up) +
        + + + diff --git a/includes/js/dijit/tests/test_Toolbar.html b/includes/js/dijit/tests/test_Toolbar.html new file mode 100644 index 0000000..6634e2d --- /dev/null +++ b/includes/js/dijit/tests/test_Toolbar.html @@ -0,0 +1,186 @@ + + + + Dojo Toolbar Widget Test + + + + + + + + + +

        Toolbar test

        + +

        Toolbar from markup

        + +
        Cut
        Copy
        Paste
        Bold
        Italic
        Underline
        Strikethrough
         
        Ordered list
        Unordered list
        Indent
        Outdent
        + Login +
        + + + + + + + + + + + + +
        +
        +
        + Background + +
        + Foreground + +
        + Save + +
        + +

        Toolbar that looks like MenuBar

        + + +

        Toolbar from script with icons only

        +
        + +

        Toolbar from script with text and icons

        +
        + +

        Toolbar from script with text only

        +
        + + +

        + + diff --git a/includes/js/dijit/tests/test_Tooltip.html b/includes/js/dijit/tests/test_Tooltip.html new file mode 100644 index 0000000..56553b6 --- /dev/null +++ b/includes/js/dijit/tests/test_Tooltip.html @@ -0,0 +1,117 @@ + + + + Dojo Tooltip Widget Test + + + + + + + + + +

        Tooltip test

        +

        Mouse-over or focus the items below to test tooltips.

        +

        + Change tooltip positioning search list: + + +

        +
        focusable text + + + rich formatting + ! + + +
        + plain text (not focusable) + + keyboard users can not access this tooltip + + anchor + tooltip on a link +

        + + this text has a programmatically created tooltip +
        + + + tooltip on a button + tooltip from "button w/tooltip". + + + Test tooltip on right aligned element. Tooltip should flow to the left --> + + + + tooltip on a select
        + two line tooltip. +
        +
        + +

        + +
        +
        +
        +
        +
        +
        +
        +
        +
        + +
        + s1 text


        + s2 text


        + s3 text


        + s4 text


        + s5 text


        +
        + + + + tooltip for #1
        + long long long long long long long long long long long text
        + make sure that this works properly with a really narrow window +
        + + tooltip for #2 + tooltip for #3 + tooltip for #4 + tooltip for #5 + tooltip for #6 + + s1 tooltip + s2 tooltip + s3 tooltip + s4 tooltip + s5 tooltip + +

        One Tooltip for multiple connect nodes

        + multi tooltip + multi1
        multi2 + + + + diff --git a/includes/js/dijit/tests/test_TooltipDialog.html b/includes/js/dijit/tests/test_TooltipDialog.html new file mode 100644 index 0000000..62a5000 --- /dev/null +++ b/includes/js/dijit/tests/test_TooltipDialog.html @@ -0,0 +1,349 @@ + + + + TooltipDialog Widget Tests + + + + + + + + + +

        Dijit layout.TooltipDialog tests

        + +
        + Show Tooltip Dialog +
        + + + + + + + + + + + + + + + + + + + + + + + + +
        + +
        + +
        +
        Note: This tooltip dialog has a bunch of nested drop downs for testing keyboard and click handling
        +
        +
        | + +
        + Show Tooltip Dialog with TabContainer +
        +
        +
        +

        + This is the first tab. +

        +

        + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean + semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin + porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. + Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. + Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae + risus. +

        +
        +
        +

        + This is the second tab. +

        +

        + ipsum dolor sit amet, consectetuer adipiscing elit. Aenean + semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin + porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. + Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. + Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae + risus. +

        +
        +
        +
        +
        | + +
        + Test slowloading HREF Tooltip Dialog +
        +
        | + +

        (scroll down to see more links to click, for testing positioning / scroll handling)

        + +

        Aliquam vitae enim. Duis scelerisque metus auctor est venenatis +imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem +nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in +massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In +pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra +quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, +felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut +quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla +rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut +semper velit ante id metus. Praesent massa dolor, porttitor sed, +pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit +tortor pharetra congue. Suspendisse pulvinar. +

        +

        Vestibulum convallis eros ac justo. Proin dolor. Etiam aliquam. Nam +ornare elit vel augue. Suspendisse potenti. Etiam sed mauris eu neque +nonummy mollis. Vestibulum vel purus ac pede semper accumsan. Vivamus +lobortis, sem vitae nonummy lacinia, nisl est gravida magna, non cursus +est quam sed urna. Phasellus adipiscing justo in ipsum. Duis sagittis +dolor sit amet magna. Suspendisse suscipit, neque eu dictum auctor, +nisi augue tincidunt arcu, non lacinia magna purus nec magna. Praesent +pretium sollicitudin sapien. Suspendisse imperdiet. Class aptent taciti +sociosqu ad litora torquent per conubia nostra, per inceptos +hymenaeos. +

        +
        +
        + +
        +
        +

        Mauris pharetra lorem sit amet sapien. Nulla libero metus, tristique +et, dignissim a, tempus et, metus. Ut libero. Vivamus tempus purus vel +ipsum. Quisque mauris urna, vestibulum commodo, rutrum vitae, ultrices +vitae, nisl. Class aptent taciti sociosqu ad litora torquent per +conubia nostra, per inceptos hymenaeos. Nulla id erat sit amet odio +luctus eleifend. Proin massa libero, ultricies non, tincidunt a, +vestibulum non, tellus. Nunc nunc purus, lobortis a, pulvinar at, +egestas a, mi. Cras adipiscing velit a mauris. Morbi felis. Etiam at +felis. Cras eget eros et justo mattis pulvinar. Nullam at justo id +risus porttitor dignissim. Vestibulum sed velit vel metus tincidunt +tempus. Nunc euismod nisl id dolor tristique tincidunt. Nullam placerat +turpis sed odio. Curabitur in est id nibh tempus ultrices. Aliquam +consectetuer dapibus eros. Aliquam nisl. +

        +
        + dropdown at right +
        +
        Aliquam vitae enim. Duis scelerisque metus auctor est venenatis
        +
        +
        +

        +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean +semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin +porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. +Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. +Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae +risus. +

        +

        Aliquam vitae enim. Duis scelerisque metus auctor est venenatis +imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem +nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in +massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In +pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra +quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, +felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut +quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla +rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut +semper velit ante id metus. Praesent massa dolor, porttitor sed, +pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit +tortor pharetra congue. Suspendisse pulvinar. +

        + +
        + Show Tooltip Dialog pointing upwards, with links +
        +

        Vestibulum convallis eros ac justo. Proin dolor. Etiam aliquam. Nam + ornare elit vel augue. Suspendisse potenti. Etiam sed mauris eu neque + nonummy mollis. Vestibulum vel purus ac pede semper accumsan. Vivamus + lobortis, sem vitae nonummy lacinia, nisl est gravida magna, non cursus + est quam sed urna. Phasellus adipiscing justo in ipsum. Duis sagittis + dolor sit amet magna. Suspendisse suscipit, neque eu dictum auctor, + nisi augue tincidunt arcu, non lacinia magna purus nec magna. Praesent + pretium sollicitudin sapien. Suspendisse imperdiet. Class aptent taciti + sociosqu ad litora torquent per conubia nostra, per inceptos + hymenaeos. +

        +
        +
        +(will go up if there isn't enough space on the bottom of the screen) + +

        Vestibulum convallis eros ac justo. Proin dolor. Etiam aliquam. Nam +ornare elit vel augue. Suspendisse potenti. Etiam sed mauris eu neque +nonummy mollis. Vestibulum vel purus ac pede semper accumsan. Vivamus +lobortis, sem vitae nonummy lacinia, nisl est gravida magna, non cursus +est quam sed urna. Phasellus adipiscing justo in ipsum. Duis sagittis +dolor sit amet magna. Suspendisse suscipit, neque eu dictum auctor, +nisi augue tincidunt arcu, non lacinia magna purus nec magna. Praesent +pretium sollicitudin sapien. Suspendisse imperdiet. Class aptent taciti +sociosqu ad litora torquent per conubia nostra, per inceptos +hymenaeos. +

        +
        +
        + +
        +
        +

        Mauris pharetra lorem sit amet sapien. Nulla libero metus, tristique +et, dignissim a, tempus et, metus. Ut libero. Vivamus tempus purus vel +ipsum. Quisque mauris urna, vestibulum commodo, rutrum vitae, ultrices +vitae, nisl. Class aptent taciti sociosqu ad litora torquent per +conubia nostra, per inceptos hymenaeos. Nulla id erat sit amet odio +luctus eleifend. Proin massa libero, ultricies non, tincidunt a, +vestibulum non, tellus. Nunc nunc purus, lobortis a, pulvinar at, +egestas a, mi. Cras adipiscing velit a mauris. Morbi felis. Etiam at +felis. Cras eget eros et justo mattis pulvinar. Nullam at justo id +risus porttitor dignissim. Vestibulum sed velit vel metus tincidunt +tempus. Nunc euismod nisl id dolor tristique tincidunt. Nullam placerat +turpis sed odio. Curabitur in est id nibh tempus ultrices. Aliquam +consectetuer dapibus eros. Aliquam nisl. +

        +

        +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean +semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin +porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. +Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. +Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae +risus. +

        +

        Aliquam vitae enim. Duis scelerisque metus auctor est venenatis +imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem +nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in +massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In +pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra +quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, +felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut +quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla +rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut +semper velit ante id metus. Praesent massa dolor, porttitor sed, +pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit +tortor pharetra congue. Suspendisse pulvinar. +

        +

        Vestibulum convallis eros ac justo. Proin dolor. Etiam aliquam. Nam +ornare elit vel augue. Suspendisse potenti. Etiam sed mauris eu neque +nonummy mollis. Vestibulum vel purus ac pede semper accumsan. Vivamus +lobortis, sem vitae nonummy lacinia, nisl est gravida magna, non cursus +est quam sed urna. Phasellus adipiscing justo in ipsum. Duis sagittis +dolor sit amet magna. Suspendisse suscipit, neque eu dictum auctor, +nisi augue tincidunt arcu, non lacinia magna purus nec magna. Praesent +pretium sollicitudin sapien. Suspendisse imperdiet. Class aptent taciti +sociosqu ad litora torquent per conubia nostra, per inceptos +hymenaeos. +

        +

        Mauris pharetra lorem sit amet sapien. Nulla libero metus, tristique +et, dignissim a, tempus et, metus. Ut libero. Vivamus tempus purus vel +ipsum. Quisque mauris urna, vestibulum commodo, rutrum vitae, ultrices +vitae, nisl. Class aptent taciti sociosqu ad litora torquent per +conubia nostra, per inceptos hymenaeos. Nulla id erat sit amet odio +luctus eleifend. Proin massa libero, ultricies non, tincidunt a, +vestibulum non, tellus. Nunc nunc purus, lobortis a, pulvinar at, +egestas a, mi. Cras adipiscing velit a mauris. Morbi felis. Etiam at +felis. Cras eget eros et justo mattis pulvinar. Nullam at justo id +risus porttitor dignissim. Vestibulum sed velit vel metus tincidunt +tempus. Nunc euismod nisl id dolor tristique tincidunt. Nullam placerat +turpis sed odio. Curabitur in est id nibh tempus ultrices. Aliquam +consectetuer dapibus eros. Aliquam nisl. +

        + +

        +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean +semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin +porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. +Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. +Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae +risus. +

        +

        Aliquam vitae enim. Duis scelerisque metus auctor est venenatis +imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem +nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in +massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In +pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra +quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia, +felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut +quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla +rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut +semper velit ante id metus. Praesent massa dolor, porttitor sed, +pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit +tortor pharetra congue. Suspendisse pulvinar. +

        +

        Vestibulum convallis eros ac justo. Proin dolor. Etiam aliquam. Nam +ornare elit vel augue. Suspendisse potenti. Etiam sed mauris eu neque +nonummy mollis. Vestibulum vel purus ac pede semper accumsan. Vivamus +lobortis, sem vitae nonummy lacinia, nisl est gravida magna, non cursus +est quam sed urna. Phasellus adipiscing justo in ipsum. Duis sagittis +dolor sit amet magna. Suspendisse suscipit, neque eu dictum auctor, +nisi augue tincidunt arcu, non lacinia magna purus nec magna. Praesent +pretium sollicitudin sapien. Suspendisse imperdiet. Class aptent taciti +sociosqu ad litora torquent per conubia nostra, per inceptos +hymenaeos. +

        +

        Mauris pharetra lorem sit amet sapien. Nulla libero metus, tristique +et, dignissim a, tempus et, metus. Ut libero. Vivamus tempus purus vel +ipsum. Quisque mauris urna, vestibulum commodo, rutrum vitae, ultrices +vitae, nisl. Class aptent taciti sociosqu ad litora torquent per +conubia nostra, per inceptos hymenaeos. Nulla id erat sit amet odio +luctus eleifend. Proin massa libero, ultricies non, tincidunt a, +vestibulum non, tellus. Nunc nunc purus, lobortis a, pulvinar at, +egestas a, mi. Cras adipiscing velit a mauris. Morbi felis. Etiam at +felis. Cras eget eros et justo mattis pulvinar. Nullam at justo id +risus porttitor dignissim. Vestibulum sed velit vel metus tincidunt +tempus. Nunc euismod nisl id dolor tristique tincidunt. Nullam placerat +turpis sed odio. Curabitur in est id nibh tempus ultrices. Aliquam +consectetuer dapibus eros. Aliquam nisl. +

        + + + + diff --git a/includes/js/dijit/tests/test_Tree.html b/includes/js/dijit/tests/test_Tree.html new file mode 100644 index 0000000..fc88fc1 --- /dev/null +++ b/includes/js/dijit/tests/test_Tree.html @@ -0,0 +1,115 @@ + + + + Dijit Tree Test + + + + + + + + + + + +

        Dijit Tree Test

        + +
        +
        + +

        Tree with hardcoded root node (not corresponding to any item in the store)

        +

        Clicking a folder node will open/close it (openOnclick==true), and clicking a leaf node will popup an alert.

        +
        + +
        + + + +

        A rootless tree (no "continents" node) with context menus, and custom icons

        + + + +
        + + + + +
        + + + diff --git a/includes/js/dijit/tests/test_Tree_Notification_API_Support.html b/includes/js/dijit/tests/test_Tree_Notification_API_Support.html new file mode 100644 index 0000000..07f7509 --- /dev/null +++ b/includes/js/dijit/tests/test_Tree_Notification_API_Support.html @@ -0,0 +1,287 @@ + + + + Dijit Tree Test + + + + + + + + + + + +

        Dijit Tree Test - dojo.data.Notification API support

        + +
        +
        +
        + +
        +

        Selected Item:

        +
        +
        +

        +
        + +
        +
        +
        + +
        +
        +
        (drag and drop items to adjust list of children, and order of those children)
        +
        +
        Update Item
        +
        Delete Item
        + +

        New Item

        +

        Enter an Id, Name, and optionally a description to be added as a new item to the store. Upon successful addition, the tree will recieve notification of this event and respond accordingly. If you select a node the item will be added to that node, otherwise the item will be added to the tree root. "Id" is the identifer here and as such must be unique for all items in the store.

        +
        +
        +
        +

        +

        +
        + Children (in order): +
        +
        +
        + +
        +
        +
        (drag and drop items to adjust list of children, and order of those children)
        +
        + +
        Add Item to Store
        +
        + +

        Data in flat form

        + +
        + Id: ${itemId}, Name: ${name} + + Children: + + + +
        +
        + + + + + + diff --git a/includes/js/dijit/tests/test_instantiate.html b/includes/js/dijit/tests/test_instantiate.html new file mode 100644 index 0000000..ffc39a4 --- /dev/null +++ b/includes/js/dijit/tests/test_instantiate.html @@ -0,0 +1,111 @@ + + + dojo.NodeList.instantiate() tests + + + + + + + + + + +

        dojo.NodeList.instantiate() tests: before

        + +

        Some simple widgets:

        +
          +
        • inner
        • inner
        • inner
        • inner
        • inner
        • inner
        • inner
        • inner
        • inner
        • +
        +
          +
        • inner
        • inner
        • inner
        • inner
        • inner
        • inner
        • inner
        • inner
        • inner
        • +
        + +

        A TabContainer:

        +
        +
        pane1
        +
        pane2
        +
        pane3
        +
        + +

        Some Buttons

        +
        + + + + + +
        + + + diff --git a/includes/js/dijit/tests/tree/test_Tree_DnD.html b/includes/js/dijit/tests/tree/test_Tree_DnD.html new file mode 100644 index 0000000..2602573 --- /dev/null +++ b/includes/js/dijit/tests/tree/test_Tree_DnD.html @@ -0,0 +1,194 @@ + + + + Dijit Tree Test + + + + + + + + + + + + + +

        Dijit Tree Test - Drag And Drop Support

        + +
        + + + + + + + + + + + +
        +

        Custom

        +

        Should add this category to the store. The second parameter is the value for numberOfItems.

        +
        +
        Add Category
        +
        +
        +

        Items:

        +

        List of Items to be categorized

        +

        +
        Apple
        +
        Orange
        +
        Banana
        +
        Tomato
        +
        Pepper
        +
        Wheat
        +
        Corn
        +
        Spinach
        +
        Cucumber
        +
        Carrot
        +
        Potato
        +
        Grape
        +
        Lemon
        +
        Lettuce
        +
        Peanut
        +
        +
        +

        Collection Count Summary

        +

        You can't drop items onto this tree.

        +
        +
        +
        +

        Collection

        +

        + Drop items onto this tree, but only onto categories; should fail to let you drop on other items. + Can also move items within this tree. +

        +
        +
        +
        + + + diff --git a/includes/js/dijit/tests/tree/test_Tree_Programmatic.html b/includes/js/dijit/tests/tree/test_Tree_Programmatic.html new file mode 100644 index 0000000..b32b50f --- /dev/null +++ b/includes/js/dijit/tests/tree/test_Tree_Programmatic.html @@ -0,0 +1,40 @@ + + + + Dijit Tree Programmatic Test + + + + + + + + + +

        Dijit Forest Store Programmatic Test

        + + diff --git a/includes/js/dijit/tests/tree/test_Tree_v1.html b/includes/js/dijit/tests/tree/test_Tree_v1.html new file mode 100644 index 0000000..bf2b800 --- /dev/null +++ b/includes/js/dijit/tests/tree/test_Tree_v1.html @@ -0,0 +1,111 @@ + + + + Dijit Tree Test + + + + + + + + + + +

        Dijit Tree Test

        + +
        + +

        Tree with hardcoded root node (not corresponding to any item in the store)

        +

        Clicking a folder node will open/close it (openOnclick==true), and clicking a leaf node will popup an alert.

        +
        + +
        + + + +

        A rootless tree (no "continents" node) with context menus, and custom icons

        + + + +
        + + + +
        + + + diff --git a/includes/js/dijit/tests/widgetsInTemplate.html b/includes/js/dijit/tests/widgetsInTemplate.html new file mode 100644 index 0000000..ae3b6f9 --- /dev/null +++ b/includes/js/dijit/tests/widgetsInTemplate.html @@ -0,0 +1,112 @@ + + + testing widgetsInTemplate support + + + + + +

        testing widgetsInTemplate support

        + + + +
        + + + + +
        + + + diff --git a/includes/js/dijit/tests/widgetsInTemplate.js b/includes/js/dijit/tests/widgetsInTemplate.js new file mode 100644 index 0000000..18b25ea --- /dev/null +++ b/includes/js/dijit/tests/widgetsInTemplate.js @@ -0,0 +1,9 @@ +if(!dojo._hasResource["dijit.tests.widgetsInTemplate"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.tests.widgetsInTemplate"] = true; +dojo.provide("dijit.tests.widgetsInTemplate"); + +if(dojo.isBrowser){ + doh.registerUrl("dijit.tests.widgetsInTemplate", dojo.moduleUrl("dijit", "tests/widgetsInTemplate.html")); +} + +} -- cgit v1.2.3-54-g00ecf