end: 2,
target: "feed",
url: "http://zenit.senecac.on.ca/~chris.tyler/planet/rss20.xml",
- title: "Planet Feed",
+ title: "Planet Feed"
})
.googlefeed({
start: 2,
test( "Popcorn LinkedIn Plugin", function() {
+ function plus() {
+
+ if ( ++count === expects ) {
+ start();
+ }
+ }
+
if ( /localhost/.test( location.hostname ) ) {
// run tests on localhost
expect( expects );
- function plus() {
-
- if ( ++count === expects ) {
- start();
- }
- }
-
stop();
ok( "linkedin" in popped, "linkedin is a method of the popped instance" );
data: function( plugin, options ) {
return JSON.parse( '{"heading": "mustache - test 2/3"}' );
},
- target: "mustache-div",
+ target: "mustache-div"
});
// Template + Object literal
});
var video = document.getElementById( "video" );
- var two = six = ten = false;
+ var two, six, ten;
+ two = six = ten = false;
video.addEventListener( "timeupdate", function() {
start: 0,
end: 4,
type: "SATELLITE",
- target: :map2",
+ target: "map2",
lat: 40.943926,
lng: -78.968525,
zoom: 9
popped.subtitle({
start: 0,
end: 2,
- text: "this is the first subtitle of 2011",
+ text: "this is the first subtitle of 2011"
})
.subtitle({
start: 2,
end: 4,
- text: "this is the second subtitle of 2011",
+ text: "this is the second subtitle of 2011"
})
.subtitle({
start: 5,
end: 7,
- text: "this is the third subtitle of 2011",
+ text: "this is the third subtitle of 2011"
} )
.volume( 0 )
.play();
var popped = Popcorn( "#video" ),
expects = 17,
- upIds = downIds = [],
+ upIds = [],
+ downIds = [],
count = 0,
timelineUp = document.getElementById( "timeline-up" ),
timelineDown = document.getElementById( "timeline-down" );
plus();
var uid, did;
- while ( uid = upIds.pop() ) {
+ while ( uid === upIds.pop() ) {
popped.removeTrackEvent( uid );
}
- while ( did = downIds.pop() ) {
+ while ( did === downIds.pop() ) {
popped.removeTrackEvent( did );
}
ok( TWTR, "Twitter constructor exists" );
plus();
- } catch ( e ) {};
+ } catch ( e ) {}
popped.twitter({
start: 1,
end: 2,
title: "Steve Song",
src: "@stevesong",
- target: "twitterdiv",
+ target: "twitterdiv"
});
setupId = popped.getLastTrackEventId();
notEqual( theArticle.children[ 1 ].innerHTML, "", "wikidiv has some content" );
plus();
// subtract 1 from length for the '...' added in by the plugin
- equals( theArticle.children[ 1 ].innerHTML.split( " " ).length -1, 22, "wikidiv contains 22 words" )
+ equals( theArticle.children[ 1 ].innerHTML.split( " " ).length -1, 22, "wikidiv contains 22 words" );
plus();
});