Skip to content

Commit

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

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

equal(htmlEditor.igHtmlEditor("getContent", "html"), '<i style=\"font-weight: bold;\">Some content</i><br>', "Content remains the same");
equal(htmlEditor.igHtmlEditor("getContent", "html"), '<i style=\"font-weight: bold;\">Some content</i>', "Content remains the same");
start();
}, 200);

Expand Down

0 comments on commit 48e7e6a

Please sign in to comment.