Chapter11/11.1/node_modules/accessibility-developer-tools/lib/closure-library/closure/goog/dom/dom_test.js
/**
 * Assert that the given goog.string.Const, when converted to a Node,
 * stringifies in one of the specified ways.
 *
 * @param{!goog.string.Const} constHtml
 * @param{!Array<string>} potentialStringifications
 */
Assert that the given goog.string.Const, when converted to a Node,
stringifies in one of the specified ways.


Assert that the given goog . string . Const when converted to a Node stringifies in one of the specified ways .
function assertConstHtmlToNodeStringifiesToOneOf(
    constHtml, potentialStringifications) {
  var node = goog.dom.constHtmlToNode(constHtml);
  var stringified = goog.dom.getOuterHtml(node);
  if (goog.array.find(potentialStringifications, function(element) {
        return element == stringified;
      }) === null) {
    fail(
        'Unexpected stringification for a node built from "' +
        goog.string.Const.unwrap(constHtml) + '": "' + stringified + '"');
  }
}
function assertConstHtmlToNodeStringifiesToOneOf ( constHtml , potentialStringifications ) { var node = goog . dom . constHtmlToNode ( constHtml ) ; var stringified = goog . dom . getOuterHtml ( node ) ; if ( goog . array . find ( potentialStringifications , function ( element ) { return element == stringified ; } ) === null ) { fail ( 'Unexpected stringification for a node built from "' + goog . string . Const . unwrap ( constHtml ) + '": "' + stringified + '"' ) ; } }
Assert that the given goog.string.Const, when converted to a Node,
 stringifies in one of the specified ways.
Assert that the given goog . string . Const when converted to a Node stringifies in one of the specified ways .