Show
Ignore:
Timestamp:
01/10/10 11:25:33 (3 years ago)
Author:
lopnor
Message:

pass config to DoCoMoGUID

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/HTML-MobileJp-Filter/trunk/t/01_docomo.t

    r14628 r36385  
    5858</body> 
    5959</html> 
     60=== DoCoMoCSS and DoCoMoGUID with config 
     61--- user_agent 
     62DoCoMo/1.0/D501i 
     63--- config 
     64filters: 
     65  - module: DoCoMoCSS 
     66    config: 
     67      base_dir: t/ 
     68  - module: DoCoMoGUID 
     69    config: 
     70      abs: 1 
     71--- input 
     72<html> 
     73<head> 
     74<link rel="stylesheet" href="/01_docomo/foo.css" /> 
     75</head> 
     76<body> 
     77<a href="http://hoge/foo">foo</a> 
     78<div class="title">bar</div> 
     79</body> 
     80</html> 
     81--- expected 
     82<?xml version="1.0" encoding="UTF-8"?> 
     83<!DOCTYPE html PUBLIC "-//i-mode group (ja)//DTD XHTML i-XHTML(Locale/Ver.=ja/1.0) 1.0//EN" "i-xhtml_4ja_10.dtd"> 
     84<html> 
     85<head> 
     86<link rel="stylesheet" href="/01_docomo/foo.css"/> 
     87</head> 
     88<body style="background:orange"> 
     89<a href="http://hoge/foo?guid=ON">foo</a> 
     90<div class="title" style="color:red">bar</div> 
     91</body> 
     92</html>