Author: ornicar2
Date: 2010-01-18 15:07:08 +0100 (Mon, 18 Jan 2010)
New Revision: 26815

Modified:
   plugins/dmFlowPlayerPlugin/test/unit/dmWidgetContentFlowPlayerTest.php
Log:
[Diem][dmFlowPlayerPlugin]  updated unit tests

Modified: plugins/dmFlowPlayerPlugin/test/unit/dmWidgetContentFlowPlayerTest.php
===================================================================
--- plugins/dmFlowPlayerPlugin/test/unit/dmWidgetContentFlowPlayerTest.php      
2010-01-18 13:47:38 UTC (rev 26814)
+++ plugins/dmFlowPlayerPlugin/test/unit/dmWidgetContentFlowPlayerTest.php      
2010-01-18 14:07:08 UTC (rev 26815)
@@ -270,21 +270,9 @@
 
 $widgetRenderer = 
$helper->get('service_container')->getService('widget_renderer');
 
-// gather widget assets to load asynchronously
-$stylesheets = array();
-foreach($widgetRenderer->getStylesheets() as $stylesheet)
-{
-  $stylesheets[] = $helper->get('helper')->getStylesheetWebPath($stylesheet);
-}
-$js = '';
-foreach($widgetRenderer->getJavascripts() as $javascript)
-{
-  $js .= 
file_get_contents($helper->get('helper')->getJavascriptFullPath($javascript)).';';
-}
+$t->is($widgetRenderer->getStylesheets(), array(), 'This widget view requires 
additional stylesheet');
+$t->is($widgetRenderer->getJavascripts(), 
array('dmFlowPlayerPlugin.flowPlayer', 'dmFlowPlayerPlugin.widgetView'), 'This 
widget requires 2 additional javascripts');
 
-$t->is($stylesheets, array(), 'This widget view requires additional 
stylesheet');
-$t->is($js, '', 'This widget view does not require additional javascript');
-
 $t->ok($widgetRenderer, 'The widget has been rendered');
 
 $widgetView = $widgetRenderer->getWidgetView();

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.


Reply via email to