Skip to content

Commit

Permalink
Minor clean-up of tests
Browse files Browse the repository at this point in the history
Change-Id: Ibbfb6c386d9f6fd3d831655bafda0cd31432345d
  • Loading branch information
piranna committed Jul 22, 2014
1 parent 54084ab commit 562a89f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
File renamed without changes.
12 changes: 6 additions & 6 deletions example/PlayerEndpoint-HttpGetEndpoint/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ window.addEventListener('load', function()
{
if(error) return console.error(error);

// Subscribe to PlayerEndpoint EOS event
player.on('EndOfStream', function(event)
{
console.log("EndOfStream event:", event);
});

pipeline.create('HttpGetEndpoint', function(error, httpGet)
{
if(error) return onerror(error);
Expand Down Expand Up @@ -78,6 +72,12 @@ window.addEventListener('load', function()
});
});
});

// Subscribe to HttpGetEndpoint EOS event
httpGet.on('EndOfStream', function(event)
{
console.log("EndOfStream event:", event);
});
});
});
});
Expand Down
9 changes: 4 additions & 5 deletions example/PlayerEndpoint-HttpGetEndpoint_OAuth2/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ var oa = new OAuth2(client_id,
// Handles requests to the main page
app.get('/', function(req, res)
{
if(!req.session.access_token)
res.sendfile('notLogged.html');
else
res.sendfile('logged.html');
var file = req.session.access_token ? 'logged.html' : 'notLogged.html';

res.sendfile(file);
});

// Redirection to IDM authentication portal
Expand Down Expand Up @@ -74,5 +73,5 @@ app.get('/logout', function(req, res)
});


console.log('Server listen in port 80. Connect to localhost');
app.listen(80);
console.log('Server listen in port 80. Connect to localhost');

0 comments on commit 562a89f

Please sign in to comment.