Lines Matching refs:lines
29 function assertLocation(loc, expected, html, lines) { argument
39 actual = getSubstringByLineCol(lines, loc);
46 function assertStartTagLocation(location, serializedNode, html, lines) { argument
50 assertLocation(location.startTag, expected, html, lines);
54 function assertEndTagLocation(location, serializedNode, html, lines) { argument
58 assertLocation(location.endTag, expected, html, lines);
61 function assertAttrsLocation(location, serializedNode, html, lines) { argument
65 assertLocation(attr, expected, html, lines);
69 function assertNodeLocation(location, serializedNode, html, lines) { argument
72 assertLocation(location, expected, html, lines);
104 const lines = html.split(/\r?\n/g);
124 assertNodeLocation(location, serializedNode, html, lines);
127 assertStartTagLocation(location, serializedNode, html, lines);
131 assertEndTagLocation(location, serializedNode, html, lines);
135 assertAttrsLocation(location, serializedNode, html, lines);