(cm, hScroll)
| 33 | } |
| 34 | |
| 35 | function testMovedownFixed(cm, hScroll) { |
| 36 | cm.setSize("100px", "100px"); |
| 37 | if (hScroll) cm.setValue(new Array(100).join("x")); |
| 38 | var bottom = displayBottom(cm, hScroll); |
| 39 | for (var i = 0; i < 30; i++) { |
| 40 | cm.replaceSelection("x\n"); |
| 41 | var cursorBottom = cm.cursorCoords(null, "window").bottom; |
| 42 | is(cursorBottom <= bottom); |
| 43 | } |
| 44 | is(cursorBottom >= bottom - 5); |
| 45 | } |
| 46 | |
| 47 | testCM("movedown_fixed", function(cm) {testMovedownFixed(cm, false);}); |
| 48 | testCM("movedown_hscroll_fixed", function(cm) {testMovedownFixed(cm, true);}); |
no test coverage detected