function testQuerySelector() {
    var cancelButton = rootNode.children[3];
    function assertCorrectResult(queryResult) {
      assertEq(queryResult, cancelButton);
      chrome.test.succeed();
    }
    rootNode.domQuerySelector('body > button:nth-of-type(2)',
                              assertCorrectResult);
  }
// Basic query from root node.
Basic query from root node.
Basic query from root node .
function testQuerySelector() {
    var cancelButton = rootNode.children[3];
    function assertCorrectResult(queryResult) {
      assertEq(queryResult, cancelButton);
      chrome.test.succeed();
    }
    rootNode.domQuerySelector('body > button:nth-of-type(2)',
                              assertCorrectResult);
  }
function testQuerySelector ( ) { var cancelButton = rootNode . children [ 3 ] ; function assertCorrectResult ( queryResult ) { assertEq ( queryResult , cancelButton ) ; chrome . test . succeed ( ) ; } rootNode . domQuerySelector ( 'body > button:nth-of-type(2)' , assertCorrectResult ) ; }
Basic query from root node.
Basic query from root node .