<commit_before><!DOCTYPE HTML>
<html>
<head>
<title>DoubleClick Player test</title>
<script type="text/javascript" src="../../../tests/qunit/qunit-bootstrap.js"></script>
<script type="text/javascript" src="../../../mwEmbedLoader.php?debug=true"></script>
<script type="text/javascript">	
function jsKalturaPlayerTest( videoId ){
	// Name this module
	module( "DoubleClick Player" );

	var $iframe = $( '#' + videoId + '_ifp' ).contents();
	var iframeContext = window.frames['kaltura_player_ifp'];
	
	test( "Iframe in DOM", function() {
		ok( $( '#' + videoId + '_ifp' ).length , 'iframe found' );
		equal( typeof iframeContext, 'object', "iframe JavaScript context available" );
	});

	asyncTest("Iframe layout elements", function(){
		kalturaQunitWaitForPlayer(function(){
			ok( $iframe.find('.play-btn-large').length, ".play-btn-large found" );
			ok( $iframe.find('.play-btn').length, ".play-btn found" );
			start();
		});
	});
	
	asyncTest("Iframe config", function(){
		equal( iframeContext.mw.getConfig('Kaltura.IframeRewrite' ), false, "Kaltura.IframeRewrite" ); 
		equal( iframeContext.mw.getConfig('Mw.LogPrepend'), 'iframe:', "Mw.LogPrepend ");
		// Test page context config: 
		equal( iframeContext.mw.getConfig('EmbedPlayer.EnableIpadHTMLControls'), true, 'EmbedPlayer.EnableIpadHTMLControls' );
		start();
	});

}
</script>
<!-- qunit-kaltura must come after qunit-bootstrap.js and after mwEmbedLoader.php and after any jsCallbackReady stuff-->
<script type="text/javascript" src="../../KalturaSupport/tests/resources/qunit-kaltura-bootstrap.js"></script>
</head>
<body>
<h2> DoubleClick Player test </h2>
Should display: ( view source for uiconf )
<ul>
<li>overlay at 5 seconds</li>
<li>midroll at 20 seconds.</li>
<li>postroll on clip done</li>
</ul>
</br>
<a href="?forceMobileHTML5"> Force Mobile HTML5</a> for testing with desktop chrome and safari.
<br />
<object id="kaltura_player_1316310055" 
	name="kaltura_player_1316310055" 
	type="application/x-shockwave-flash" 
	allowFullScreen="true" 
	allowNetworking="all" 
	allowScriptAccess="always" 
	height="330" width="400" 
	bgcolor="#000000" 
	xmlns:dc="http://purl.org/dc/terms/" 
	xmlns:media="http://search.yahoo.com/searchmonkey/media/" 
	rel="media:video" 
	resource="http://www.kaltura.com/index.php/kwidget/cache_st/1231231243/wid/_243342/uiconf_id/5774681/entry_id/0_uka1msg4" 
	data="http://www.kaltura.com/index.php/kwidget/cache_st/1231231243/wid/_243342/uiconf_id/5774681/entry_id/0_uka1msg4">
		<param name="allowFullScreen" value="true" />
		<param name="allowNetworking" value="all" />
		<param name="allowScriptAccess" value="always" />
		<param name="bgcolor" value="#000000" />
		<param name="flashVars" value="&" />
		<param name="movie" value="http://www.kaltura.com/index.php/kwidget/cache_st/1231231243/wid/_243342/uiconf_id/5774681/entry_id/0_uka1msg4" />
</object>

<!-- 
<commit_msg>fixed time listing of midroll for double click sample<commit_after><!DOCTYPE HTML>
<html>
<head>
<title>DoubleClick Player test</title>
<script type="text/javascript" src="../../../tests/qunit/qunit-bootstrap.js"></script>
<script type="text/javascript" src="../../../mwEmbedLoader.php?debug=true"></script>
<script type="text/javascript">	
function jsKalturaPlayerTest( videoId ){
	// Name this module
	module( "DoubleClick Player" );

	var $iframe = $( '#' + videoId + '_ifp' ).contents();
	var iframeContext = window.frames['kaltura_player_ifp'];
	
	test( "Iframe in DOM", function() {
		ok( $( '#' + videoId + '_ifp' ).length , 'iframe found' );
		equal( typeof iframeContext, 'object', "iframe JavaScript context available" );
	});

	asyncTest("Iframe layout elements", function(){
		kalturaQunitWaitForPlayer(function(){
			ok( $iframe.find('.play-btn-large').length, ".play-btn-large found" );
			ok( $iframe.find('.play-btn').length, ".play-btn found" );
			start();
		});
	});
	
	asyncTest("Iframe config", function(){
		equal( iframeContext.mw.getConfig('Kaltura.IframeRewrite' ), false, "Kaltura.IframeRewrite" ); 
		equal( iframeContext.mw.getConfig('Mw.LogPrepend'), 'iframe:', "Mw.LogPrepend ");
		// Test page context config: 
		equal( iframeContext.mw.getConfig('EmbedPlayer.EnableIpadHTMLControls'), true, 'EmbedPlayer.EnableIpadHTMLControls' );
		start();
	});

}
</script>
<!-- qunit-kaltura must come after qunit-bootstrap.js and after mwEmbedLoader.php and after any jsCallbackReady stuff-->
<script type="text/javascript" src="../../KalturaSupport/tests/resources/qunit-kaltura-bootstrap.js"></script>
</head>
<body>
<h2> DoubleClick Player test </h2>
Should display: ( view source for uiconf )
<ul>
<li>overlay at 5 seconds</li>
<li>midroll at 10 seconds.</li>
<li>postroll on clip done</li>
</ul>
</br>
<a href="?forceMobileHTML5"> Force Mobile HTML5</a> for testing with desktop chrome and safari.
<br />
<object id="kaltura_player_1316310055" 
	name="kaltura_player_1316310055" 
	type="application/x-shockwave-flash" 
	allowFullScreen="true" 
	allowNetworking="all" 
	allowScriptAccess="always" 
	height="330" width="400" 
	bgcolor="#000000" 
	xmlns:dc="http://purl.org/dc/terms/" 
	xmlns:media="http://search.yahoo.com/searchmonkey/media/" 
	rel="media:video" 
	resource="http://www.kaltura.com/index.php/kwidget/cache_st/1231231243/wid/_243342/uiconf_id/5774681/entry_id/0_uka1msg4" 
	data="http://www.kaltura.com/index.php/kwidget/cache_st/1231231243/wid/_243342/uiconf_id/5774681/entry_id/0_uka1msg4">
		<param name="allowFullScreen" value="true" />
		<param name="allowNetworking" value="all" />
		<param name="allowScriptAccess" value="always" />
		<param name="bgcolor" value="#000000" />
		<param name="flashVars" value="&" />
		<param name="movie" value="http://www.kaltura.com/index.php/kwidget/cache_st/1231231243/wid/_243342/uiconf_id/5774681/entry_id/0_uka1msg4" />
</object>

<!-- 

{'fraction_non_alphanumeric': 0.18090971743625087, 'fraction_numerical': 0.042384562370778776, 'mean_word_length': 5.142857142857143, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '927666', 'n_tokens_mistral': 2300, 'n_tokens_neox': 2012, 'n_words': 362}