Development

Changeset 18717

You must first sign up to be able to contribute.

Changeset 18717

Show
Ignore:
Timestamp:
05/27/09 22:20:04 (5 years ago)
Author:
heristop
Message:

sfXssSafePlugin updated unit tests to allow fullscreen on flash object

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfXssSafePlugin/trunk/test/unit/XssSafeTest.php

    r12721 r18717  
    11<?php 
    2   
     2 
     3/** 
     4 * Unit tests for Sf 1.0 
     5 */ 
     6 
    37// initializes testing framework 
    48$app = 'frontend'; 
    5 $sf_root = dirname(__FILE__).'/../../../..'; 
    6 require_once($sf_root.'/lib/symfony/vendor/lime/lime.php'); 
    7 include($sf_root.'/test/bootstrap/functional.php'); 
     9 
     10$sf_symfony_dir = '/var/www/symfony/1.0/'; 
     11 
     12require_once($sf_symfony_dir . '/lib/vendor/lime/lime.php'); 
     13include(dirname(__FILE__).'/../../../../test/bootstrap/functional.php'); 
    814 
    915// add filters to the default configuration 
     
    6369              'src*' => 'URI', 
    6470              'flashvars' => 'Text', 
    65               'allowscriptaccess' => 'Enum#never', 
     71              /*'allowscriptaccess' => 'Enum#never',*/ 
    6672              'enablejsurls' => 'Enum#false', 
    6773              'enablehref' => 'Enum#false', 
     74              'allowfullscreen' => 'Text', 
    6875              'bgcolor' => 'Text', 
    6976              'align' => 'Text', 
     
    382389    'input'   => '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="video_small" align="middle" height="370" width="417"> 
    383390<param name="allowScriptAccess" value="sameDomain"> 
    384 <param name="allowFullScreen" value="false"> 
     391<param name="allowFullScreen" value="true"> 
    385392<param name="FlashVars" value="video=http://www.toppeo.com/flv/demospectacle4473EE7B_8003221.flv"> 
    386393<param name="movie" value="/player/player.swf"><param name="quality" value="high"> 
    387394<param name="bgcolor" value="#000000"> 
    388 <embed src="/player/player.swf" flashvars="video=http://www.toppeo.com/flv/demospectacle4473EE7B_8003221.flv" quality="high" bgcolor="#000000" name="video_small" allowscriptaccess="sameDomain" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" height="370" width="417"> 
     395<embed src="/player/player.swf" flashvars="video=http://www.toppeo.com/flv/demospectacle4473EE7B_8003221.flv" quality="high" bgcolor="#000000" name="video_small" allowscriptaccess="sameDomain" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" height="370" width="417"> 
    389396</object>', 
    390     'output'  => '<embed src="/player/player.swf" flashvars="video=http://www.toppeo.com/flv/demospectacle4473EE7B_8003221.flv" quality="high" bgcolor="#000000" name="video_small" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" height="370" width="417" enablejsurls="false" enablehref="false" allowfullscreen="true" />', 
     397    'output'  => '<embed src="/player/player.swf" flashvars="video=http://www.toppeo.com/flv/demospectacle4473EE7B_8003221.flv" quality="high" bgcolor="#000000" name="video_small" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" height="370" width="417" allowscriptaccess="never" enablejsurls="false" enablehref="false" />', 
    391398    'filter'  => true 
    392399  )