test/integration/polemic-festival.htm
branchpopcorn-port
changeset 810 85a278e12495
parent 805 48cd2b83c7c5
--- a/test/integration/polemic-festival.htm	Tue Feb 14 17:14:57 2012 +0100
+++ b/test/integration/polemic-festival.htm	Tue Feb 14 17:15:13 2012 +0100
@@ -30,6 +30,13 @@
             height:2100,              
             container:'LdtPlayer',
             css:'../../src/css/LdtPlayer.css',
+			default_options : {
+			 metadata:{
+                          format:'cinelab',
+                          src:json_url,
+                          type:'json'}
+            },
+			
             widgets: [
             {type: "StackGraphWidget",
                 tags : [
@@ -63,38 +70,14 @@
                }],
             },            
             {type: "AnnotationsListWidget",
-             container: "AnnotationsListContainer",             
-                         metadata:{
-                          format:'cinelab',
-                          src:json_url,
-                          type:'json'}
-                        },
+             container: "AnnotationsListContainer"},                                   
             {type: "SparklineWidget",
              width: 640, /* required for this widget */
-             height: 50,            
-                         metadata:{
-                          format:'cinelab',
-                          src:json_url,
-                          type:'json'}
-                        },
-            {type: "SliderWidget",
-                         metadata:{
-                          format:'cinelab',
-                          src:json_url,
-                          type:'json'}
-                        },        
-            {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
-             mode: "radio",
-             metadata:{
-              format:'cinelab',
-              src:json_url,
-              type:'json'}
-            },
-            {type: "SegmentsWidget",
-             metadata:{
-              format:'cinelab',
-              src:json_url,
-              type:'json'},
+             height: 50,
+			},
+            {type: "SliderWidget"},        
+            {type: "PlayerWidget"},
+            {type: "SegmentsWidget",             
              requires: [{
               type: "TooltipWidget",
               width: 180,
@@ -104,24 +87,11 @@
               }
              }],
             },                     
-            {type: "ArrowWidget",
-             metadata:{
-              format:'cinelab',
-              src:json_url,
-              type:'json'}
+            {type: "ArrowWidget",           
             },
-            {type: "TweetsWidget",
-                         metadata:{
-                          format:'cinelab',
-                          src:json_url,
-                          type:'json'}
-                        },
-            {type: "createAnnotationWidget",
-                         metadata:{
-                          format:'cinelab',
-                          src:json_url,
-                          type:'json'}
-                        }      
+            {type: "TweetsWidget",                       
+            },
+            {type: "createAnnotationWidget"}   
             ]
         },
       player:{