Skip to content

Commit 69e79e6

Browse files
committed
fix: word wrap integ tests fails as we sent word wrap default to false
1 parent 2e4f7ea commit 69e79e6

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

test/spec/EditorOptionHandlers-integ-test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ define(function (require, exports, module) {
190190

191191

192192
describe("Toggle Word Wrap", function () {
193-
it("should wrap long lines in main editor by default", async function () {
193+
it("should wrap long lines in main editor if word wrap enabled", async function () {
194+
// turn on word wrap
195+
await toggleOption(Commands.TOGGLE_WORD_WRAP, "Toggle word-wrap");
194196
await openEditor(HTML_FILE);
195197

196198
var editor = EditorManager.getCurrentFullEditor();
@@ -202,7 +204,7 @@ define(function (require, exports, module) {
202204
checkLineWrapping(editor, {line: 8, ch: 0}, {line: 8, ch: 320}, true);
203205
});
204206

205-
it("should also wrap long lines in inline editor by default", async function () {
207+
it("should also wrap long lines in inline editor", async function () {
206208
await openInlineEditor();
207209

208210
var editor = EditorManager.getCurrentFullEditor().getInlineWidgets()[0].editor;

test/spec/InlineEditorProviders-integ-test.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -550,9 +550,6 @@ define(function (require, exports, module) {
550550
var $popover, editor,
551551
openFile = "test1.html";
552552

553-
// Turn off word wrap for next tests
554-
await toggleOption(Commands.TOGGLE_WORD_WRAP, "Toggle word-wrap");
555-
556553
await awaitsForDone(SpecRunnerUtils.openProjectFiles([openFile]), "FILE_OPEN timeout", 1000);
557554

558555
editor = EditorManager.getCurrentFullEditor();
@@ -575,8 +572,6 @@ define(function (require, exports, module) {
575572
// verify that page scrolled left
576573
expect(editor.getScrollPos().x).toBeGreaterThan(0);
577574

578-
// restore word wrap
579-
await toggleOption(Commands.TOGGLE_WORD_WRAP, "Toggle word-wrap");
580575
});
581576

582577
it("should increase size based on content", async function () {

0 commit comments

Comments
 (0)