| Version 32 (modified by azornik, 2 years ago) (diff) |
|---|
- General
-
Test Cases
- Perl 5 scripts
- Perl 5 modules
- Perl projects
- Text files
- Saving perl file without extension forgets its mime-type (see #1107)
- Perl distributions and templates and running
- Sessions
- Padre server
- The Command Line Window
- Code Folding
- Whites paces
- Current Line
- Word Wrap
- Indentation Guide
- Right Margin
- To-Do List
- Script Features
General
Reports by version and tester
- 0.82: zenog fenderson?
What to report
- for each single item
- OK or
- crashes
- inconsistent behaviour
- actions that do not work as expected
- OK or
- for each section
- How much time did it take you to perform the tests?
System information
- OS:
- Perl:
- Wx:
- wxWidgets:
- Wx::Perl::ProcessStream?:
- PPI:
Preparation
- fresh Padre installation
- check whether you are running the to-be-released Padre version by opening the "About" box
Test Cases
Perl 5 scripts
- open a Perl script (using Ctrl-o or File/Open?)
- run it by hitting F5
- change to the other output variant (external window or internal pane) (Tools/Preferences/Run? Parameters/Use? external window for execution)
- run it by hitting Shift-F5
- enable syntax checks (View/Show? Syntax Check)
- introduce a syntax error and inspect resulting output
- click on the syntax error to jump to the position of the error
- enable autocomplete at "Tools"->"Preferences"->"Autocomplete"
- start typing a word which is already in the file (maybe "warn" from "warnings")
- hit Ctrl-Space, select a suggestion and confirm it
- enable bracket autocomplete at "Tools"->"Preferences"->"Behavior"
- type ( [ { " ' - each of them should get its closing part automatically
Perl 5 modules
- open a large Perl module from the Padre source
- enable "View"->"Show Functions"
- double-click on a function name to jump to its location in the file
- the text cursor should be at the corresponding function in the file
- enable "View"->"Show Outline"
- double-click on a method name to jump to its location in the file
- the text cursor should be at the corresponding location in the file
Perl projects
- enable the project browser: "View"->"Show Project Browser/Tree?"
- browse the directories of the Padre project
- open a file from the project
- save it under another name
- check if the file appears in the Project Browser window
- delete the newly created file (using the tools of your operating system)
- observe that the listing of the file has disappeared from the Project browser
- load file using "Search" -> "Open Resource ..."
Text files
- "File" -> "New"
- save it as file.txt
- save it as file
- load a text file from disk
- use "Edit" -> "Go To ..." to jump to a given line
- use "Edit" -> "Go To ..." to jump to a given character position
Saving perl file without extension forgets its mime-type (see #1107)
- "File" -> "New"
- type in
#!/usr/bin/perl use strict; use warnings;
- save it as file
- Check if the mime-type (3rd box on the status bar) says "Perl 5"
- Close the file
- Open The file using "File" -> "Open"
- Check if the mime-type (3rd box on the status bar) says "Perl 5"
- Open The file using "File" -> "Save As"
- save it as file2
- Check if the mime-type (3rd box on the status bar) says "Perl 5"
Perl distributions and templates and running
- create a new Perl 5 distribution: "File" -> "New" -> "Perl Distribution ..."
- create an additional "hello, world" style Perl 5 module in the same namespace: "File" -> "New" -> "Perl 5 Module"
- use "File" -> "Save Intuition" to save the module
- create a test for the module: "File" -> "New" -> "Perl 5 Test"
- run the test: "Run" -> "Run Tests"
- run the test: "Run" -> "Run and Build Tests"
- create a new Perl 5 script that uses the module: "File" -> "New" -> "Perl 5 Script"
- run it: "Run" -> "Run Script"
- run it: "Run" -> "Run Script (Debug Info)"
- add an infinite loop the the script
- run the script and abort it using F6
Sessions
- cycle through the files using the keyboard: Ctrl-PageUp? and Ctrl-PageDown?
- save the session
- close one tab
- go to "File" -> "Recent Files" and re-open the file
- close all tabs
- load the session that you saved before
Padre server
- start Padre
- "Tools" -> "Preferences": enable "Open Files in existing Padre"
- restart Padre
- type padre SOME_FILE in the command line (should open in the same instance of Padre)
- "Tools" -> "Preferences": disable "Open Files in existing Padre"
- restart Padre
- type padre SOME_FILE in the command line (should start a new instance of Padre)
The Command Line Window
- enable the command line window. View -> Show Command Line Window.
- press ? to get the list of commands.
- :! cmd - run command in shell. do :! ls to get the list of files and dirs.
- :e filename - open file. do :e Padre.pm (or every other file) to open the file on padre.
- :history - shows the history of all the commands.
- :keycatcher Number - shows the value of a single event.
- :padre cmd - runs a perl command. example: :padre Padre::Current->main->message("hi").
Code Folding
View -> Show Code Folding. by enabling code folding padre will put ':' at the end of every statement(unless you already put it). (statement example;
my $x=5; print (" x is now $x");
)
Whites paces
View -> Show Whitespaces by enabling white spaces pare will put a dot each time you click on the "Space" button. also white spaces will show you an arrow each time you click on the "Tab" button.
Current Line
View -> Show Current Line. marks the current line in yellow.
Word Wrap
View -> Word-Wrap. by enabling word wrap, padre wont let you expand the code block horizontally, if you'll try it will go to the next line.
Indentation Guide
View -> Show Indentation Guide. by enabling it you will see a vertical lines that will show you where a block starts and ends.
Right Margin
View -> Show Right Margin. by enabling it, padre will show you a vertical line after N characters (e.g. N = 80).
To-Do List
View -> To-Do List. opens a to-do list window.
Script Features
- Start padre.
- write a script or open perl module.
- enable Right Margin View -> Show Right Margin.
- go to Tools -> Preferences.
- there are 3 buttons at the bottom "Save", "Advanced" and "Cancel". Press the "Advanced" button.
- write down on the filter's search box right_margin_column and press it.
- the default is "80" change the value to "150" than press "Set" and than press "Save". you will see that the right margin has moved to the right.
- now go back to the right_margin_column (has we done in 4-6) and now Press "Reset" and than press "Save".
- now it should go back to default (value = 80), middle of the screen.
