Skip to content

Commit

Permalink
Not enough content to validate the test case
Browse files Browse the repository at this point in the history
Fix undefined is not a constructor (evaluating 'range.startContainer.getBoundingClientRect()')
  • Loading branch information
julianxhokaxhiu committed Dec 18, 2017
1 parent a8373bf commit 1b6f12f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/content.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ describe('Content TestCase', function () {
};

this.el.parentNode.removeChild(this.el);
this.el = this.createElement('h1', 'editor', 'M');
this.el = this.createElement('h1', 'editor', 'Lorem ipsum dolor sit amet');

var editor = this.newMediumEditor('h1.editor');
editor.elements[0].focus();
Expand Down
4 changes: 2 additions & 2 deletions spec/toolbar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ describe('MediumEditor.extensions.toolbar TestCase', function () {
el,
i;

this.el.textContent = '0';
this.el.textContent = '0. Lorem ipsum dolor sit amet';
for (i = 1; i < 3; i += 1) {
el = this.createElement('div', 'editor');
el.textContent = i;
el.textContent = i + '. Lorem ipsum dolor sit amet';
}

expect(document.querySelectorAll('.editor').length).toBe(3);
Expand Down

0 comments on commit 1b6f12f

Please sign in to comment.