Unit Tests
The following test cases are performed as unit tests for VTT. Each test consists of an input file under the directory of "${VTT}/data/vtt/TestCases/".
Input File | Description | Menu/Action | Desired Results | Status | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
test.vtt | Basic VTT file | Pass
| test.pureText.txt | Pure text file | Pass
| test.format.vtt | Different vtt format | Pass
| test.wrongTagFormat.vtt | Wrong tags format | Pass
| test.wrongMarkupFormat.vtt | Wrong markups format | Pass
| test.scroll.vtt | Scroll long text | Pass
| test.noFile.vtt | File not exist | Pass
| |
Input File | Description | Menu/Action | Desired Results | Status | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
test.vtt | Save operation | Pass
| test.vtt | Save as operation | Pass
| test.print.vtt | Print text with bigger font size | Pass
| test.vtt | Close operation | Pass
| test.vtt | Exit operation | Pass
| |
Input File | Description | Menu/Action | Desired Results | Status | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
test.vtt | Bold | Pass
| test.vtt | Italic | Pass
| test.vtt | Underline | Pass
| test.vtt | Font set | Pass
| test.vtt | Font size |
Pass
| test.vtt | Default Font Style | Pass
| test.vtt | Highlight Text Color | Pass
| test.vtt | Highlight Background Color | Pass
| test.vtt | Tags Help | Pass
| |
Input File | Description | Menu/Action | Desired Results | Status | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
test.vtt | Setup operation | Pass
| test.vtt | Display filter | Pass
| test.vtt | Quick keys | Pass
| test.vtt | Save & import | Pass
| test.vtt | Tags Help | Pass
| |
Input File | Description | Menu/Action | Desired Results | Status | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
test.vtt | Logs Details | Pass
| test.vtt | Reports | Pass
| test.vtt | Undo/Redo logs | Pass
| test.vtt | Delete | Pass
| test.vtt | Delete all | Pass
| test.vtt | Undo | Pass
| test.vtt | Redo | Pass
| test.vtt | Overlap | Pass
| test.vtt | Markups Help | Pass
| |
Input File | Description | Menu/Action | Desired Results | Status | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
test.vtt | Look & Feel |
Pass
| test.vtt | Zoom in/out | Pass
| test.vtt | Find | Pass
| test.linewrap.vtt | Line wrapping for long line text | Pass
| test.vtt | VTT Status |
Pass
| test.vtt & | test.diffText.vtt Compare different text |
Pass
| test.vtt & | test.diffTags.vtt Compare different tags |
Pass
| test.scroll.vtt & | test.diffMarkups.vtt Compare different markups |
Pass
| |
Input File | Description | Menu/Action | Desired Results | Status | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
test.vtt | About | Pass
| test.vtt | Key Mapping Table | Pass
| test.vtt | Help menu | Pass
| |