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:
@@ -24,4 +24,11 @@ describe("jasmineUnderTest.pp (HTML Dependent)", function () {
|
||||
expect(jasmineUnderTest.pp(err)).toMatch(/Not enough arguments/);
|
||||
}
|
||||
});
|
||||
|
||||
it("should stringify HTML element with text and attributes", function() {
|
||||
var el = document.createElement('div');
|
||||
el.setAttribute('things', 'foo');
|
||||
el.innerHTML = 'foo';
|
||||
expect(jasmineUnderTest.pp(el)).toEqual('<div things="foo">...</div>');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user