describe("jasmineUnderTest.pp (HTML Dependent)", function () { it("should stringify non-element HTML nodes properly", function() { var sampleNode = document.createTextNode(""); expect(jasmineUnderTest.pp(sampleNode)).toEqual("HTMLNode"); expect(jasmineUnderTest.pp({foo: sampleNode})).toEqual("Object({ foo: HTMLNode })"); }); it("should stringify empty HTML elements as their opening tags", function () { var simple = document.createElement('div'); simple.className = 'foo'; expect(jasmineUnderTest.pp(simple)).toEqual('
Irrelevant
'; expect(jasmineUnderTest.pp(nonEmpty)).toEqual('