+testoffset("bug_8316", function( jQuery ){
+ expect(2);
+
+ var tests = [
+ { id:'#elem', top: 100, left: 100 }
+ ];
+
+ jQuery.each(tests, function(){
+ var el = jQuery(this.id);
+ el.offset({ top: this.top, left: this.left});
+ equals(Math.round(el.offset().top), this.top);
+ equals(Math.round(el.offset().left), this.left);
+ });
+});
+