1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-18 16:41:14 +02:00

Added a regression test and an image mangling python script

- Added docimages_regression_tests.py
-- It's a test for Bug1844, concerning envelope points.
- Added decorate_images.py
-- It's a script to crop and drop shadow.
This commit is contained in:
James Crook
2018-02-25 19:17:26 +00:00
parent 104c3b6a5a
commit ca2dc254b1
2 changed files with 113 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
# docimages_regression_tests.py
# Sends commands to get images for the manual.
# Tests against bug numbers to confirm that they are still fixed.
# Make sure Audacity is running first and that mod-script-pipe is enabled
# before running this script.
#load and run the common core.
exec( open("docimages_core.py" ).read() )
def bug_test_1844():
makeWayForTracks()
do( 'Select: Start=0 End=30' )
do( 'Silence' )
do( 'Select: Start=0 End=40' )
do( 'ZoomSel' )
do( 'Select: Start=0 End=30' )
do( 'Tone' )
do( 'EnvelopeTool' )
do( 'SetEnvelope: Time=10 Value=1.0' )
do( 'SetEnvelope: Time=12 Value=0.5' )
do( 'Select: Start=0 End=4' )
do( 'AdjustableFade: curve="0" gain0="0" gain1="100" preset="None Selected" type="Fade Up" units="% of Original" ' )
capture( "Bug1844.png", "All_Tracks" )
do( 'SelectTool' )
# Should have envelop points at 0s, 2x4s, 10s and 12s and no others.
bug_test_1844()