diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-03-21 15:54:50 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-03-21 15:54:50 -0400 |
commit | ff11b69a67e0176c851ff3bdec997c7a75d47a42 (patch) | |
tree | d032954f2627d0e4f3e1d80a6383b5944d029df6 /tests/unit/autocomplete/autocomplete_core.js | |
parent | f281ce9e6c99cc28dbbcf38b7d32bccd14b91b76 (diff) | |
download | jquery-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.js | 10 |
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 ) ); |