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

Side by Side Diff: LayoutTests/fast/encoding/api/end-of-file.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../js/resources/js-test-pre.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <script> 3 <script>
4 4
5 description("Edge cases around non-fatal errors at EOF"); 5 description("Edge cases around non-fatal errors at EOF");
6 6
7 shouldThrow("new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xff ]))"); 7 shouldThrow("new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xff ]))");
8 8
9 debug(""); 9 debug("");
10 debug("Should not throw or hang:"); 10 debug("Should not throw or hang:");
11 evalAndLog("new TextDecoder('utf-8').decode(new Uint8Array([0xff]))"); 11 evalAndLog("new TextDecoder('utf-8').decode(new Uint8Array([0xff]))");
12 12
13 debug(""); 13 debug("");
14 shouldThrow("new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0 x00]))"); 14 shouldThrow("new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0 x00]))");
15 15
16 debug(""); 16 debug("");
17 debug("Should not throw or hang:"); 17 debug("Should not throw or hang:");
18 evalAndLog("new TextDecoder('utf-16le').decode(new Uint8Array([0x00]))"); 18 evalAndLog("new TextDecoder('utf-16le').decode(new Uint8Array([0x00]))");
19 19
20 debug(""); 20 debug("");
21 shouldThrow("new TextDecoder('utf-16be', {fatal: true}).decode(new Uint8Array([0 x00]))"); 21 shouldThrow("new TextDecoder('utf-16be', {fatal: true}).decode(new Uint8Array([0 x00]))");
22 22
23 debug(""); 23 debug("");
24 debug("Should not throw or hang:"); 24 debug("Should not throw or hang:");
25 evalAndLog("new TextDecoder('utf-16be').decode(new Uint8Array([0x00]));"); 25 evalAndLog("new TextDecoder('utf-16be').decode(new Uint8Array([0x00]));");
26 26
27 </script> 27 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/encoding/api/encoding-labels.html ('k') | LayoutTests/fast/encoding/api/latin-1.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698