Update the test result of resize-observer/eventloop.html.
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / encoding / replacement-encodings.html
1 <!DOCTYPE html>
2 <title>Encoding API: replacement encoding</title>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <script src="resources/encodings.js"></script>
6 <script src="resources/decoding-helpers.js"></script>
7 <script>
8
9 const replacement_labels = [];
10 encodings_table.forEach(section => {
11   section.encodings
12          .filter(encoding => encoding.name === 'replacement')
13          .forEach(encoding => {
14            encoding.labels.forEach(label => { replacement_labels.push(label); })
15          });
16 });
17
18 replacement_labels.forEach(label => {
19   decode_test(
20     label,
21     '%41%42%43%61%62%63%31%32%33%A0',
22     'U+FFFD',
23     `${label} - non-empty input decodes to one replacement character.`);
24
25   decode_test(
26     label,
27     '',
28     '', `${label} - empty input decodes to empty output.`);
29 });
30 </script>