Changeset 2371

Show
Ignore:
Timestamp:
10/04/07 17:42:22
Author:
miyagawa
Message:

look to see if textarea preserves newlines

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Web-Scraper/trunk/t/12_html.t

    r2356 r2371  
    88filters { 
    99    selector => 'chomp', 
    10     expected => 'chomp', 
     10    expected => [ 'chomp', 'newline' ], 
     11    html     => 'newline', 
    1112}; 
     13 
     14sub newline { 
     15    s/\\n\n/\n/g; 
     16} 
    1217 
    1318run { 
     
    6368--- expected 
    6469ใƒ†ใ‚นใƒˆ 
     70 
     71=== textarea 
     72--- html 
     73<textarea> 
     74foo 
     75bar 
     76\n 
     77baz 
     78</textarea> 
     79--- selector 
     80textarea 
     81--- expected 
     82\n 
     83foo 
     84bar 
     85\n 
     86baz