Commit message (Expand) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | fixes #4519 | Andreas Rumpf | 2016-12-25 | 1 | -1/+1 | |
* | fixes #5142 | Araq | 2016-12-23 | 1 | -4/+6 | |
* | Merge branch 'devel' of github.com:nim-lang/Nim into devel | Araq | 2016-12-22 | 1 | -2/+2 | |
|\ | ||||||
| * | Used typed/untyped instead of stmt/expr in semQuoteAst. Fixes issue 5120 (#5126) | Chris Heller | 2016-12-22 | 1 | -2/+2 | |
* | | fixes #5140 | Araq | 2016-12-22 | 1 | -1/+3 | |
|/ | ||||||
* | make tsets test green again | Araq | 2016-12-22 | 1 | -5/+6 | |
* | fixes #5137 | Andreas Rumpf | 2016-12-22 | 1 | -14/+19 | |
* | implements module grouping for the import statement | Andreas Rumpf | 2016-12-21 | 3 | -14/+26 | |
* | fixes recently introduced regression | Andreas Rumpf | 2016-12-21 | 1 | -6/+8 | |
* | fixes #5136 | Andreas Rumpf | 2016-12-21 | 1 | -6/+6 | |
* | fixes #5135 | Andreas Rumpf | 2016-12-21 | 1 | -0/+5 | |
* | fixes #5131 | Araq | 2016-12-20 | 1 | -1/+1 | |
* | make nimfix compile with newer compiler API | Araq | 2016-12-20 | 1 | -2/+3 | |
* | bugfix: aporia compiles again | Araq | 2016-12-20 | 1 | -0/+1 | |
* | Merge branch 'devel' into sighashes | Araq | 2016-12-19 | 7 | -17/+43 | |
|\ | ||||||
| * | make tests green again | Araq | 2016-12-18 | 1 | -1/+1 | |
| * | Merge branch 'devel' of github.com:nim-lang/Nim into devel | Araq | 2016-12-18 | 1 | -2/+3 | |
| |\ | ||||||
| | * | fixes nimsuggest bug #43 | Andreas Rumpf | 2016-12-18 | 1 | -2/+3 | |
| * | | fixes #4308, fixes #4905 | Araq | 2016-12-18 | 3 | -1/+23 | |
| * | | debug output: show line info earlier | Araq | 2016-12-18 | 1 | -1/+1 | |
| |/ | ||||||
| * | revert line info generation change; produces worse results for other cases | Araq | 2016-12-18 | 1 | -2/+2 | |
| * | significantly better stack traces when templates are involved | Araq | 2016-12-18 | 1 | -8/+12 | |
| * | fixes nimsuggest issue #40 | Araq | 2016-12-18 | 1 | -1/+1 | |
| * | fixes nimsuggest issue #41 | Araq | 2016-12-18 | 1 | -1/+3 | |
* | | Merge branch 'devel' into sighashes | Araq | 2016-12-17 | 6 | -10/+36 | |
|\| | ||||||
| * | fixes #5129 | Araq | 2016-12-17 | 1 | -1/+3 | |
| * | Merge branch 'devel' of github.com:nim-lang/Nim into devel | Andreas Rumpf | 2016-12-17 | 5 | -51/+123 | |
| |\ | ||||||
| | * | Merge pull request #5124 from vegansk/fix_lib_out | Andreas Rumpf | 2016-12-17 | 1 | -2/+8 | |
| | |\ | ||||||
| | | * | Use ``out`` compiler option when linking static library | Anatoly Galiulin | 2016-12-16 | 1 | -2/+8 | |
| | * | | Gramma change: casted or Casted to cast or Cast respectively | jlp765 | 2016-12-17 | 2 | -4/+4 | |
| | |/ | ||||||
| * | | reworked emit pragma; fixes #4730 | Andreas Rumpf | 2016-12-17 | 2 | -3/+21 | |
* | | | Merge branch 'devel' into sighashes | Araq | 2016-12-14 | 2 | -43/+105 | |
|\ \ \ | | |/ | |/| | ||||||
| * | | Nim compiler generates nimcache/proj.json for easier interop with external bu... | Araq | 2016-12-14 | 2 | -43/+104 | |
* | | | Merge branch 'devel' into sighashes | Araq | 2016-12-13 | 1 | -4/+9 | |
|\| | | ||||||
| * | | macros.getType: do not copy symbols if not necessary | Araq | 2016-12-07 | 1 | -4/+9 | |
| |/ | ||||||
* | | code cleanup and getting rid of debugging comments that nihilated the sighash... | Araq | 2016-12-13 | 1 | -14/+3 | |
* | | sighashes: multi-methods should work now | Andreas Rumpf | 2016-12-13 | 1 | -0/+2 | |
* | | sighashes: do not use the ID mechanism at all | Araq | 2016-12-13 | 3 | -11/+56 | |
* | | make tsigbreak.nim compile | Andreas Rumpf | 2016-12-12 | 4 | -7/+14 | |
* | | fixes serious codegen regression that caused Nimble to misbehave | Araq | 2016-12-10 | 1 | -1/+1 | |
* | | store typeinfo also in local hash table to prevent multiple 'extern' declarat... | Araq | 2016-12-10 | 1 | -0/+4 | |
* | | make the Nim compiler compile as C++ | Araq | 2016-12-10 | 1 | -2/+4 | |
* | | don't use sfExported for sig hashing | Araq | 2016-1function test_resize_window()
io.write('\ntest_resize_window')
App.screen.init{width=300, height=300}
Editor_state = edit.initialize_test_state()
Editor_state.filename = 'foo'
Log_browser_state = edit.initialize_test_state()
check_eq(App.screen.width, 300, 'F - test_resize_window/baseline/width')
check_eq(App.screen.height, 300, 'F - test_resize_window/baseline/height')
check_eq(Editor_state.left, Test_margin_left, 'F - test_resize_window/baseline/left_margin')
App.resize(200, 400)
check_eq(App.screen.width, 200, 'F - test_resize_window/width')
check_eq(App.screen.height, 400, 'F - test_resize_window/height')
check_eq(Editor_state.left, Test_margin_left, 'F - test_resize_window/left_margin')
-- ugly; right margin switches from 0 after resize
check_eq(Editor_state.right, 200-Margin_right, 'F - test_resize_window/right_margin')
check_eq(Editor_state.width, 200-Test_margin_left-Margin_right, 'F - test_resize_window/drawing_width')
-- TODO: how to make assertions about when App.update got past the early exit?
end
function test_drop_file()
io.write('\ntest_drop_file')
App.screen.init{width=Editor_state.left+300, height=300}
Editor_state = edit.initialize_test_state()
App.filesystem['foo'] = 'abc\ndef\nghi\n'
local fake_dropped_file = {
opened = false,
getFilename = function(self)
return 'foo'
end,
open = function(self)
self.opened = true
end,
lines = function(self)
assert(self.opened)
return App.filesystem['foo']:gmatch('[^\n]+')
end,
close = function(self)
self.opened = false
end,
}
App.filedropped(fake_dropped_file)
check_eq(#Editor_state.lines, 3, 'F - test_drop_file/#lines')
check_eq(Editor_state.lines[1].data, 'abc', 'F - test_drop_file/lines:1')
check_eq(Editor_state.lines[2].data, 'def', 'F - test_drop_file/lines:2')
check_eq(Editor_state.lines[3].data, 'ghi', 'F - test_drop_file/lines:3')
edit.draw(Editor_state)
end
function test_drop_file_saves_previous()
io.write('\ntest_drop_file_saves_previous')
App.screen.init{width=Editor_state.left+300, height=300}
-- initially editing a file called foo that hasn't been saved to filesystem yet
Editor_state.lines = load_array{'abc', 'def'}
Editor_state.filename = 'foo'
schedule_save(Editor_state)
-- now drag a new file bar from the filesystem
App.filesystem['bar'] = 'abc\ndef\nghi\n'
local fake_dropped_file = {
opened = false,
getFilename = function(self)
return 'bar'
end,
open = function(self)
self.opened = true
end,
lines = function(self)
assert(self.opened)
return App.filesystem['bar']:gmatch('[^\n]+')
end,
close = function(self)
self.opened = false
end,
}
App.filedropped(fake_dropped_file)
-- filesystem now contains a file called foo
check_eq(App.filesystem['foo'], 'abc\ndef\n', 'F - test_drop_file_saves_previous')
end
|