fix window view mock
This commit is contained in:
parent
8f8782701b
commit
e949f67df2
1 changed files with 26 additions and 32 deletions
|
|
@ -38,6 +38,8 @@
|
|||
|
||||
define(function(require, exports, module) {
|
||||
|
||||
var Window = require("ace/model/window").Window;
|
||||
|
||||
exports.MockRenderer = exports.WindowViewMock = WindowViewMock = function(visibleRowCount) {
|
||||
this.container = document.createElement("div");
|
||||
this.visibleRowCount = visibleRowCount || 20;
|
||||
|
|
@ -49,6 +51,8 @@ exports.MockRenderer = exports.WindowViewMock = WindowViewMock = function(visibl
|
|||
};
|
||||
|
||||
this.isWindowViewMock = true;
|
||||
|
||||
this.model = new Window();
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -127,38 +131,28 @@ WindowViewMock.prototype.getScrollTopRow = function() {
|
|||
return this.layerConfig.firstVisibleRow;
|
||||
};
|
||||
|
||||
WindowViewMock.prototype.draw = function() {
|
||||
};
|
||||
|
||||
WindowViewMock.prototype.updateLines = function(startRow, endRow) {
|
||||
};
|
||||
|
||||
WindowViewMock.prototype.updateBackMarkers = function() {
|
||||
};
|
||||
|
||||
WindowViewMock.prototype.updateFrontMarkers = function() {
|
||||
};
|
||||
|
||||
WindowViewMock.prototype.setBreakpoints = function() {
|
||||
};
|
||||
|
||||
WindowViewMock.prototype.onResize = function() {
|
||||
};
|
||||
|
||||
WindowViewMock.prototype.updateFull = function() {
|
||||
};
|
||||
|
||||
WindowViewMock.prototype.updateText = function() {
|
||||
};
|
||||
|
||||
WindowViewMock.prototype.showCursor = function() {
|
||||
};
|
||||
|
||||
WindowViewMock.prototype.visualizeFocus = function() {
|
||||
};
|
||||
|
||||
WindowViewMock.prototype.setAnnotations = function() {
|
||||
};
|
||||
[
|
||||
"draw",
|
||||
"updateLines",
|
||||
"updateBackMarkers",
|
||||
"updateFrontMarkers",
|
||||
"updateShowInvisibles",
|
||||
"updatePrintMargin",
|
||||
"updateShowGutter",
|
||||
"updatePadding",
|
||||
"updateHorizScroll",
|
||||
"updateTheme",
|
||||
"updateCharacterSize",
|
||||
"setBreakpoints",
|
||||
"onResize",
|
||||
"updateFull",
|
||||
"updateText",
|
||||
"showCursor",
|
||||
"visualizeFocus",
|
||||
"setAnnotations"
|
||||
].forEach(function(name) {
|
||||
WindowViewMock.prototype[name] = function() {};
|
||||
})
|
||||
|
||||
WindowViewMock.prototype.textToScreenCoordinates = function() {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue