2 <title>Harness Test: Special characters in test results shouldn't break harness and tools.
</title>
3 <script src=
"../resources/testharness.js"></script>
4 <script src=
"../resources/testharnessreport.js"></script>
7 var special_characters
= ['\\', '\r\n'];
8 for (var i
= 0; i
< 32; i
++) {
9 special_characters
.push(String
.fromCharCode(i
));
12 special_characters
.forEach(function(c
) {
15 }, 'Unescaped ' + c
+ ' in test name.');
19 }, 'Escaped ' + format_value(c
) + ' in test name.');
22 throw new Error('Expected Error: ' + c
+ ' character.');
23 }, 'Unescaped ' + format_value(c
) + ' in test message.');
26 throw new Error('Expected Error: ' + format_value(c
) + ' character.');
27 }, 'Escaped ' + format_value(c
) + ' in test message.');