Author: jmorliaguet
Date: Fri Feb 17 15:16:10 2006
New Revision: 2399

Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_test.html
Log:

- test updates



Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_test.html
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_test.html   
    (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/unit/cpsskins_test.html   
    Fri Feb 17 15:16:10 2006
@@ -469,7 +469,8 @@
     testSubscribe: function() { with(this) {
       var info;
       var handler1 = function(event) {
-        info = {'subscriber': event.subscriber.id, 'target': event.target.id};
+        info = {'subscriber': event.subscriber.id,
+                'publisher': event.publisher.id};
       }
 
       var obj1 = new Object({'id': 'object1'});
@@ -477,27 +478,29 @@
       var context2 = new Object({'id': 'context2'});
 
       CPSSkins.registerEventHandler('event1', obj1, handler1);
-      CPSSkins.subscribe('event1', {'subscriber': obj1, 'target': context1});
+      CPSSkins.subscribe('event1', {'subscriber': obj1, 'publisher': 
context1});
 
       assertEqual($H(info).inspect(), $H({}).inspect());
 
       var info = null;
-      CPSSkins.notify('event2', {"target": context1});
+      CPSSkins.notify('event2', {'publisher': context1});
       assertEqual($H(info).inspect(), $H({}).inspect());
 
       var info = null;
-      CPSSkins.notify('event1', {"target": context1});
+      CPSSkins.notify('event1', {'publisher': context1});
       assertEqual($H(info).inspect(),
-                  $H({"subscriber":"object1","target":"context1"}).inspect());
+                  $H({'subscriber': 'object1',
+                      'publisher': 'context1'}).inspect());
 
       var info = null;
-      CPSSkins.notify('event1', {"target": context2});
+      CPSSkins.notify('event1', {'publisher': context2});
       assertEqual($H(info).inspect(), $H({}).inspect());
 
-      CPSSkins.unsubscribe('event1', {'subscriber': obj1, 'target': context1});
+      CPSSkins.unsubscribe('event1', {'subscriber': obj1,
+                                      'publisher': context1});
 
       var info = null;
-      CPSSkins.notify('event1', {"target": context1});
+      CPSSkins.notify('event1', {'publisher': context1});
       assertEqual($H(info).inspect(), $H({}).inspect());
 
     }},
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to