Skip to content

Commit

Permalink
update ace test
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Apr 6, 2018
1 parent 3311361 commit b9c49ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/c9.ide.ace/ace_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ require(["lib/architect/architect", "lib/chai/chai"], function (architect, chai)
it('should allow setting highlightGutterLine', function(done) {
editor.setOption("highlightGutterLine", false);
render();
expect(document.querySelector(".ace_gutter-active-line").offsetHeight).to.not.ok;
expect(document.querySelector(".ace_gutter-active-line")).to.not.ok;

editor.setOption("highlightGutterLine", true);
render();
Expand Down Expand Up @@ -491,7 +491,7 @@ require(["lib/architect/architect", "lib/chai/chai"], function (architect, chai)
doc.value = "function(){\n\t\n}";
editor.setOption("showFoldWidgets", false);
render();
expect.html(document.querySelector(".ace_fold-widget")).not.ok;
expect.html(document.querySelector(".ace_fold-widget").offsetHeight).not.ok;
editor.setOption("showFoldWidgets", true);
render();
expect.html(document.querySelector(".ace_fold-widget")).ok;
Expand Down

0 comments on commit b9c49ca

Please sign in to comment.