about summary refs log tree commit diff stats
path: root/source_tests.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-09-15 11:26:45 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-09-15 11:26:45 -0700
commitb90a54a9cb7e2134d6d41112feaf67cb2f09c1be (patch)
tree118248d7b9b22cf9741e008d93028abc877dc2b3 /source_tests.lua
parent9a41c7c176aa571f5270747f690e9b4a37e27529 (diff)
downloadtext.love-b90a54a9cb7e2134d6d41112feaf67cb2f09c1be.tar.gz
new test
Diffstat (limited to 'source_tests.lua')
-rw-r--r--source_tests.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/source_tests.lua b/source_tests.lua
index 519c311..0f5135c 100644
--- a/source_tests.lua
+++ b/source_tests.lua
@@ -18,6 +18,22 @@ function test_resize_window()
   -- TODO: how to make assertions about when App.update got past the early exit?
 end
 
+function test_show_log_browser_side()
+  io.write('\ntest_show_log_browser_side')
+  App.screen.init{width=300, height=300}
+  Editor_state = edit.initialize_test_state()
+  Editor_state.filename = 'foo'
+  Text.redraw_all(Editor_state)
+  Log_browser_state = edit.initialize_test_state()
+  Text.redraw_all(Log_browser_state)
+  log_browser.parse(Log_browser_state)
+  check(not Show_log_browser_side, 'F - test_show_log_browser_side/baseline')
+  Current_app = 'source'
+  App.wait_fake_time(0.1)
+  App.run_after_keychord('C-l')
+  check(Show_log_browser_side, 'F - test_show_log_browser_side')
+end
+
 function test_drop_file()
   io.write('\ntest_drop_file')
   App.screen.init{width=Editor_state.left+300, height=300}