aboutsummaryrefslogtreecommitdiffstats
path: root/tests
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-04-17 11:55:51 -0400
commit2da014b11d264a49c7ad7075d1fdb66a7d3f009c (patch)
tree894590c4c8f3d8b3d25555c608dce547716165a5 /tests
parent25f6c509c199f6d682ac0402bb3f4bb424a0aa5b (diff)
downloadjquery-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.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 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 ) );