jQuery UI Dialog Test Suite

Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

  1. dialog module: init (0, 6, 6)
    1. .dialog() called on element
    2. .dialog() called on empty collection
    3. .dialog() called on disconnected DOMElement
    4. arbitrary method called after init
    5. arbitrary option getter after init
    6. arbitrary option setter after init
  2. dialog module: destroy (0, 6, 6)
    1. .dialog("destroy") called on element
    2. .dialog("destroy") called on empty collection
    3. .dialog("destroy") called on disconnected DOMElement
    4. arbitrary method called after destroy
    5. arbitrary option getter after destroy
    6. arbitrary option setter after destroy
  3. dialog module: defaults (0, 20, 20)
    1. autoOpen: true
    2. autoResize: true
    3. buttons: [object Object]
    4. closeOnEscape: true
    5. closeText: close
    6. disabled: false
    7. dialogClass: undefined
    8. draggable: true
    9. height: 200
    10. maxHeight: undefined
    11. maxWidth: undefined
    12. minHeight: 100
    13. minWidth: 150
    14. modal: false
    15. overlay: [object Object]
    16. position: center
    17. resizable: true
    18. stack: true
    19. title:
    20. width: 300
  4. dialog module: title id (0, 3, 3)
    1. auto-numbered title id: ui-dialog-title-1
    2. auto-numbered title id: ui-dialog-title-2
    3. carried over title id: ui-dialog-title-foo
  5. dialog module: ARIA (0, 4, 4)
    1. dialog role: dialog
    2. has aria-labelledby attribute
    3. proper aria-labelledby attribute: ui-dialog-title-3
    4. close link role: button
  6. dialog: Options module: autoOpen (0, 2, 2)
    1. .dialog({ autoOpen: false })
    2. .dialog({ autoOpen: true })
  7. dialog: Options module: autoResize (0, 2, 2)
    1. .dialog({ autoResize: false }): [object Object]
    2. .dialog({ autoResize: true }): [object Object]
  8. dialog: Options module: buttons (0, 17, 17)
    1. number of buttons: 2
    2. text of button 1: Ok
    3. text of button 2: Cancel
    4. buttons in container: ui-dialog-buttonpane
    5. button click fires callback
    6. context of callback: [object HTMLDivElement]
    7. event target: [object HTMLButtonElement]
    8. button click fires callback
    9. context of callback: [object HTMLDivElement]
    10. event target: [object HTMLButtonElement]
    11. .data("buttons.dialog") getter: [object Object]
    12. .data("buttons.dialog", ...) setter: [object Object]
    13. number of buttons after setter: 1
    14. button click fires callback
    15. context of callback: [object HTMLDivElement]
    16. event target: [object HTMLButtonElement]
    17. text of button 1: Close
  9. dialog: Options module: closeOnEscape (1, 0, 1)
    1. missing test
  10. dialog: Options module: closeText (0, 3, 3)
    1. default close text: close
    2. closeText on init: foo
    3. closeText via option method: bar
  11. dialog: Options module: dialogClass (0, 4, 4)
    1. dialogClass not specified. foo class added: false
    2. dialogClass in init. foo class added: true
    3. dialogClass in init, two classes. foo class added: true
    4. dialogClass in init, two classes. bar class added: true
  12. dialog: Options module: draggable (2, 2, 4)
    1. dragged[50, 50] : [object Object]
    2. dragged[50, 50] , expected: { "left": 540, "top": 310 } result: { "left": 532, "top": 289 }
    3. dragged[50, 50] , expected: { "left": 540, "top": 310 } result: { "left": 532, "top": 289 }
    4. dragged[50, 50] : [object Object]
  13. dialog: Options module: height (0, 3, 3)
    1. default height: 200
    2. explicit height: 437
    3. explicit height set after init: 438
  14. dialog: Options module: maxHeight (0, 3, 3)
    1. maxHeight: 400
    2. maxHeight: 400
    3. maxHeight: 600
  15. dialog: Options module: maxWidth (0, 3, 3)
    1. maxWidth: 400
    2. maxWidth: 400
    3. maxWidth: 600
  16. dialog: Options module: minHeight (0, 3, 3)
    1. minHeight: 10
    2. minHeight: 10
    3. minHeight: 30
  17. dialog: Options module: minWidth (0, 3, 3)
    1. minWidth: 10
    2. minWidth: 10
    3. minWidth: 30
  18. dialog: Options module: modal (1, 0, 1)
    1. missing test
  19. dialog: Options module: overlay (1, 0, 1)
    1. missing test
  20. dialog: Options module: position (1, 0, 1)
    1. missing test
  21. dialog: Options module: resizable (0, 4, 4)
    1. resized[50, 50] [default].: [object Object]
    2. resized[50, 50] disabled after init.: [object Object]
    3. resized[50, 50] disabled in init options.: [object Object]
    4. resized[50, 50] enabled after init.: [object Object]
  22. dialog: Options module: stack (1, 0, 1)
    1. missing test
  23. dialog: Options module: title (0, 5, 5)
    1. [default]:  
    2. title in element attribute: foo
    3. title in init options: foo
    4. title in init options should override title in element attribute: bar
    5. title after init: foo
  24. dialog: Options module: width (0, 3, 3)
    1. default width: 300
    2. explicit width: 437
    3. explicit width after init: 438
  25. dialog: Methods module: isOpen (0, 4, 4)
    1. dialog is open after init: true
    2. dialog is closed: false
    3. dialog is closed after init: false
    4. dialog is open: true
  26. dialog: Callbacks module: open (0, 6, 6)
    1. autoOpen: true fires open callback
    2. context of callback: [object HTMLDivElement]
    3. .dialog("open") fires open callback
    4. context of callback: [object HTMLDivElement]
    5. dialog("open") fires open event
    6. context of event: [object HTMLDivElement]
  27. dialog: Callbacks module: dragStart (0, 2, 2)
    1. dragging fires dragStart callback
    2. context of callback: [object HTMLDivElement]
  28. dialog: Callbacks module: drag (0, 4, 4)
    1. context of callback: [object HTMLDivElement]
    2. context of callback: [object HTMLDivElement]
    3. context of callback: [object HTMLDivElement]
    4. drag fired
  29. dialog: Callbacks module: dragStop (0, 2, 2)
    1. dragging fires dragStop callback
    2. context of callback: [object HTMLDivElement]
  30. dialog: Callbacks module: resizeStart (0, 2, 2)
    1. resizing fires resizeStart callback
    2. context of callback: [object HTMLDivElement]
  31. dialog: Callbacks module: resize (0, 4, 4)
    1. context of callback: [object HTMLDivElement]
    2. context of callback: [object HTMLDivElement]
    3. context of callback: [object HTMLDivElement]
    4. resize fired
  32. dialog: Callbacks module: resizeStop (0, 2, 2)
    1. resizing fires resizeStop callback
    2. context of callback: [object HTMLDivElement]
  33. dialog: Callbacks module: close (0, 4, 4)
    1. .dialog("close") fires close callback
    2. context of callback: [object HTMLDivElement]
    3. .dialog("close") firse dialogclose event
    4. context of event: [object HTMLDivElement]
  34. dialog: Callbacks module: beforeclose (0, 6, 6)
    1. .dialog("close") fires beforeclose callback
    2. context of callback: [object HTMLDivElement]
    3. beforeclose callback should prevent dialog from closing
    4. .dialog("close") triggers dialogbeforeclose event
    5. context of event: [object HTMLDivElement]
    6. dialogbeforeclose event should prevent dialog from closing
Dialog Content

Tests completed in 1131 milliseconds.
7 tests of 139 failed.