@@ -2,7 +2,7 @@ describe('HtmlReporter', function() {
|
||||
let env;
|
||||
|
||||
beforeEach(function() {
|
||||
env = new jasmineUnderTest.Env();
|
||||
env = new privateUnderTest.Env();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
describe('PrettyPrinter (HTML Dependent)', function() {
|
||||
it('should stringify non-element HTML nodes properly', function() {
|
||||
const sampleNode = document.createTextNode('');
|
||||
const pp = jasmineUnderTest.makePrettyPrinter();
|
||||
const pp = privateUnderTest.makePrettyPrinter();
|
||||
expect(pp(sampleNode)).toEqual('HTMLNode');
|
||||
expect(pp({ foo: sampleNode })).toEqual('Object({ foo: HTMLNode })');
|
||||
});
|
||||
|
||||
it('should stringify empty HTML elements as their opening tags', function() {
|
||||
const simple = document.createElement('div');
|
||||
const pp = jasmineUnderTest.makePrettyPrinter();
|
||||
const pp = privateUnderTest.makePrettyPrinter();
|
||||
simple.className = 'foo';
|
||||
expect(pp(simple)).toEqual('<div class="foo">');
|
||||
});
|
||||
|
||||
it('should stringify non-empty HTML elements as tags with placeholders', function() {
|
||||
const pp = jasmineUnderTest.makePrettyPrinter();
|
||||
const pp = privateUnderTest.makePrettyPrinter();
|
||||
const nonEmpty = document.createElement('div');
|
||||
nonEmpty.className = 'foo';
|
||||
nonEmpty.innerHTML = '<p>Irrelevant</p>';
|
||||
@@ -23,7 +23,7 @@ describe('PrettyPrinter (HTML Dependent)', function() {
|
||||
|
||||
it("should print Firefox's wrapped native objects correctly", function() {
|
||||
if (specHelpers.firefoxVersion) {
|
||||
const pp = jasmineUnderTest.makePrettyPrinter();
|
||||
const pp = privateUnderTest.makePrettyPrinter();
|
||||
let err;
|
||||
try {
|
||||
new CustomEvent();
|
||||
@@ -38,7 +38,7 @@ describe('PrettyPrinter (HTML Dependent)', function() {
|
||||
});
|
||||
|
||||
it('should stringify HTML element with text and attributes', function() {
|
||||
const pp = jasmineUnderTest.makePrettyPrinter();
|
||||
const pp = privateUnderTest.makePrettyPrinter();
|
||||
const el = document.createElement('div');
|
||||
el.setAttribute('things', 'foo');
|
||||
el.innerHTML = 'foo';
|
||||
|
||||
@@ -4,7 +4,7 @@ describe('ResultsNode', function() {
|
||||
id: 123,
|
||||
message: 'foo'
|
||||
},
|
||||
node = new jasmineUnderTest.ResultsNode(fakeResult, 'suite', null);
|
||||
node = new privateUnderTest.ResultsNode(fakeResult, 'suite', null);
|
||||
|
||||
expect(node.result).toBe(fakeResult);
|
||||
expect(node.type).toEqual('suite');
|
||||
@@ -19,7 +19,7 @@ describe('ResultsNode', function() {
|
||||
id: 456,
|
||||
message: 'bar'
|
||||
},
|
||||
node = new jasmineUnderTest.ResultsNode(fakeResult, 'suite', null);
|
||||
node = new privateUnderTest.ResultsNode(fakeResult, 'suite', null);
|
||||
|
||||
node.addChild(fakeChildResult, 'spec');
|
||||
|
||||
@@ -37,7 +37,7 @@ describe('ResultsNode', function() {
|
||||
id: 456,
|
||||
message: 'bar'
|
||||
},
|
||||
node = new jasmineUnderTest.ResultsNode(fakeResult, 'suite', null);
|
||||
node = new privateUnderTest.ResultsNode(fakeResult, 'suite', null);
|
||||
|
||||
node.addChild(fakeChildResult, 'spec');
|
||||
|
||||
@@ -53,7 +53,7 @@ describe('ResultsNode', function() {
|
||||
id: 456,
|
||||
message: 'bar'
|
||||
},
|
||||
node = new jasmineUnderTest.ResultsNode(fakeResult, 'suite', null);
|
||||
node = new privateUnderTest.ResultsNode(fakeResult, 'suite', null);
|
||||
|
||||
node.addChild(fakeChildResult, 'spec');
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
describe('Spy Registry browser-specific behavior', function() {
|
||||
function createSpy(name, originalFn) {
|
||||
return jasmineUnderTest.Spy(name, originalFn);
|
||||
return privateUnderTest.Spy(name, originalFn);
|
||||
}
|
||||
|
||||
it('can spy on and unspy window.onerror', function() {
|
||||
const spies = [],
|
||||
spyRegistry = new jasmineUnderTest.SpyRegistry({
|
||||
spyRegistry = new privateUnderTest.SpyRegistry({
|
||||
currentSpies: function() {
|
||||
return spies;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user