Skip to content

Commit

Permalink
Merge pull request #1438 from alexkurowski/fix-list-removal
Browse files Browse the repository at this point in the history
Remove IE check
  • Loading branch information
rishijain committed Apr 17, 2018
2 parents 743701e + 32beb9f commit 9156a11
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/content.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
prepareEvent, selectElementContents,
selectElementContentsAndFire,
placeCursorInsideElement,
isIE, getEdgeVersion, isFirefox */
getEdgeVersion, isFirefox */

describe('Content TestCase', function () {
'use strict';
Expand Down Expand Up @@ -825,8 +825,8 @@ describe('Content TestCase', function () {
selectElementContentsAndFire(target);
fireEvent(toolbar.getToolbarElement().querySelector('[data-action="insertunorderedlist"]'), 'click');

if (isIE() || getEdgeVersion() > 0) {
// IE and Edge wraps elements in div
if (getEdgeVersion() > 0) {
// Edge wraps elements in div
expect(this.el.innerHTML).toBe('<div>lorem</div><ul><li>ipsum</li><li>dolor</li></ul>');
} else {
// Other browsers should wrap them in p
Expand All @@ -851,8 +851,8 @@ describe('Content TestCase', function () {
selection.addRange(range);

fireEvent(toolbar.getToolbarElement().querySelector('[data-action="insertorderedlist"]'), 'click');
if (isIE() || getEdgeVersion() > 0) {
// IE and Edge wraps elements in div
if (getEdgeVersion() > 0) {
// Edge wraps elements in div
expect(this.el.innerHTML).toBe('<div>lorem</div><div>ipsum</div><ol><li>dolor</li></ol>');
} else {
// Other browsers should wrap them in p
Expand All @@ -872,8 +872,8 @@ describe('Content TestCase', function () {

selectElementContentsAndFire(target);
fireEvent(toolbar.getToolbarElement().querySelector('[data-action="insertunorderedlist"]'), 'click');
if (isIE() || getEdgeVersion() > 0) {
// IE and Edge wraps elements in div
if (getEdgeVersion() > 0) {
// Edge wraps elements in div
expect(this.el.innerHTML).toBe('<div>lorem</div><div>ipsum</div><div>dolor</div>');
} else {
// Other browsers should wrap them in p
Expand Down

0 comments on commit 9156a11

Please sign in to comment.