get rid of ugly side-effects in tests

[?]
Sep 17, 2022, 5:47 PM
JMUD7T3OJTEF5V73Y2B2GSVUBNBSJFRJPZNREBE5E4BV3IG6SJLQC

Dependencies

  • [2] KKMFQDR4 editing source code from within the app
  • [3] ZJOSQFN6 bugfix: path munging on Windows
  • [4] NFI42KGX more correct absolute path detection
  • [5] ENENSZLK bugfix: source margins when toggling log browser
  • [6] X3CQLBTR set window title within each app
  • [*] 3QNOKBFM beginnings of a test harness
  • [*] AVTNUQYR basic test-enabled framework

Change contents

  • replacement in source.lua at line 119
    [2.168600][2.168600:168715]()
    love.window.setMode(0, 0) -- maximize
    Display_width, Display_height, App.screen.flags = love.window.getMode()
    [2.168600]
    [2.168715]
    App.screen.resize(0, 0) -- maximize
    Display_width, Display_height, App.screen.flags = App.screen.size()
  • replacement in source.lua at line 127
    [2.169063][2.169063:169140]()
    love.window.setMode(App.screen.width, App.screen.height, App.screen.flags)
    [2.169063]
    [2.169140]
    App.screen.resize(App.screen.width, App.screen.height, App.screen.flags)
  • replacement in source.lua at line 159
    [2.170483][2.170483:170598]()
    love.window.setMode(0, 0) -- maximize
    Display_width, Display_height, App.screen.flags = love.window.getMode()
    [2.170483]
    [2.170598]
    App.screen.resize(0, 0) -- maximize
    Display_width, Display_height, App.screen.flags = App.screen.size()
  • replacement in source.lua at line 167
    [2.170894][2.170894:170971]()
    love.window.setMode(App.screen.width, App.screen.height, App.screen.flags)
    [2.170894]
    [2.170971]
    App.screen.resize(App.screen.width, App.screen.height, App.screen.flags)
  • replacement in source.lua at line 171
    [2.171113][2.171113:171210]()
    Settings.source.x, Settings.source.y, Settings.source.displayindex = love.window.getPosition()
    [2.171113]
    [2.171210]
    Settings.source.x, Settings.source.y, Settings.source.displayindex = App.screen.position()
  • replacement in source.lua at line 257
    [2.173809][2.173809:173908]()
    Settings.source.x, Settings.source.y, Settings.source.displayindex = love.window.getPosition()
    [2.173809]
    [2.173908]
    Settings.source.x, Settings.source.y, Settings.source.displayindex = App.screen.position()
  • replacement in source.lua at line 333
    [2.176599][2.176599:176678]()
    love.window.setMode(App.screen.width, App.screen.height, App.screen.flags)
    [2.176599]
    [2.176678]
    App.screen.resize(App.screen.width, App.screen.height, App.screen.flags)
  • edit in app.lua at line 157
    [9.6077]
    [9.6077]
    -- operations on the LÖVE window within the monitor/display
    function App.screen.resize(width, height, flags)
    App.screen.width = width
    App.screen.height = height
    App.screen.flags = flags
    end
    function App.screen.size()
    return App.screen.width, App.screen.height, App.screen.flags
    end
    function App.screen.move(x,y, displayindex)
    App.screen.x = x
    App.screen.y = y
    App.screen.displayindex = displayindex
    end
    function App.screen.position()
    return App.screen.x, App.screen.y, App.screen.displayindex
    end
  • edit in app.lua at line 403
    [9.7988]
    [9.7988]
    App.screen.resize = love.window.setMode
    App.screen.size = love.window.getMode
    App.screen.move = love.window.setPosition
    App.screen.position = love.window.getPosition