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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/FileAPI/reading-data-section/filereader_readAsText.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <title>FileAPI Test: filereader_readAsText</title> 5 <title>FileAPI Test: filereader_readAsText</title>
6 <link rel="author" title="Intel" href="http://www.intel.com"> 6 <link rel="author" title="Intel" href="http://www.intel.com">
7 <link rel="help" href="http://dev.w3.org/2006/webapi/FileAPI/#readAsDataText "> 7 <link rel="help" href="http://dev.w3.org/2006/webapi/FileAPI/#readAsDataText ">
8 <script src="../../../../resources/testharness.js"></script> 8 <script src="../../../../resources/testharness.js"></script>
9 <script src="../../../../resources/testharnessreport.js"></script> 9 <script src="../../../../resources/testharnessreport.js"></script>
10 </head> 10 </head>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Decoded as utf-16 (little-endian), we get 0x4554 0x5453. 42 // Decoded as utf-16 (little-endian), we get 0x4554 0x5453.
43 assert_equals(reader_UTF16.readyState, reader.DONE, "The readyState"); 43 assert_equals(reader_UTF16.readyState, reader.DONE, "The readyState");
44 assert_equals(reader_UTF16.result, "\u4554\u5453", "The result is not TE ST"); 44 assert_equals(reader_UTF16.result, "\u4554\u5453", "The result is not TE ST");
45 this.done(); 45 this.done();
46 }); 46 });
47 reader_UTF16.readAsText(blob, "UTF-16"); 47 reader_UTF16.readAsText(blob, "UTF-16");
48 }, "readAsText should correctly read UTF-16."); 48 }, "readAsText should correctly read UTF-16.");
49 </script> 49 </script>
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698