B2G/gecko/browser/devtools/markupview/test/browser_inspector_markup_mutation.js
// Verify that the markup in the tool is the same as the markup in the document.
Verify that the markup in the tool is the same as the markup in the document.
Verify that the markup in the tool is the same as the markup in the document .
function checkMarkup()
  {
    markup.expandAll();
    let contentNode = doc.querySelector("body");
    let panelNode = markup._containers.get(contentNode).elt;
    let parseNode = parseDoc.querySelector("body");
    let sel = panelNode.ownerDocument.defaultView.getSelection();
    sel.selectAllChildren(panelNode);
    parseNode.outerHTML = sel;
    parseNode = parseDoc.querySelector("body");
    stripWhitespace(parseNode);
    ok(contentNode.isEqualNode(parseNode), "Markup panel should match document.");
  }
function checkMarkup ( ) { markup . expandAll ( ) ; let contentNode = doc . querySelector ( "body" ) ; let panelNode = markup . _containers . get ( contentNode ) . elt ; let parseNode = parseDoc . querySelector ( "body" ) ; let sel = panelNode . ownerDocument . defaultView . getSelection ( ) ; sel . selectAllChildren ( panelNode ) ; parseNode . outerHTML = sel ; parseNode = parseDoc . querySelector ( "body" ) ; stripWhitespace ( parseNode ) ; ok ( contentNode . isEqualNode ( parseNode ) , "Markup panel should match document." ) ; }
Verify that the markup in the tool is the same as the markup in the document.
Verify that the markup in the tool is the same as the markup in the document .
// Grab the text from the markup panel... // Parse it // Pull whitespace out of text and comment nodes, there will // be minor unimportant differences.