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
b920f0aeb4
commit
a44ec40277
13 changed files with 52 additions and 3 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