Annotation of parser3/tests/247.html, revision 1.3

1.1       misha       1: @main[]
                      2: # checking for UTF-8 auto detection (BOM code)
                      3: ^1251[]
                      4: $response:content-type[
                      5:        $.value[text/html]
                      6:        $.charset[$response:charset]
                      7: ]
                      8: 
                      9: ^load[file in UTF-8 with BOM. charset isn't specified;247_utf8_bom.txt]
                     10: ^load[file in UTF-8 with BOM. UTF-8 charset is specified;247_utf8_bom.txt;UTF-8]
1.2       moko       11: ^load[file in UTF-8 with BOM. WINDOWS-1251 charset is specified;247_utf8_bom.txt;WINDOWS-1251]
1.1       misha      12: #^load[247_utf8.txt]
                     13: ^load[file in UTF-8 w/o BOM. UTF-8 charset is specified;247_utf8.txt;UTF-8]
                     14: ^load[file in WINDOWS-1251. WINDOWS-1251 charset is specified;247_windows1251.txt;WINDOWS-1251]
1.3     ! moko       15: ^load[file in UTF-16LE with BOM. charset isn't specified;247_utf16le_bom.txt]
        !            16: ^load[file in UTF-16LE with BOM. UTF-8 charset is specified;247_utf16le_bom.txt;UTF-8]
        !            17: ^load[file in UTF-16LE with BOM. WINDOWS-1251 charset is specified;247_utf16le_bom.txt;WINDOWS-1251]
        !            18: ^load[file in UTF-16BE with BOM, ends with 04 1A (not Ctrl-Z). charset isn't specified;247_utf16be_bom.txt]
        !            19: ^load[file in UTF-16BE with BOM. UTF-16 charset is specified (BOM decides);247_utf16be_bom.txt;UTF-16]
        !            20: ^load[file in UTF-16LE w/o BOM. UTF-16 charset is specified;247_utf16le.txt;UTF-16]
        !            21: ^load[file in WINDOWS-1251 with DOS ending (CR LF Ctrl-Z). WINDOWS-1251 charset is specified;247_dos.txt;WINDOWS-1251]
1.1       misha      22: 
                     23: @load[sTitle;sFile;sCharset][f]
                     24: <h3>$sTitle</h3>
                     25: $f[^file::load[text;$sFile;
                     26:        ^if(def $sCharset){
                     27:                $.charset[$sCharset]
                     28:        }
                     29: ]]
                     30: 
                     31: $f.text<br />

E-mail: