Changeset 1651

Show
Ignore:
Timestamp:
03/01/10 11:17:49 (5 months ago)
Author:
klemens
Message:

ullWidget does not escape anymore

Location:
trunk/test/unit/ullTableTool
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/ullTableTool/ullWidgetLinkTest.php

    r636 r1651  
    66//sfLoader::loadHelpers('I18N'); 
    77 
    8 $t = new lime_test(4, new lime_output_color(), $configuration); 
     8$t = new lime_test(2, new lime_output_color(), $configuration); 
    99sfContext::createInstance($configuration); 
    1010 
     
    1616$t->diag('->render()');   
    1717  $t->is($w->render('foo', 'bar', array('href' => '/ullWiki/show/id/4')), '<b><a href="/ullWiki/show/id/4">bar</a></b>', 'renders the widget as HTML'); 
    18   $t->is($w->render('foo', 'SchÌßel', array('href' => '/ullWiki/show/id/4')), '<b><a href="/ullWiki/show/id/4">Sch&uuml;&szlig;el</a></b>', 'correctly escapes umlauts'); 
    19   $t->is($w->render('foo', 'Welcome to <i>Italy</i>', array('href' => '/ullWiki/show/id/4')), '<b><a href="/ullWiki/show/id/4">Welcome to &lt;i&gt;Italy&lt;/i&gt;</a></b>', 'escapes html entities'); 
  • trunk/test/unit/ullTableTool/ullWidgetTest.php

    r1289 r1651  
    1616$t->diag('->render()');   
    1717  $t->is($w->render('foo', 'bar'), 'bar', 'renders the widget as HTML'); 
    18   $t->is($w->render('foo', 'SchÌßel'), 'Sch&uuml;&szlig;el', 'correctly escapes umlauts'); 
    19   $t->is($w->render('foo', 'Welcome to <i>Italy</i>'), 'Welcome to &lt;i&gt;Italy&lt;/i&gt;', 'escapes html entities'); 
     18  // Do NOT encode html entities 
     19//  $t->is($w->render('foo', 'SchÌßel'), 'Sch&uuml;&szlig;el', 'correctly escapes umlauts'); 
     20//  $t->is($w->render('foo', 'Welcome to <i>Italy</i>'), 'Welcome to &lt;i&gt;Italy&lt;/i&gt;', 'escapes html entities'); 
     21  $t->is($w->render('foo', 'SchÌßel'), 'SchÌßel', 'Does not html entity decode umlauts'); 
     22  $t->is($w->render('foo', 'Welcome to <i>Italy</i>'), 'Welcome to <i>Italy</i>', 'Does not html entity tags (e.g. "<" chars)');   
    2023 
    2124$t->diag('nowrap option');