Merge text.love

[?]
Aug 26, 2023, 11:04 PM
KRLRRLVGMTN66AWJ3EB6P6ZLFSGVBMMGACA7I4FXCGVRNTKOYV7AC

Dependencies

  • [2] QD4LOFQR Merge text.love
  • [3] PWTRH67V Merge lines.love
  • [4] ECBDENZ4 Merge text.love
  • [5] A4BSGS2C Merge lines.love
  • [6] JMUD7T3O get rid of ugly side-effects in tests
  • [7] AVTNUQYR basic test-enabled framework
  • [8] 4KC7I3E2 make colors easier to edit
  • [9] 2CTN2IEF Merge lines.love
  • [10] ZLJYLPOT Merge lines.love
  • [11] CUFW4EJL reorganize app.lua and its comments
  • [12] 36Z442IV back to commit 8123959e52f without code editing
  • [13] YTSPVDZH first successful pagedown test, first bug found by test
  • [14] MDXGMZU2 disable all debug prints
  • [15] JCXL74WV bring back everything from commit a68647ae22
  • [16] CA5T33FG one more implication
  • [17] JOPVPUSA editing source code from within the app
  • [18] 3QWK3GSA support mouse clicks in file navigator
  • [*] 3QNOKBFM beginnings of a test harness

Change contents

  • edit in app.lua at line 58
    [4.629][4.5829:5830](),[4.5829][4.5829:5830]()
  • resurrect zombie in app.lua at line 59
    [4.5830][4.630:639](),[4.5830][4.630:639]()
    App = {}
  • resolve order conflict in app.lua at line 59
    [4.209590]
    [4.630]
  • edit in app.lua at line 60
    [4.639]
    [4.4092]
  • edit in app.lua at line 73
    [4.4492][2.16:16](),[4.209859][3.36:36](),[4.209859][3.36:36]()
  • resolve order conflict in app.lua at line 73
    [4.4492]
    [4.640]
  • edit in app.lua at line 93
    [4.1152]
    [4.5849]
  • edit in app.lua at line 116
    [4.4498][4.4498:4559]()
    -- operations on the LÖVE window within the monitor/display
  • resurrect zombie in app.lua at line 136
    [4.1190][4.1491:1738](),[4.1190][4.1491:1738]()
    -- If you use App.screen.print instead of love.graphics.print,
    -- tests will be able to check what was printed using App.screen.check below.
    --
    -- One drawback of this approach: the y coordinate used depends on font size,
    -- which feels brittle.
  • resolve order conflict in app.lua at line 136
    [4.5012]
    [4.1491]
  • edit in app.lua at line 155
    [4.6421][4.1282:1287]()
    end
  • resurrect zombie in app.lua at line 155
    [4.1374][4.5013:5018](),[4.1374][4.5013:5018]()
    end
  • edit in app.lua at line 157
    [4.5018][4.5018:5111](),[4.5018][4.5018:5111]()
    function colortable(app_color)
    return {app_color.r, app_color.g, app_color.b, app_color.a}
  • resurrect zombie in app.lua at line 157
    [4.1287][4.1739:2154](),[4.1287][4.1739:2154](),[4.387][4.2155:2332](),[4.387][4.2155:2332]()
    function App.screen.check(y, expected_contents, msg)
    --? print('checking for "'..expected_contents..'" at y '..tostring(y))
    local screen_row = 'y'..tostring(y)
    local contents = ''
    if App.screen.contents[screen_row] == nil then
    error('no text at y '..tostring(y))
    end
    for i,s in ipairs(App.screen.contents[screen_row]) do
    contents = contents..s
    end
    check_eq(contents, expected_contents, msg)
    -- If you access the time using App.getTime instead of love.timer.getTime,
    -- tests will be able to move the time back and forwards as needed using
    -- App.wait_fake_time below.
  • resolve order conflict in app.lua at line 157
    [4.5018]
    [4.1739]
  • edit in app.lua at line 168
    [4.2154]
    [4.2155]
    end