aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/autocomplete/autocomplete_core.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/autocomplete/autocomplete_core.js b/tests/unit/autocomplete/autocomplete_core.js
index a8b0a7330..58e96755a 100644
--- a/tests/unit/autocomplete/autocomplete_core.js
+++ b/tests/unit/autocomplete/autocomplete_core.js
@@ -257,6 +257,15 @@ test( "ARIA", function() {
"Live region for multiple values" );
});
+test( "ARIA, init on detached input", function() {
+ expect( 1 );
+ var element = $( "<input>" ).autocomplete({
+ source: [ "java", "javascript" ]
+ }),
+ liveRegion = element.autocomplete( "instance" ).liveRegion;
+ equal( liveRegion.parent().length, 1, "liveRegion must have a parent" );
+});
+
test( ".replaceWith() (#9172)", function() {
expect( 1 );