Development

Changeset 6216

You must first sign up to be able to contribute.

Changeset 6216

Show
Ignore:
Timestamp:
11/30/07 01:12:51 (1 year ago)
Author:
dwhittle
Message:

dwhittle: fixed typos in widget form date, dateTime, time tests

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/unit/widget/sfWidgetFormDateTest.php

    r5950 r6216  
    5555// separator option 
    5656$t->diag('separator option'); 
    57 $t->is($css->matchSingle('#foo_day')->getNode()->nextSibling->firstChild->nodeValue, '/', '->render() renders 3 selects with a default / as a separator'); 
     57$t->is($css->matchSingle('#foo_day')->getNode()->nextSibling->nodeValue, '/', '->render() renders 3 selects with a default / as a separator'); 
    5858$t->is($css->matchSingle('#foo_month')->getNode()->nextSibling->nodeValue, '/', '->render() renders 3 selects with a default / as a separator'); 
    5959 
     
    6161$dom->loadHTML($w->render('foo', '2005-10-15')); 
    6262$css = new sfDomCssSelector($dom); 
    63 $t->is($css->matchSingle('#foo_day')->getNode()->nextSibling->firstChild->nodeValue, '#', '__construct() can change the default separator'); 
     63$t->is($css->matchSingle('#foo_day')->getNode()->nextSibling->nodeValue, '#', '__construct() can change the default separator'); 
    6464$t->is($css->matchSingle('#foo_month')->getNode()->nextSibling->nodeValue, '#', '__construct() can change the default separator'); 
    6565 
  • trunk/test/unit/widget/sfWidgetFormDateTimeTest.php

    r6197 r6216  
    6464// date and time separator option 
    6565$t->diag('date and time separator option'); 
    66 $t->is($css->matchSingle('#foo_day')->getNode()->nextSibling->firstChild->nodeValue, '/', '->render() renders 3 selects with a default / as a separator'); 
     66$t->is($css->matchSingle('#foo_day')->getNode()->nextSibling->nodeValue, '/', '->render() renders 3 selects with a default / as a separator'); 
    6767$t->is($css->matchSingle('#foo_month')->getNode()->nextSibling->nodeValue, '/', '->render() renders 3 selects with a default / as a separator'); 
    6868$t->is($css->matchSingle('#foo_hour')->getNode()->nextSibling->nodeValue, ':', '->render() renders 3 selects with a default : as a separator'); 
     
    7474$dom->loadHTML($w->render('foo', '2005-10-15 12:30:35')); 
    7575$css = new sfDomCssSelector($dom); 
    76 $t->is($css->matchSingle('#foo_day')->getNode()->nextSibling->firstChild->nodeValue, '-', '__construct() can change the default separator'); 
     76$t->is($css->matchSingle('#foo_day')->getNode()->nextSibling->nodeValue, '-', '__construct() can change the default separator'); 
    7777$t->is($css->matchSingle('#foo_month')->getNode()->nextSibling->nodeValue, '-', '__construct() can change the default separator'); 
    7878$t->is($css->matchSingle('#foo_hour')->getNode()->nextSibling->nodeValue, '!', '__construct() can change the default separator'); 
  • trunk/test/unit/widget/sfWidgetFormTimeTest.php

    r5950 r6216  
    5454// separator option 
    5555$t->diag('separator option'); 
    56 $t->is($css->matchSingle('#foo_hour')->getNode()->nextSibling->firstChild->nodeValue, ':', '->render() renders 3 selects with a default : as a separator'); 
     56$t->is($css->matchSingle('#foo_hour')->getNode()->nextSibling->nodeValue, ':', '->render() renders 3 selects with a default : as a separator'); 
    5757$t->is($css->matchSingle('#foo_minute')->getNode()->nextSibling->nodeValue, ':', '->render() renders 3 selects with a default : as a separator'); 
    5858 
     
    6060$dom->loadHTML($w->render('foo', '12:30:35')); 
    6161$css = new sfDomCssSelector($dom); 
    62 $t->is($css->matchSingle('#foo_hour')->getNode()->nextSibling->firstChild->nodeValue, '#', '__construct() can change the default separator'); 
     62$t->is($css->matchSingle('#foo_hour')->getNode()->nextSibling->nodeValue, '#', '__construct() can change the default separator'); 
    6363$t->is($css->matchSingle('#foo_minute')->getNode()->nextSibling->nodeValue, '#', '__construct() can change the default separator'); 
    6464