diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-09-07 10:16:24 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-09-07 10:16:24 -0700 |
commit | 06c784b576c401b11c6629e09c00504f8746b229 (patch) | |
tree | f866b10a24fc6067a189d9c26114c58148c62d6f /edit.lua | |
parent | b210ce7b366851ba00d541a06041041041e2cc69 (diff) | |
download | lines.love-06c784b576c401b11c6629e09c00504f8746b229.tar.gz |
self-documenting 0 Test_right_margin
Diffstat (limited to 'edit.lua')
-rw-r--r-- | edit.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/edit.lua b/edit.lua index 29f28d0..0c2347f 100644 --- a/edit.lua +++ b/edit.lua @@ -465,14 +465,17 @@ end --== some methods for tests +-- Insulate tests from some key globals so I don't have to change the vast +-- majority of tests when they're modified for the real app. Test_margin_left = 25 +Test_margin_right = 0 function edit.initialize_test_state() -- if you change these values, tests will start failing return edit.initialize_state( 15, -- top margin Test_margin_left, - App.screen.width, -- right margin = 0 + App.screen.width - Test_margin_right, 14, -- font height assuming default LÖVE font 15) -- line height end |