function testHasElements() {
    var elementNames = [
      'viewer-pdf-toolbar',
      'viewer-zoom-toolbar',
      'viewer-password-screen',
      'viewer-error-screen'
    ];
    for (var i = 0; i < elementNames.length; i++) {
      var elements = document.querySelectorAll(elementNames[i]);
      chrome.test.assertEq(1, elements.length);
      var element = elements[0];
      chrome.test.assertTrue(
          String(element.constructor).indexOf(elementNames[i]) != -1);
    }
    chrome.test.succeed();
  }
/**
   * Test that some key elements exist and that they have the appropriate
   * constructor name. This verifies that polymer is working correctly.
   */
Test that some key elements exist and that they have the appropriate
constructor name. This verifies that polymer is working correctly.
Test that some key elements exist and that they have the appropriate constructor name . This verifies that polymer is working correctly .
function testHasElements() {
    var elementNames = [
      'viewer-pdf-toolbar',
      'viewer-zoom-toolbar',
      'viewer-password-screen',
      'viewer-error-screen'
    ];
    for (var i = 0; i < elementNames.length; i++) {
      var elements = document.querySelectorAll(elementNames[i]);
      chrome.test.assertEq(1, elements.length);
      var element = elements[0];
      chrome.test.assertTrue(
          String(element.constructor).indexOf(elementNames[i]) != -1);
    }
    chrome.test.succeed();
  }
function testHasElements ( ) { var elementNames = [ 'viewer-pdf-toolbar' , 'viewer-zoom-toolbar' , 'viewer-password-screen' , 'viewer-error-screen' ] ; for ( var i = 0 ; i < elementNames . length ; i ++ ) { var elements = document . querySelectorAll ( elementNames [ i ] ) ; chrome . test . assertEq ( 1 , elements . length ) ; var element = elements [ 0 ] ; chrome . test . assertTrue ( String ( element . constructor ) . indexOf ( elementNames [ i ] ) != - 1 ) ; } chrome . test . succeed ( ) ; }
Test that some key elements exist and that they have the appropriate
 constructor name.
Test that some key elements exist and that they have the appropriate constructor name .