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

Ticket #11474: testSelectorNotInsertedNodes.diff

File testSelectorNotInsertedNodes.diff, 0.7 kB (added by jdalton, 5 months ago)

made by Kangax

  • selector.html

    old new  
    412412      assert(typeof results[0].show == 'function'); 
    413413      assert(typeof results[1].show == 'function'); 
    414414      assert(typeof results[2].show == 'function'); 
     415    }}, 
     416     
     417    testSelectorNotInsertedNodes: function() {with(this) { 
     418      var oParent = new Element("div"); 
     419      oParent.update("<table><tr><td id='myTD'></td></tr></table>"); 
     420      assertNotNullOrUndefined(oParent.select('[id=myTD]')[0]); 
     421      assertNotNullOrUndefined(oParent.select('TD')[0]); 
     422      assertNotNullOrUndefined(oParent.select('#myTD')[0]); 
    415423    }} 
    416424  }, 'testlog'); 
    417425// ]]>