Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11319: test_for_offset_parent_on_new_body_elements.2.diff

File test_for_offset_parent_on_new_body_elements.2.diff, 0.6 kB (added by rubyruy, 2 years ago)
  • test/unit/dom.html

    old new  
    17261726        window.resizeTo(850, 650); 
    17271727      }.bind(this)); 
    17281728    }}, 
    1729      
     1729    testOffsetParentForNewElementsOnBody: function() {with(this){ 
     1730      var newElement = new Element("div"); 
     1731      $(document.body).insert(newElement); 
     1732      assertEqual(document.body, newElement.getOffsetParent()) 
     1733    }}, 
    17301734    testNodeConstants: function() {with(this) { 
    17311735      assert(window.Node, 'window.Node is unavailable'); 
    17321736