function createSuite(env, suite) {
    return function (tagName, id, className) {
      return createElement({
        tagName:   tagName,
        id:        id,
        className: className,
        children:  [{
          tagName:   'div',
          className: 'toolbar',
          children:  [{
            tagName:     'span',
            className:   'description',
            innerHTML: suite.name
          }, {
            tagName:     'a',
            className:   'run',
            href:        '#',
            innerHTML: i18n.suite.run,
            // Clicking this link runs the suite.
            onclick: function (evt) {
              suite.run({ async: true });
              return false;
            }
          }, {
            tagName:     'a',
            className:   'abort',
            href:        '#',
            innerHTML: i18n.suite.abort,
            // Clicking this other link aborts the suite.
            onclick: function (evt) {
              suite.abort();
              return false;
            }
          }]
        }]
      });
    };
  }
// Creates the table element for a suite.
Creates the table element for a suite.
Creates the table element for a suite .
function createSuite(env, suite) {
    return function (tagName, id, className) {
      return createElement({
        tagName:   tagName,
        id:        id,
        className: className,
        children:  [{
          tagName:   'div',
          className: 'toolbar',
          children:  [{
            tagName:     'span',
            className:   'description',
            innerHTML: suite.name
          }, {
            tagName:     'a',
            className:   'run',
            href:        '#',
            innerHTML: i18n.suite.run,
            onclick: function (evt) {
              suite.run({ async: true });
              return false;
            }
          }, {
            tagName:     'a',
            className:   'abort',
            href:        '#',
            innerHTML: i18n.suite.abort,
            onclick: function (evt) {
              suite.abort();
              return false;
            }
          }]
        }]
      });
    };
  }
function createSuite ( env , suite ) { return function ( tagName , id , className ) { return createElement ( { tagName : tagName , id : id , className : className , children : [ { tagName : 'div' , className : 'toolbar' , children : [ { tagName : 'span' , className : 'description' , innerHTML : suite . name } , { tagName : 'a' , className : 'run' , href : '#' , innerHTML : i18n . suite . run , onclick : function ( evt ) { suite . run ( { async : true } ) ; return false ; } } , { tagName : 'a' , className : 'abort' , href : '#' , innerHTML : i18n . suite . abort , onclick : function ( evt ) { suite . abort ( ) ; return false ; } } ] } ] } ) ; } ; }
Creates the table element for a suite.
Creates the table element for a suite .
// Clicking this link runs the suite. // Clicking this other link aborts the suite.