jQuery Test Suite (minified)

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

Running...
 

  1. core: Basic requirements (0, 7, 7)Rerun
    1. Array.push()
    2. Function.apply()
    3. getElementById
    4. getElementsByTagName
    5. RegExp
    6. jQuery
    7. $
  2. core: jQuery() (0, 29, 29)Rerun
    1. jQuery() === jQuery([])
      Expected:
      0
    2. jQuery(undefined) === jQuery([])
      Expected:
      0
    3. jQuery(null) === jQuery([])
      Expected:
      0
    4. jQuery('') === jQuery([])
      Expected:
      0
    5. jQuery('#') === jQuery([])
      Expected:
      0
    6. jQuery(jQueryObj) == jQueryObj
      Expected:
      "div"
    7. Correct number of elements generated for jQuery(window)
      Expected:
      1
    8. Basic selector with jQuery object as context
      Expected:
      [
        <p id="sndp"></p>,
        <p id="en"></p>,
        <p id="sap"></p>
      ]
    9. Correct number of elements generated for code
      Expected:
      1
    10. Make sure that the generated HTML has no parent.
      Expected:
      0
    11. Correct number of elements generated for img
      Expected:
      1
    12. Make sure that the generated HTML has no parent.
      Expected:
      0
    13. Correct number of elements generated for div hr code b
      Expected:
      4
    14. Make sure that the generated HTML has no parent.
      Expected:
      0
    15. Test passing an array to the factory
      Expected:
      2
    16. Test passing an html node to the factory
      Expected:
      <body id="body"></body>
    17. jQuery() quick setter width
      Expected:
      "10px"
    18. jQuery quick setter css
      Expected:
      "1px"
    19. jQuery quick setter css
      Expected:
      "1px"
    20. jQuery quick setter text
      Expected:
      1
    21. jQuery quick setter text
      Expected:
      "test"
    22. jQuery() quick setter class
      Expected:
      "test2"
    23. jQuery() quick setter id
      Expected:
      "test3"
    24. Click executed.
    25. Ensure cached nodes are cloned properly (Bug #6655)
      Expected:
      "TEST"
    26. Make sure whitespace is trimmed.
      Expected:
      1
    27. Make sure whitespace and other characters are trimmed.
      Expected:
      1
    28. Make sure whitespace is trimmed on long strings.
      Expected:
      1
    29. Make sure whitespace and other characters are trimmed on long strings.
      Expected:
      1
  3. core: selector state (0, 31, 31)Rerun
    1. Empty jQuery Selector
      Expected:
      ""
    2. Empty jQuery Context
      Expected:
      undefined
    3. Document Selector
      Expected:
      ""
    4. Document Context
      Expected:
      [Document]
    5. Body Selector
      Expected:
      ""
    6. Body Context
      Expected:
      <body id="body"></body>
    7. #qunit-fixture Selector
      Expected:
      "#qunit-fixture"
    8. #qunit-fixture Context
      Expected:
      [Document]
    9. #notfoundnono Selector
      Expected:
      "#notfoundnono"
    10. #notfoundnono Context
      Expected:
      [Document]
    11. #qunit-fixture Selector
      Expected:
      "#qunit-fixture"
    12. #qunit-fixture Context
      Expected:
      [Document]
    13. #qunit-fixture Selector
      Expected:
      "#qunit-fixture"
    14. #qunit-fixture Context
      Expected:
      <body id="body"></body>
    15. #qunit-fixture Selector
      Expected:
      "#qunit-fixture"
    16. #qunit-fixture Context
      Expected:
      <body id="body"></body>
    17. #qunit-fixture find Selector
      Expected:
      "#qunit-fixture"
    18. #qunit-fixture find Context
      Expected:
      <body id="body"></body>
    19. #qunit-fixture filter Selector
      Expected:
      "#qunit-fixture.filter(div)"
    20. #qunit-fixture filter Context
      Expected:
      [Document]
    21. #qunit-fixture not Selector
      Expected:
      "#qunit-fixture.not(div)"
    22. #qunit-fixture not Context
      Expected:
      [Document]
    23. #qunit-fixture filter, not Selector
      Expected:
      "#qunit-fixture.filter(div).not(div)"
    24. #qunit-fixture filter, not Context
      Expected:
      [Document]
    25. #qunit-fixture filter, not, end Selector
      Expected:
      "#qunit-fixture.filter(div)"
    26. #qunit-fixture filter, not, end Context
      Expected:
      [Document]
    27. #qunit-fixture parent Selector
      Expected:
      "#qunit-fixture.parent(body)"
    28. #qunit-fixture parent Context
      Expected:
      [Document]
    29. #qunit-fixture eq Selector
      Expected:
      "#qunit-fixture.slice(0,1)"
    30. #qunit-fixture eq Context
      Expected:
      [Document]
    31. manipulation methods make same selector for jQuery objects
      Expected:
      ".appendTo()"
  4. core: globalEval (0, 3, 3)Rerun
    1. Test variable declarations are global
    2. Test variable assignments are global
    3. Test context (this) is the window object
  5. core: noConflict (0, 7, 7)Rerun
    1. noConflict returned the jQuery object
      Expected:
      function e( a, b ){
        [code]
      }
    2. Make sure jQuery wasn't touched.
      Expected:
      function e( a, b ){
        [code]
      }
    3. Make sure $ was reverted.
      Expected:
      "$"
    4. noConflict returned the jQuery object
      Expected:
      function e( a, b ){
        [code]
      }
    5. Make sure jQuery was reverted.
      Expected:
      "jQuery"
    6. Make sure $ was reverted.
      Expected:
      "$"
    7. Make sure that jQuery still works.
  6. core: trim (0, 9, 9)Rerun
    1. trailing space
      Expected:
      "hello"
    2. leading space
      Expected:
      "hello"
    3. space on both sides
      Expected:
      "hello"
    4. &nbsp;
      Expected:
      "hello"
    5. Nothing in.
      Expected:
      ""
    6. Undefined
      Expected:
      ""
    7. Null
      Expected:
      ""
    8. Number
      Expected:
      "5"
    9. Boolean
      Expected:
      "false"
  7. core: type (0, 23, 23)Rerun
    1. null
      Expected:
      "null"
    2. undefined
      Expected:
      "undefined"
    3. Boolean
      Expected:
      "boolean"
    4. Boolean
      Expected:
      "boolean"
    5. Boolean
      Expected:
      "boolean"
    6. Number
      Expected:
      "number"
    7. Number
      Expected:
      "number"
    8. Number
      Expected:
      "number"
    9. String
      Expected:
      "string"
    10. String
      Expected:
      "string"
    11. String
      Expected:
      "string"
    12. Object
      Expected:
      "object"
    13. RegExp
      Expected:
      "regexp"
    14. RegExp
      Expected:
      "regexp"
    15. Array
      Expected:
      "array"
    16. Date
      Expected:
      "date"
    17. Function
      Expected:
      "function"
    18. Function
      Expected:
      "function"
    19. Window
      Expected:
      "object"
    20. Document
      Expected:
      "object"
    21. Element
      Expected:
      "object"
    22. TextNode
      Expected:
      "object"
    23. NodeList
      Expected:
      "object"
  8. core: isPlainObject (0, 15, 15)Rerun
    1. {}
    2. string
    3. number
    4. boolean
    5. null
    6. undefined
    7. array
    8. new Date
    9. fn
    10. new fn (no methods)
    11. new fn
    12. DOM Element
    13. window
    14. Does not throw exceptions on host objects
    15. new otherObject
  9. core: isFunction (0, 19, 19)Rerun
    1. No Value
    2. null Value
    3. undefined Value
    4. Empty String Value
    5. 0 Value
    6. String Function(function String() { [native code] })
    7. Array Function(function Array() { [native code] })
    8. Object Function(function Object() { [native code] })
    9. Function Function(function Function() { [native code] })
    10. Function String
    11. Function Array
    12. Function Object
    13. Normal Function
    14. Object Element
    15. childNodes Property
    16. A normal DOM Element
    17. Anchor Element
    18. Recursive Function Call
    19. Recursive Function Call
  10. core: isNumeric (0, 37, 37)Rerun
    1. Negative integer string
    2. Zero string
    3. Positive integer string
    4. Negative integer number
    5. Zero integer number
    6. Positive integer number
    7. Octal integer literal string
    8. Octal integer literal
    9. Hexadecimal integer literal string
    10. Hexadecimal integer literal
    11. Negative floating point string
    12. Positive floating point string
    13. Negative floating point number
    14. Positive floating point number
    15. Exponential notation
    16. Exponential notation string
    17. Custom .toString returning number
    18. Empty string
      Expected:
      false
    19. Whitespace characters string
      Expected:
      false
    20. Tab characters string
      Expected:
      false
    21. Alphanumeric character string
      Expected:
      false
    22. Non-numeric character string
      Expected:
      false
    23. Boolean true literal
      Expected:
      false
    24. Boolean false literal
      Expected:
      false
    25. Number with preceding non-numeric characters
      Expected:
      false
    26. Number with trailling non-numeric characters
      Expected:
      false
    27. Undefined value
      Expected:
      false
    28. Null value
      Expected:
      false
    29. NaN value
      Expected:
      false
    30. Infinity primitive
      Expected:
      false
    31. Positive Infinity
      Expected:
      false
    32. Negative Infinity
      Expected:
      false
    33. Custom .toString returning non-number
      Expected:
      false
    34. Empty object
      Expected:
      false
    35. Instance of a function
      Expected:
      false
    36. Instance of a Date
      Expected:
      false
    37. Instance of a function
      Expected:
      false
  11. core: isXMLDoc - HTML (0, 4, 4)Rerun
    1. HTML document
    2. HTML documentElement
    3. HTML Body Element
    4. Iframe body element
  12. core: XSS via location.hash (0, 1, 1)Rerun
    1. script called from #id-like selector with inline handler
  13. Running core: isXMLDoc - XML
  14. Running core: isWindow
  15. Running core: jQuery('html')
  16. Running core: jQuery('html', context)
  17. Running core: jQuery(selector, xml).text(str) - Loaded via XML document
  18. Running core: end()
  19. Running core: length
  20. Running core: size()
  21. Running core: get()
  22. Running core: toArray()
  23. Running core: inArray()
  24. Running core: get(Number)
  25. Running core: get(-Number)
  26. Running core: each(Function)
  27. Running core: slice()
  28. Running core: first()/last()
  29. Running core: map()
  30. Running core: jQuery.merge()
  31. Running core: jQuery.extend(Object, Object)
  32. Running core: jQuery.each(Object,Function)
  33. Running core: jQuery.makeArray
  34. Running core: jQuery.inArray
  35. Running core: jQuery.isEmptyObject
  36. Running core: jQuery.proxy
  37. Running core: jQuery.parseJSON
  38. Running core: jQuery.parseXML
  39. Running core: jQuery.sub() - Static Methods
  40. Running core: jQuery.sub() - .fn Methods
  41. Running core: jQuery.camelCase()
  42. Running traversing: find(String)
  43. Running traversing: find(node|jQuery object)
  44. Running traversing: is(String|undefined)
  45. Running traversing: is(jQuery)
  46. Running traversing: is() with positional selectors
  47. Running traversing: index()
  48. Running traversing: index(Object|String|undefined)
  49. Running traversing: filter(Selector|undefined)
  50. Running traversing: filter(Function)
  51. Running traversing: filter(Element)
  52. Running traversing: filter(Array)
  53. Running traversing: filter(jQuery)
  54. Running traversing: filter() with positional selectors
  55. Running traversing: closest()
  56. Running traversing: closest(Array)
  57. Running traversing: closest(jQuery)
  58. Running traversing: not(Selector|undefined)
  59. Running traversing: not(Element)
  60. Running traversing: not(Function)
  61. Running traversing: not(Array)
  62. Running traversing: not(jQuery)
  63. Running traversing: has(Element)
  64. Running traversing: has(Selector)
  65. Running traversing: has(Arrayish)
  66. Running traversing: andSelf()
  67. Running traversing: siblings([String])
  68. Running traversing: children([String])
  69. Running traversing: parent([String])
  70. Running traversing: parents([String])
  71. Running traversing: parentsUntil([String])
  72. Running traversing: next([String])
  73. Running traversing: prev([String])
  74. Running traversing: nextAll([String])
  75. Running traversing: prevAll([String])
  76. Running traversing: nextUntil([String])
  77. Running traversing: prevUntil([String])
  78. Running traversing: contents()
  79. Running traversing: add(String|Element|Array|undefined)
  80. Running traversing: add(String, Context)
  81. Running traversing: eq('-1') #10616
  82. Running manipulation: text()
  83. Running manipulation: text(String)
  84. Running manipulation: text(Function)
  85. Running manipulation: text(Function) with incoming value
  86. Running manipulation: wrap(String|Element)
  87. Running manipulation: wrap(Function)
  88. Running manipulation: wrap(Function) with index (#10177)
  89. Running manipulation: wrap(String) consecutive elements (#10177)
  90. Running manipulation: wrapAll(String|Element)
  91. Running manipulation: wrapInner(String|Element)
  92. Running manipulation: wrapInner(Function)
  93. Running manipulation: unwrap()
  94. Running manipulation: append(String|Element|Array<Element>|jQuery)
  95. Running manipulation: append(Function)
  96. Running manipulation: append(Function) with incoming value
  97. Running manipulation: append the same fragment with events (Bug #6997, 5566)
  98. Running manipulation: append HTML5 sectioning elements (Bug #6485)
  99. Running manipulation: HTML5 Elements inherit styles from style rules (Bug #10501)
  100. Running manipulation: html5 clone() cannot use the fragment cache in IE (#6485)
  101. Running manipulation: html(String) with HTML5 (Bug #6485)
  102. Running manipulation: append(xml)
  103. Running manipulation: appendTo(String|Element|Array<Element>|jQuery)
  104. Running manipulation: prepend(String|Element|Array<Element>|jQuery)
  105. Running manipulation: prepend(Function)
  106. Running manipulation: prepend(Function) with incoming value
  107. Running manipulation: prependTo(String|Element|Array<Element>|jQuery)
  108. Running manipulation: before(String|Element|Array<Element>|jQuery)
  109. Running manipulation: before(Function)
  110. Running manipulation: before and after w/ empty object (#10812)
  111. Running manipulation: insertBefore(String|Element|Array<Element>|jQuery)
  112. Running manipulation: after(String|Element|Array<Element>|jQuery)
  113. Running manipulation: after(Function)
  114. Running manipulation: insertAfter(String|Element|Array<Element>|jQuery)
  115. Running manipulation: replaceWith(String|Element|Array<Element>|jQuery)
  116. Running manipulation: replaceWith(Function)
  117. Running manipulation: replaceWith(string) for more than one element
  118. Running manipulation: replaceAll(String|Element|Array<Element>|jQuery)
  119. Running manipulation: jQuery.clone() (#8017)
  120. Running manipulation: clone() (#8070)
  121. Running manipulation: clone()
  122. Running manipulation: clone(form element) (Bug #3879, #6655)
  123. Running manipulation: clone(multiple selected options) (Bug #8129)
  124. Running manipulation: clone() on XML nodes
  125. Running manipulation: html(String)
  126. Running manipulation: html(Function)
  127. Running manipulation: html(Function) with incoming value
  128. Running manipulation: remove()
  129. Running manipulation: detach()
  130. Running manipulation: empty()
  131. Running manipulation: jQuery.cleanData
  132. Running manipulation: jQuery.buildFragment - no plain-text caching (Bug #6779)
  133. Running manipulation: jQuery.html - execute scripts escaped with html comment or CDATA (#9221)
  134. Running manipulation: jQuery.buildFragment - plain objects are not a document #8950
  135. Running manipulation: jQuery.clone - no exceptions for object elements #9587
  136. Running manipulation: jQuery() & wrap[Inner/All]() handle unknown elems (#10667)
  137. Running manipulation: Cloned, detached HTML5 elems (#10667,10670)
  138. Running manipulation: jQuery.fragments cache expectations

See this blog entry for more information.

Here are some links in a normal paragraph: Google, Google Groups (Link). This link has class="blog": diveintomark

Everything inside the red border is inside a div with id="foo".

This is a normal link: Yahoo

This link has class="blog": Simon Willison's Weblog

Try them out:

    test element
    Float test.
    hi there
    1. Rice
    2. Beans
    3. Blinis
    4. Tofu
    I'm hungry. I should...
    ...Eat lots of food... | ...Eat a little food... | ...Eat no food... ...Eat a burger... ...Eat some funyuns... ...Eat some funyuns...
    1 2
    fadeIn
    fadeIn
    fadeOut
    fadeOut
    show
    show
    hide
    hide
    togglein
    togglein
    toggleout
    toggleout
    slideUp
    slideUp
    slideDown
    slideDown
    slideToggleIn
    slideToggleIn
    slideToggleOut
    slideToggleOut
    fadeToggleIn
    fadeToggleIn
    fadeToggleOut
    fadeToggleOut
    fadeTo
    fadeTo