aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/autocomplete/autocomplete_core.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2013-03-21 15:54:50 -0400
committerScott González <scott.gonzalez@gmail.com>2013-03-21 15:54:50 -0400
commitff11b69a67e0176c851ff3bdec997c7a75d47a42 (patch)
treed032954f2627d0e4f3e1d80a6383b5944d029df6 /tests/unit/autocomplete/autocomplete_core.js
parentf281ce9e6c99cc28dbbcf38b7d32bccd14b91b76 (diff)
downloadjquery-ui-ff11b69a67e0176c851ff3bdec997c7a75d47a42.tar.gz
jquery-ui-ff11b69a67e0176c851ff3bdec997c7a75d47a42.zip
Autocomplete: Insert the live region before the input. Fixes #9172 - Autocomplete: .replaceWith() fails to replace.
Diffstat (limited to 'tests/unit/autocomplete/autocomplete_core.js')
-rw-r--r--tests/unit/autocomplete/autocomplete_core.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/unit/autocomplete/autocomplete_core.js b/tests/unit/autocomplete/autocomplete_core.js
index a9fc1143c..6f1195910 100644
--- a/tests/unit/autocomplete/autocomplete_core.js
+++ b/tests/unit/autocomplete/autocomplete_core.js
@@ -188,4 +188,14 @@ test( "ARIA", function() {
"Live region for multiple values" );
});
+test( ".replaceWith() (#9172)", function() {
+ expect( 1 );
+
+ var element = $( "#autocomplete" ).autocomplete(),
+ replacement = "<div>test</div>",
+ parent = element.parent();
+ element.replaceWith( replacement );
+ equal( parent.html(), replacement );
+});
+
}( jQuery ) );