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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/FileAPI/reading-data-section/FileReader-multiple-reads.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 <title>FileReader: starting new reads while one is in progress</title> 2 <title>FileReader: starting new reads while one is in progress</title>
3 <link rel="author" title="Yinkan Li" href="mailto:liyinkan.biz@gmail.com"> 3 <link rel="author" title="Yinkan Li" href="mailto:liyinkan.biz@gmail.com">
4 <link rel="help" href="http://dev.w3.org/2006/webapi/FileAPI/#MultipleReads"> 4 <link rel="help" href="http://dev.w3.org/2006/webapi/FileAPI/#MultipleReads">
5 <script src="../../../../resources/testharness.js"></script> 5 <script src="../../../../resources/testharness.js"></script>
6 <script src="../../../../resources/testharnessreport.js"></script> 6 <script src="../../../../resources/testharnessreport.js"></script>
7 <div id="log"></div> 7 <div id="log"></div>
8 <script> 8 <script>
9 test(function() { 9 test(function() {
10 var blob_1 = new Blob(['TEST000000001']) 10 var blob_1 = new Blob(['TEST000000001'])
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 reader.onloadend = this.step_func_done(function() { 64 reader.onloadend = this.step_func_done(function() {
65 assert_equals(reader.readyState, FileReader.LOADING, 65 assert_equals(reader.readyState, FileReader.LOADING,
66 "readyState must be LOADING") 66 "readyState must be LOADING")
67 reader.readAsArrayBuffer(blob_2) 67 reader.readAsArrayBuffer(blob_2)
68 assert_equals(reader.readyState, FileReader.LOADING, "readyState Must be LOA DING") 68 assert_equals(reader.readyState, FileReader.LOADING, "readyState Must be LOA DING")
69 }); 69 });
70 reader.readAsArrayBuffer(blob_1) 70 reader.readAsArrayBuffer(blob_1)
71 assert_equals(reader.readyState, FileReader.LOADING, "readyState Must be LOADI NG") 71 assert_equals(reader.readyState, FileReader.LOADING, "readyState Must be LOADI NG")
72 }, 'test FileReader no InvalidStateError exception in onloadstart event for read AsArrayBuffer'); 72 }, 'test FileReader no InvalidStateError exception in onloadstart event for read AsArrayBuffer');
73 </script> 73 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698