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

Side by Side Diff: LayoutTests/fast/files/file-reader-fffd.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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script src="resources/read-common.js"></script> 5 <script src="resources/read-common.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <div id="description"></div> 8 <div id="description"></div>
9 <div id="console"></div> 9 <div id="console"></div>
10 <script> 10 <script>
11 description("Throw various bad bytes at file reader."); 11 description("Throw various bad bytes at file reader.");
12 12
13 array = evalAndLog("array = new Uint8Array([65, 245, 246, 247, 248, 249, 250, 25 1, 252, 253, 254, 255, 66]);"); 13 array = evalAndLog("array = new Uint8Array([65, 245, 246, 247, 248, 249, 250, 25 1, 252, 253, 254, 255, 66]);");
14 blob = evalAndLog("blob = new Blob([array]);"); 14 blob = evalAndLog("blob = new Blob([array]);");
15 reader = evalAndLog("reader = new FileReader();"); 15 reader = evalAndLog("reader = new FileReader();");
16 reader.onload = function(event) { 16 reader.onload = function(event) {
17 fileString = event.target.result; 17 fileString = event.target.result;
18 shouldBe("fileString", "'A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFF FD\uFFFD\uFFFDB'"); 18 shouldBe("fileString", "'A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFF FD\uFFFD\uFFFDB'");
19 finishJSTest(); 19 finishJSTest();
20 } 20 }
21 evalAndLog("reader.readAsText(blob);"); 21 evalAndLog("reader.readAsText(blob);");
22 22
23 var jsTestIsAsync = true; 23 var jsTestIsAsync = true;
24 24
25 </script> 25 </script>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/files/file-list-test.html ('k') | LayoutTests/fast/files/not-enough-arguments.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698