# HG changeset patch
# User hamidouk
# Date 1321287589 -3600
# Node ID 9eb584fdfbe4722deeeed0bbdb371d27ccda8ee3
# Parent 6008172a05927aa48f5d3408684ca38f1c0d3c23
added basic integration tests for require.js
diff -r 6008172a0592 -r 9eb584fdfbe4 test/integration/polemic - require.htm
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/integration/polemic - require.htm Mon Nov 14 17:19:49 2011 +0100
@@ -0,0 +1,33 @@
+
+
+
+
+Metadataplayer - Polemic tweet integration test
+
+
+
+
+
+
MetaDataPlayer
+ Polemic tweet integration test - using Popcorn, jwplayer and the
PolemicTweet widget.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff -r 6008172a0592 -r 9eb584fdfbe4 test/integration/polemic.require.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/integration/polemic.require.js Mon Nov 14 17:19:49 2011 +0100
@@ -0,0 +1,66 @@
+require([], function() {
+ $(document).ready(function() {
+ var config = {
+ gui:{
+ width:650,
+ height:2100,
+ container:'LdtPlayer',
+ css:'../../src/css/LdtPlayer.css',
+ widgets: [
+ {type: "PolemicWidget",
+ width: 640, /* required for this widget */
+ height: 50,
+ heightmax: 50,
+ metadata:{
+ format:'cinelab',
+ src:'polemic_fr.json',
+ type:'json'},
+
+ requires: [{
+ type: "TooltipWidget",
+ width: 180,
+ heigh: 160,
+ metadata : {
+ format:'cinelab',
+ src:'polemic.json',
+ type:'empty'
+ }
+ }],
+ },
+ {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
+ mode: "radio",
+ metadata:{
+ format:'cinelab',
+ src:'polemic_fr.json',
+ type:'json'}
+ },
+ {type: "SliderWidget",
+ metadata:{
+ format:'cinelab',
+ src:'polemic_fr.json',
+ type:'json'}
+ },
+
+ ]
+ },
+ player:{
+ type:'jwplayer', // player type
+ container: 'PopcornContainer',
+ // the rest is player-dependent configuration options.
+ file : "video/ldtplatform/museologie_inaugurale_20111018_flat.f4v",
+ streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/",
+ flashplayer : '../libs/player.swf',
+ live: true,
+ "controlbar.position" : "none",
+ height: 300,
+ width: 640,
+ provider: "rtmp"
+ }
+ };
+
+
+ var layoutManager = new IriSP.LayoutManager(config.gui.container);
+ var pop = IriSP.configurePopcorn(layoutManager, config.player);
+
+ var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); });
+});
\ No newline at end of file