Sha256: 0f5926b875c31d68f3c6fdd3e61b64c310933c2bbbf83145ff991adb8758a43f

Contents?: true

Size: 581 Bytes

Versions: 46

Compression:

Stored size: 581 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

46 entries across 46 versions & 3 rubygems

Version Path
jasmine-core-2.1.3 ./lib/jasmine-core/spec/html/PrettyPrintHtmlSpec.js
jasmine-core-2.1.2 ./lib/jasmine-core/spec/html/PrettyPrintHtmlSpec.js
jasmine-core-2.1.1 ./lib/jasmine-core/spec/html/PrettyPrintHtmlSpec.js
jasmine-core-2.1.0 ./lib/jasmine-core/spec/html/PrettyPrintHtmlSpec.js
jasmine-core-2.0.2 ./lib/jasmine-core/spec/html/PrettyPrintHtmlSpec.js
jasmine-core-2.0.1 ./lib/jasmine-core/spec/html/PrettyPrintHtmlSpec.js