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

Side by Side Diff: LayoutTests/imported/web-platform-tests/FileAPI/reading-data-section/filereader_readystate.html

Issue 1236713002: Import FileAPI tests from web-platform-tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ugh, stupid baselines Created 5 years, 5 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 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>FileAPI Test: filereader_readystate</title>
6 <link rel="author" title="Intel" href="http://www.intel.com">
7 <link rel="help" href="http://dev.w3.org/2006/webapi/FileAPI/#blobreader-sta te">
8 <script src="../../../../resources/testharness.js"></script>
9 <script src="../../../../resources/testharnessreport.js"></script>
10 </head>
11 <body>
12 <div id="log"></div>
13
14 <script>
15 async_test(function() {
16 var blob = new Blob(["THIS TEST THE READYSTATE WHEN READ BLOB"]);
17 var reader = new FileReader();
18
19 assert_equals(reader.readyState, reader.EMPTY);
20
21 reader.onloadstart = this.step_func(function(evt) {
22 assert_equals(reader.readyState, reader.LOADING);
23 });
24
25 reader.onloadend = this.step_func(function(evt) {
26 assert_equals(reader.readyState, reader.DONE);
27 this.done();
28 });
29
30 reader.readAsDataURL(blob);
31 });
32 </script>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698