-
Can't remember the fancy name of these coding styles, but instead of:
return function() { if(expression) {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this.canPlayHls = featureDetector.can('PlayAppleHls') && (/(Macintosh|iPod|iPad|iPhone)/).test(navigator.userAgent); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // GOAL: | |
| // To test that VideoLoader creates Emp with the correct parameters. | |
| /** | |
| * VideoLoader (module/media/videoLoader) | |
| * - has Emp (a bbc video player) as a dependency | |
| */ | |
| define(['module/media/emp'], function(Emp) { | |
| var VideoLoader = function(placeholder, meta, EmpStub) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define('http://emp.bbci.co.uk/emp/clear/embed.js', function() { | |
| var api = { | |
| setWidth: sinon.spy(), | |
| setHeight: sinon.spy(), | |
| setDomId: sinon.spy(), | |
| setPlaylist: sinon.spy(), | |
| write: sinon.spy(), | |
| setMediator: function() {}, | |
| set: function() {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---------------------------------------- | |
| // english site | |
| <html lang="en"> | |
| // default typography in here | |
| body { | |
| font-family: Helvetica, Arial, sans-serif; | |
| font-size: xx; | |
| line-height: xx; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bbc-annotate-flagpole-tabloid-1.02-807866.1.noarch.rpm | |
| bbc-flagpole-tabloid-1.02-807807.1.noarch.rpm | |
| bbc-annotate-flagpole-tabloid-1.02-957878.26.noarch.rpm | |
| bbc-flagpole-tabloid-1.02-957878.26.noarch.rpm | |
| bbc-imagechef-tabloid-1.2-3655.141.noarch.rpm | |
| bbc-pal-cirrus-1.2-3655.141.noarch.rpm | |
| bbc-pal-jibbajabba-1.2-3655.141.noarch.rpm | |
| bbc-pal-library-berliner-1.2-3655.141.noarch.rpm | |
| bbc-pal-library-news-core-1.2-3655.141.noarch.rpm | |
| bbc-pal-newspopular-1.2-3655.141.noarch.rpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Feature: Media asset page | |
| As a user | |
| I want to be able to select an item from a variety of media and associated metadata on any device | |
| So that I can watch or listen wherever or however I choose | |
| @javascript | |
| Scenario: Expand Top stories # features/media_asset_page.feature:28 | |
| Given there is a media asset page # features/step_definitions/media_asset_page_steps.rb:13 | |
| And there are 12 items in the Top stories feed # features/step_definitions/media_asset_page_steps.rb:18 | |
| When I visit the media asset page # features/step_definitions/media_asset_page_steps.rb:43 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var emp = new embeddedMedia.Player(); | |
| emp.setWidth(that.options.width); | |
| emp.setHeight(that.options.height); | |
| emp.setDomId(that.options.id); | |
| emp.setPlaylist(that.options.playlist); | |
| emp.setMediator({ | |
| 'host': 'open.live.bbc.co.uk' | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <config xmlns="http://bbc.co.uk/2008/emp/config" revision="1"> | |
| <plugin name="iPlayerLiveStats"> | |
| <param name="baseTemplate">http://stats.bbc.co.uk/o.gif?~RS~s~RS~News~RS~t~RS~{t}~RS~i~RS~{i}~RS~p~RS~0~RS~a~RS~{a}~RS~u~RS~{u}~RS~r~RS~{r}~RS~q~RS~x0m=0.19&x0s={x0s}&x0e={x0e}{extendedTemplate}~RS~z~RS~0~RS~</param> | |
| <param name="playTemplate">&amp;xf={xf}&xfc={xfc}&xj={xj}&xp={xp}&xvp={xvp}&xv1={xv1}</param> | |
| <param name="connectionTemplate">&xc={xc}&xcc={xcc}&xce={xce}&xcs={xcs}&xf={xf}&xfc={xfc}&xmt={xmt}</param> | |
| <param name="playingTemplate">&xb={xb}&xba={xba}&xbc=0&xc={xc}&xcc={xcc}&xj={xj}&xfc={xfc}&xfo={xfo}&xmt={xmt}&xs1={xs1}&xta={xta}&xtd={xtd}&xtp={xtp}&xvp={xvp}&xz1={xz1}&xv1={xv1}</param> | |
| <param name="endTemplate">&xfc={xfc}&xs1={xs1}&xta={xta}&xtd={xtd}&xtp={xtp}&xvp={xvp}&xz1={xz1}&xv1={xv1}</param> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---------------------------------------------------------------------------- | |
| REQUEST FORMAT 1: | |
| http://stats.bbc.co.uk/o.gif? | |
| s: News | |
| t: 0_Load | |
| i: 19948140 | |
| p: 99110 | |
| a: 0 | |
| u: http://pal.sandbox.dev.bbc.co.uk/news/test-map-0 | |
| r: 0 |