Better detection of DOM Nodes for equality
- Also use JSDom if a real one isn't present to get some more coverage there - Fixes #1172
This commit is contained in:
@@ -233,8 +233,8 @@ getJasmineRequireObj().pp = function(j$) {
|
||||
if (el.innerHTML === '') {
|
||||
this.append(el.outerHTML.replace(closingTag, ''));
|
||||
} else {
|
||||
var tagEnd = el.outerHTML.indexOf(el.innerHTML);
|
||||
this.append(el.outerHTML.substring(0, tagEnd));
|
||||
var tagEnd = el.outerHTML.indexOf('>');
|
||||
this.append(el.outerHTML.substring(0, tagEnd + 1));
|
||||
this.append('...' + closingTag);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user