Skip to content

Commit

Permalink
Had some stale code in test/unit/attributes.js
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed Apr 10, 2011
1 parent 3a1b466 commit da89d87
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/unit/attributes.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@ test("attr(String)", function() {


body.removeAttribute('foo'); // Cleanup body.removeAttribute('foo'); // Cleanup


var select = document.createElement("select"), optgroup = document.createElement("optgroup"), option = document.createElement("option");
optgroup.appendChild( option );
select.appendChild( optgroup );

var $img = jQuery('<img style="display:none" width="215" height="53" src="http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif"/>').appendTo('body'); var $img = jQuery('<img style="display:none" width="215" height="53" src="http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif"/>').appendTo('body');
equals( $img.attr('width'), "215", "Retrieve width attribute an an element with display:none." ); equals( $img.attr('width'), "215", "Retrieve width attribute an an element with display:none." );
equals( $img.attr('height'), "53", "Retrieve height attribute an an element with display:none." ); equals( $img.attr('height'), "53", "Retrieve height attribute an an element with display:none." );
Expand Down

0 comments on commit da89d87

Please sign in to comment.