new test

[?]
Sep 15, 2022, 6:26 PM
4VQGE7RAC2B4NWCCKDCUZMMRDRMXLN6357YY4OPFIK6BZBGRWDHQC

Dependencies

  • [2] KKMFQDR4 editing source code from within the app
  • [3] OI4FPFIN support drawings in the source editor
  • [4] X3CQLBTR set window title within each app
  • [5] SXTQMD44 include some missing source files

Change contents

  • edit in source_tests.lua at line 19
    [2.148157]
    [2.148157]
    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')
  • replacement in source_edit.lua at line 130
    [2.155429][2.155429:155473]()
    assert(#State.lines == #State.line_cache)
    [2.155429]
    [2.155473]
    if #State.lines ~= #State.line_cache then
    print(('line_cache is out of date; %d when it should be %d'):format(#State.line_cache, #State.lines))
    assert(false)
    end
  • replacement in source.lua at line 48
    [2.166519][2.166519:166572]()
    Menu_status_bar_height = nil -- initialized below
    [2.166519]
    [2.166572]
    Menu_status_bar_height = 5 + --[[line height in tests]] 15 + 5