+ $content = readfile('t/tmp/out/writable/three.bin');
+ like($content, qr{An attachment});
+
+ $content = readfile('t/tmp/out/writable/blog/index.html');
+ like($content, qr{<input type="hidden" name="from" value="writable/blog"});
+ $content = run_cgi(method => 'get',
+ params => {
+ do => 'blog',
+ from => 'writable/blog',
+ subpage => '1',
+ title => 'hello',
+ },
+ );
+ like($content, qr{<option selected="selected" value="writable/blog/hello">writable/blog/hello</option>});
+
+ # Regression test for a bug in which we couldn't use an
+ # alphanumeric, but non-ASCII, root page.
+ $content = readfile('t/tmp/out/writable/中文/index.html');
+ like($content, qr{<input type="hidden" name="from" value="writable/中文"});
+ $content = run_cgi(method => 'get',
+ params => {
+ do => 'blog',
+ from => 'writable/中文',
+ subpage => '1',
+ title => 'hello',
+ },
+ );
+ like($content, qr{<option selected="selected" value="writable/中文/hello">writable/中文/hello</option>});
+ unlike($content, qr{Error: bad page name});