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-04-17 11:55:51 -0400 |
commit | 2da014b11d264a49c7ad7075d1fdb66a7d3f009c (patch) | |
tree | 894590c4c8f3d8b3d25555c608dce547716165a5 /tests | |
parent | 25f6c509c199f6d682ac0402bb3f4bb424a0aa5b (diff) | |
download | jquery-ui-2da014b11d264a49c7ad7075d1fdb66a7d3f009c.tar.gz jquery-ui-2da014b11d264a49c7ad7075d1fdb66a7d3f009c.zip |
Autocomplete: Insert the live region before the input. Fixes #9172 - Autocomplete: .replaceWith() fails to replace.
(cherry picked from commit ff11b69a67e0176c851ff3bdec997c7a75d47a42)
Diffstat (limited to 'tests')
-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 845a3b19d..8a01bee8d 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 ) ); |