Skip to content

Commit

Permalink
test(htmleditor-tests): fix test for IE
Browse files Browse the repository at this point in the history
Closes #1895
  • Loading branch information
Aleksandyr committed Feb 8, 2019
1 parent 8164cf5 commit a82f399
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -710,13 +710,13 @@ QUnit.module("igHTMLEditor unit tests", {
$.browser = { "IE": "IE" };
htmlEditor.data("igHtmlEditor")._selectionWrapperSaved._commands.insertunorderedlist.browsers = ["IE", "Chrome"];
htmlEditor.data("igHtmlEditor")._selectionWrapperSaved.execCommand("insertunorderedlist", null);
self.assert.equal(htmlEditor.igHtmlEditor("getContent", "html"), '<ul><li><i>Some content</i><br></li></ul>', "Content changed to have unordered list");
self.assert.equal(htmlEditor.igHtmlEditor("getContent", "html"), '<ul><li><i>Some content</i></li></ul>', "Content changed to have unordered list");

$.browser = undefined;
htmlEditor.data("igHtmlEditor")._selectionWrapperSaved.execCommand("insertunorderedlist", null);
htmlEditor.data("igHtmlEditor")._selectionWrapperSaved.execCommand("bold", null);

self.assert.equal(htmlEditor.igHtmlEditor("getContent", "html"), '<i style=\"font-weight: bold;\">Some content</i><br>', "Content remains the same");
self.assert.equal(htmlEditor.igHtmlEditor("getContent", "html"), '<i style=\"font-weight: bold;\">Some content</i>', "Content remains the same");
return $.ig.TestUtil.wait(300);
}).then(function () {
htmlEditor.igHtmlEditor("setContent", "<div id='div1'>Some content1<div>Some content2<div>Some content3<div><div><div>", "html");
Expand Down

0 comments on commit a82f399

Please sign in to comment.