test/integration/allocine_dossier_independant/polemic-allocine.htm
branchpopcorn-port
changeset 830 18ca612e9ff0
parent 826 c7ae4f126e51
child 831 0dd21c298380
--- a/test/integration/allocine_dossier_independant/polemic-allocine.htm	Tue Mar 06 13:26:51 2012 +0100
+++ b/test/integration/allocine_dossier_independant/polemic-allocine.htm	Thu Mar 08 18:38:46 2012 +0100
@@ -25,11 +25,6 @@
     
     IriSP.user = {name: 'awesome_user_name', avatar: 'allocine_test/avatar.png'};
     IriSP.libdir = "js/libs/";
-    IriSP.widgetsDefaults["createAnnotationWidget"] = {};
-    IriSP.widgetsDefaults["createAnnotationWidget"].cinecast_version = true;
-    IriSP.widgetsDefaults["createAnnotationWidget"].polemic_mode = false;
-    IriSP.widgetsDefaults["createAnnotationWidget"].keywords = ["#allocine", "#vodkaster", "#universcine"];
-    IriSP.widgetsDefaults["createAnnotationWidget"].api_endpoint_template = "coucou/{{id}}.json";
     IriSP.defaults.user = function(){ return IriSP.user; };
     
     var config = {            
@@ -57,13 +52,17 @@
             },            
             {type: "AnnotationsListWidget",
              container: "AnnotationsListContainer"},
-            {type: "SliderWidget"},        
+            {type: "SliderWidget"},
             {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
              mode: "radio"},                     
             {type: "ArrowWidget"},
             {type: "TweetsWidget"},
-            {type: "createAnnotationWidget"},
-            {type: "TraceWidget"}
+            {type: "createAnnotationWidget",
+            polemic_mode: false,
+            cinecast_version: true,
+            keywords: ['#vodkaster', '#allocine', '#universcine'],
+            api_endpoint_template : "coucou/{{id}}.json",
+            api_method: 'POST'}
             ]
         },
       player:{