Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: LayoutTests/fast/encoding/api/replacement-encoding.html

Issue 145973021: Implement "replacement" text encoding. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Replacement codec should emit U+FFFD Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script src="resources/shared.js"></script>
4 <script>
5
6 description("Verify replacement encoding behavior");
7
8 shouldThrow("new TextEncoder('replacement')");
9 shouldThrow("new TextDecoder('replacement')");
10
11 encodings_table.forEach(function(section) {
12 section.encodings.forEach(function(encoding) {
13 if (encoding.name !== "replacement")
14 return;
15
16 encoding.labels.forEach(function(label) {
17
18 debug("");
19 debug("label: " + label);
20 debug("");
21
22 shouldThrow("new TextEncoder('" + label + "')");
23 shouldThrow("new TextDecoder('" + label + "')");
24 });
25 });
26 });
27
28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698