Merge upstream into main

[?]
Jul 13, 2022, 10:43 PM
X7IHIK6NHFB633QKWX2XBL5KGF6W6QFKFPQXUESSA73UAUZQIAXAC

Dependencies

  • [2] 7CEOB56D Merge upstream into main
  • [3] V7LATJC7 bugfix: resize
  • [4] OGUV4HSA remove some memory leaks from rendered fragments
  • [5] UHB4GARJ left/right margin -> left/right coordinates
  • [6] AVTNUQYR basic test-enabled framework
  • [7] FS2ITYYH record a known issue
  • [8] K2X6G75Z start writing some tests for drawings
  • [9] CE4LZV4T drop last couple of manual tests
  • [10] VHQCNMAR several more modules
  • [11] 73OCE2MC after much struggle, a brute-force undo
  • [12] BPWFKBXT new test: dragging and dropping a file on lines.love
  • [13] 2L5MEZV3 experiment: new edit namespace
  • [14] 4YDBYBA4 clean up memory leak experiments
  • [15] LF7BWEG4 group all editor globals
  • [16] T4FRZSYL delete an ancient, unused file
  • [17] TLOAPLBJ add a license
  • [18] 27DROQW2 Merge upstream into main
  • [19] 5BJCYYHN convert videos to gif so they render inline on GitHub
  • [20] YIQYNVD2 rip out the line-width slider
  • [21] OTIBCAUJ love2d scaffold
  • [22] LXTTOB33 extract a couple of files
  • [23] 66X36NZN a little more prose describing manual_tests
  • [24] 7M5PGWKU drop last couple of manual tests
  • [25] VXORMHME delete experimental REPL
  • [26] BLWAYPKV extract a module
  • [27] D2GCFTTT clean up repl functionality
  • [28] R5QXEHUI somebody stop me
  • [29] XX7G2FFJ intermingle freehand line drawings with text
  • [30] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing
  • [31] V366JSXA videos
  • [32] BULPIBEG beginnings of a module for the text editor
  • [33] 6LJZN727 handle chords
  • [34] TVCPXAAU rename
  • [35] VUVH2XLF Merge upstream into main
  • [36] RSZD5A7G forgot to add json.lua
  • [37] 3QNOKBFM beginnings of a test harness

Change contents

  • file deletion: main_tests.lua (----------)main_tests.lua (----------)
    [4.2][4.1125:1163](),[4.2][4.1125:1163](),[4.1163][4.7:7]()
    check_eq(Editor_state.left, Margin_left, 'F - test_resize_window/left_margin')
    check_eq(Editor_state.right, 200-Margin_right, 'F - test_resize_window/right_margin')
    check_eq(Editor_state.width, 200-Margin_right-Margin_left, 'F - test_resize_window/drawing_width')
    -- TODO: how to make assertions about when App.update got past the early exit?
    end
    check_eq(Editor_state.left, 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(App.screen.width, 300, 'F - test_resize_window/baseline/width')
    check_eq(App.screen.height, 300, 'F - test_resize_window/baseline/height')
    App.screen.init{width=300, height=300}
    Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin
    Editor_state.filename = 'foo'
  • edit in main_tests.lua at line 3
    [4.73]
    [2.264]
    App.screen.init{width=300, height=300}
    Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width) -- zero right margin
  • replacement in main_tests.lua at line 6
    [2.296][2.296:448]()
    App.screen.init{width=Editor_state.left+300, height=300}
    check_eq(App.screen.width, Editor_state.left+300, 'F - test_resize_window/baseline/width')
    [2.296]
    [4.232]
    check_eq(App.screen.width, 300, 'F - test_resize_window/baseline/width')
  • edit in main_tests.lua at line 8
    [4.309]
    [4.309]
    check_eq(Editor_state.left, Margin_left, 'F - test_resize_window/baseline/left_margin')
  • edit in main_tests.lua at line 12
    [4.466]
    [4.466]
    check_eq(Editor_state.left, Margin_left, 'F - test_resize_window/left_margin')
    check_eq(Editor_state.right, 200-Margin_right, 'F - test_resize_window/right_margin')
    check_eq(Editor_state.width, 200-Margin_right-Margin_left, 'F - test_resize_window/drawing_width')