From 1c5685d68f1b73270fb814fe04cbb490eb90ba5f Mon Sep 17 00:00:00 2001 From: mensonge Date: Fri, 14 Nov 2008 15:39:19 +0000 Subject: Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library) git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f --- 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 4585 -> 0 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 --------------------- 17 files changed, 2839 deletions(-) delete mode 100644 includes/js/dijit/tests/form/Form.html delete mode 100644 includes/js/dijit/tests/form/Form.js delete mode 100644 includes/js/dijit/tests/form/images/Alabama.jpg delete mode 100644 includes/js/dijit/tests/form/test_Button.html delete mode 100644 includes/js/dijit/tests/form/test_CheckBox.html delete mode 100644 includes/js/dijit/tests/form/test_ComboBox.html delete mode 100644 includes/js/dijit/tests/form/test_ComboBox_destroy.html delete mode 100644 includes/js/dijit/tests/form/test_DateTextBox.html delete mode 100644 includes/js/dijit/tests/form/test_FilteringSelect.html delete mode 100644 includes/js/dijit/tests/form/test_Form_onsubmit.html delete mode 100644 includes/js/dijit/tests/form/test_MultiSelect.html delete mode 100644 includes/js/dijit/tests/form/test_SimpleTextarea.html delete mode 100644 includes/js/dijit/tests/form/test_Slider.html delete mode 100644 includes/js/dijit/tests/form/test_Spinner.html delete mode 100644 includes/js/dijit/tests/form/test_Textarea.html delete mode 100644 includes/js/dijit/tests/form/test_TimeTextBox.html delete mode 100644 includes/js/dijit/tests/form/test_validate.html (limited to 'includes/js/dijit/tests/form') diff --git a/includes/js/dijit/tests/form/Form.html b/includes/js/dijit/tests/form/Form.html deleted file mode 100644 index 312399a..0000000 --- a/includes/js/dijit/tests/form/Form.html +++ /dev/null @@ -1,354 +0,0 @@ - - - - - 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 deleted file mode 100644 index f0f6d8d..0000000 --- a/includes/js/dijit/tests/form/Form.js +++ /dev/null @@ -1,9 +0,0 @@ -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 deleted file mode 100644 index f2018e6..0000000 Binary files a/includes/js/dijit/tests/form/images/Alabama.jpg and /dev/null differ diff --git a/includes/js/dijit/tests/form/test_Button.html b/includes/js/dijit/tests/form/test_Button.html deleted file mode 100644 index 7c04f50..0000000 --- a/includes/js/dijit/tests/form/test_Button.html +++ /dev/null @@ -1,286 +0,0 @@ - - - - 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 deleted file mode 100644 index 4358270..0000000 --- a/includes/js/dijit/tests/form/test_CheckBox.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - 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 deleted file mode 100644 index 895a968..0000000 --- a/includes/js/dijit/tests/form/test_ComboBox.html +++ /dev/null @@ -1,289 +0,0 @@ - - - - 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 deleted file mode 100644 index 0713b19..0000000 --- a/includes/js/dijit/tests/form/test_ComboBox_destroy.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - 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 deleted file mode 100644 index d36ac73..0000000 --- a/includes/js/dijit/tests/form/test_DateTextBox.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - 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 deleted file mode 100644 index d40af13..0000000 --- a/includes/js/dijit/tests/form/test_FilteringSelect.html +++ /dev/null @@ -1,296 +0,0 @@ - - - - Dojo FilteringSelect Widget Test - - - - - - - - - - -

Dojo FilteringSelect Widget Test

-
-
-

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

-

Similar features:

- -

- - -

Enhancements over plain HTML version:

- -

- -
- -
-

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 deleted file mode 100644 index d8b43fa..0000000 --- a/includes/js/dijit/tests/form/test_Form_onsubmit.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - - 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 deleted file mode 100644 index 9f03d80..0000000 --- a/includes/js/dijit/tests/form/test_MultiSelect.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - 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 deleted file mode 100644 index 9462447..0000000 --- a/includes/js/dijit/tests/form/test_SimpleTextarea.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - 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 deleted file mode 100644 index f1d0442..0000000 --- a/includes/js/dijit/tests/form/test_Slider.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - 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 deleted file mode 100644 index e9af53c..0000000 --- a/includes/js/dijit/tests/form/test_Spinner.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - 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 deleted file mode 100644 index c885aa6..0000000 --- a/includes/js/dijit/tests/form/test_Textarea.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - 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 deleted file mode 100644 index f68a28d..0000000 --- a/includes/js/dijit/tests/form/test_TimeTextBox.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - 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 deleted file mode 100644 index f6d1cde..0000000 --- a/includes/js/dijit/tests/form/test_validate.html +++ /dev/null @@ -1,428 +0,0 @@ - - - - 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. -

        - - - - -- cgit v1.2.3