1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-29 23:29:41 +02:00
audacity/scripts/piped-work/docimages_regression_tests.py
James Crook 6228b6033b Modify scripts to adjust to Pull request #271
Parameter enum values have changed.
2018-03-27 22:00:16 +01:00

31 lines
944 B
Python

# 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" type="Up" units="% of Original" ' )
capture( "Bug1844.png", "AllTracks" )
do( 'SelectTool' )
# Should have envelop points at 0s, 2x4s, 10s and 12s and no others.
bug_test_1844()