Changeset 1651
- Timestamp:
- 03/01/10 11:17:49 (5 months ago)
- Location:
- trunk/test/unit/ullTableTool
- Files:
-
- 2 modified
-
ullWidgetLinkTest.php (modified) (2 diffs)
-
ullWidgetTest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/ullTableTool/ullWidgetLinkTest.php
r636 r1651 6 6 //sfLoader::loadHelpers('I18N'); 7 7 8 $t = new lime_test( 4, new lime_output_color(), $configuration);8 $t = new lime_test(2, new lime_output_color(), $configuration); 9 9 sfContext::createInstance($configuration); 10 10 … … 16 16 $t->diag('->render()'); 17 17 $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üß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 <i>Italy</i></a></b>', 'escapes html entities'); -
trunk/test/unit/ullTableTool/ullWidgetTest.php
r1289 r1651 16 16 $t->diag('->render()'); 17 17 $t->is($w->render('foo', 'bar'), 'bar', 'renders the widget as HTML'); 18 $t->is($w->render('foo', 'SchÃŒÃel'), 'Schüßel', 'correctly escapes umlauts'); 19 $t->is($w->render('foo', 'Welcome to <i>Italy</i>'), 'Welcome to <i>Italy</i>', 'escapes html entities'); 18 // Do NOT encode html entities 19 // $t->is($w->render('foo', 'SchÃŒÃel'), 'Schüßel', 'correctly escapes umlauts'); 20 // $t->is($w->render('foo', 'Welcome to <i>Italy</i>'), 'Welcome to <i>Italy</i>', '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)'); 20 23 21 24 $t->diag('nowrap option');
