Make sure that jQuery works even when the individual modules are loaded separately AND jQuery.noConflict(true) is used. Fixes #7011.
This commit is contained in:
parent
116f3b7c72
commit
bca5765502
13 changed files with 51 additions and 2 deletions
|
@ -183,7 +183,7 @@ test("browser", function() {
|
|||
}
|
||||
|
||||
test("noConflict", function() {
|
||||
expect(6);
|
||||
expect(7);
|
||||
|
||||
var $$ = jQuery;
|
||||
|
||||
|
@ -196,6 +196,7 @@ test("noConflict", function() {
|
|||
equals( jQuery.noConflict(true), $$, "noConflict returned the jQuery object" );
|
||||
equals( jQuery, originaljQuery, "Make sure jQuery was reverted." );
|
||||
equals( $, original$, "Make sure $ was reverted." );
|
||||
ok( $$("#main").html("test"), "Make sure that jQuery still works." );
|
||||
|
||||
jQuery = $$;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue