You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Firefox 15 stable release (and also in the Nightly 18 version) I get a fail message on deepEqual assertions trying to compare jQuery objects like deepEqual( $( '<h3/>' ), $( '<h3/>' ) );
The fail message is: Died on test #1 @http://jsbin.com/oqiquw/1/edit:16 : toString.call(...).match(...) is null The error source:.objectType@http://code.jquery.com/qunit/qunit-git.js:760`
That works on Chrome (canary), Safari and Opera (next).
It can be a Firefox specific error. If it isn't know yet I can try a code fix and patch it.
Generally I recommend not to compare jQuery objects directly, instead looking at their underlying DOM objects. If there's just one element select: $("h3")[0], otherwise you could use the .get() method to retrieve an array of DOM elements.
Will look into handling jQuery objects properly though.
Generally I recommend not to compare jQuery objects directly, instead
looking at their underlying DOM objects. If there's just one element
select: $("h3")[0], otherwise you could use the .get() method to retrieve
an array of DOM elements.
Will look into handling jQuery objects properly though.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/315#issuecomment-8525114.
Fixed the Firefox issue, where it died inside the objectType method. Still can't recommend comparing jQuery objects, as the diff output is pretty ugly when they're not equal.
In Firefox 15 stable release (and also in the Nightly 18 version) I get a fail message on deepEqual assertions trying to compare jQuery objects like
deepEqual( $( '<h3/>' ), $( '<h3/>' ) );
The fail message is:
Died on test #1 @http://jsbin.com/oqiquw/1/edit:16 : toString.call(...).match(...) is null The error source:
.objectType@http://code.jquery.com/qunit/qunit-git.js:760`That works on Chrome (canary), Safari and Opera (next).
It can be a Firefox specific error. If it isn't know yet I can try a code fix and patch it.
Example:
http://jsbin.com/oqiquw/1/edit
Updating:
The text was updated successfully, but these errors were encountered: