Sha256: e66ad5354f44982b26b3c14b5ce39e41889d88a4f5de6e59f0a6caafb7c3fbd8

Contents?: true

Size: 582 Bytes

Versions: 3

Compression:

Stored size: 582 Bytes

Contents

describe("j$.pp (HTML Dependent)", function () {
  it("should stringify HTML nodes properly", function() {
    var sampleNode = document.createElement('div');
    sampleNode.innerHTML = 'foo<b>bar</b>';
    expect(j$.pp(sampleNode)).toEqual("HTMLNode");
    expect(j$.pp({foo: sampleNode})).toEqual("{ foo : HTMLNode }");
  });

  it("should print Firefox's wrapped native objects correctly", function() {
    if(jasmine.getEnv().firefoxVersion) {
      try { new CustomEvent(); } catch(e) { var err = e; };
      expect(j$.pp(err)).toMatch(/Not enough arguments/);
    }
  });
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jasmine-core-2.0.0 ./lib/jasmine-core/spec/html/PrettyPrintHtmlSpec.js
jasmine-core-2.0.0.rc5 ./lib/jasmine-core/spec/html/PrettyPrintHtmlSpec.js
jasmine-core-2.0.0.rc3 ./lib/jasmine-core/spec/html/PrettyPrintHtmlSpec.js