Learning Git and WebVTT Test Suite for DPS909

Wrote some tests for webvtt test suite.

Bad files

/*

when missing a new line between a line and cue timing
*/
WEBVTT

00:11.000 –> 00:13.000 vertical:rl
<v Roger Bingham>We are in New York City
00:13.000 –> 00:16.000
<v Roger Bingham>We’re actually at the Lucern Hotel, just down the street

/*
Line break between two text lines
*/
WEBVTT

00:13.000 –> 00:16.000
Introduction
Hello world!

/*
Missing cue identifier after WEBVTT and before text line
It should fail
*/
WEBVTT

Hello world!

 

Good Files

/*
Missing the text line in between two cue identifiers
*/
WEBVTT

00:00.000 –> 01:24.000

00:00.000 –> 00:44.000

 

/*
A bunch of new lines at the bottom of file
*/
WEBVTT

00:13.000 –> 00:16.000
Introduction
Hello world!

 

Regarding GIT, I am still trying to get used to it. As of now, I still do forget some commands sometimes. But using them frequently definitely helps. Listed below are some git commands and their description as per my understanding

Git clone – copies the entire history of a repository.

Git status – shows any changes made in current branch

Git branch – shows the current branch with *

git branch -s – lists all branches

git branch newbranch – creates a new branch ‘newbranch’ from the current branch

git checkout newbranch – switch to newbranch

git remote add <shortname> git-url – adds a new remote branch to your local repo

git fetch <shortname> – fetch all data from remote branch

git checkout – – reverse an action

git merge ‘branchname’ – merge two branches and move the head of current branch to new commit

git pull <remote> <branch> – copy a remote commit

git push <remote> <branch> – creates a new commit and merge a remote branch into your current branch

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s