Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#10343 closed task (fixed)

Select: add tests

Reported by: bill Owned by: bill
Priority: high Milestone: 1.5
Component: Dijit - Form Version: 1.4.0b
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

Add tests for the dijit.form.Select widget including:

  • api (may already be tested in test_Select.html?)
    • get/set value
    • adding/removing elements
    • destroy removes menu too
  • selecting element via mouse
    • click, move, click
    • mouse down, mouse move, mouse up (simple menu only)
    • on a very large list that covers the Select itself, mouse down followed by mouse up shouldn't select anything, need to click (again)
    • click arrow then click blank part of screen to close the Select
  • a11y
    • selecting item via keyboard
    • ESC to close list
    • tab index (including skipping over disabled widgets)
  • display
    • width of drop down matches width of element, or the widest item in the list, whichever is greater
    • currently selected item is highlighted in drop down list
    • s8 max height throttled at 200px, and using arrow keys scrolls the list
    • drop down with 0 entries appears as empty box (with non-0 height)
  • required select will flag itself with yellow icon (or tooltip?) if skipped over

Change History (9)

comment:1 Changed 9 years ago by bill

Description: modified (diff)

comment:2 Changed 9 years ago by bill

Description: modified (diff)

comment:3 Changed 9 years ago by Adam Peller

Milestone: 1.51.6

comment:4 Changed 9 years ago by bill

Owner: set to bill

(In [22468]) Various cleanup of Select tests:

  • add comments
  • remove apparently unneeded loadDropDown() calls
  • use d.getTestCallback() to reduce code
  • put performance tests into separate test group (for clarity)

Refs #10343

comment:5 Changed 9 years ago by bill

(In [22470]) Select test updates:

  • only run tests when URL is like test_Select.html?mode=test
  • add destroy test

Refs #10343

comment:6 Changed 9 years ago by bill

Milestone: 1.61.5
Status: newassigned

comment:7 Changed 9 years ago by bill

Resolution: fixed
Status: assignedclosed

(In [22472]) Mouse and keyboard tests for dijit.form.Select, fixes #10343.

comment:8 Changed 8 years ago by bill

(In [23485]) On Chrome, the menu doesn't overlap the select (even when there's no room to display the menu either above or below the select) refs #10343

comment:9 Changed 8 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.