| OLD | NEW |
| 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_readAsDataURL</title> | 5 <title>FileAPI Test: filereader_readAsDataURL</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/#readAsDataURL"
> | 7 <link rel="help" href="http://dev.w3.org/2006/webapi/FileAPI/#readAsDataURL"
> |
| 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> |
| 11 <body> | 11 <body> |
| 12 <div id="log"></div> | 12 <div id="log"></div> |
| 13 | 13 |
| 14 <script> | 14 <script> |
| 15 async_test(function() { | 15 async_test(function() { |
| 16 var blob = new Blob(["TEST"]); | 16 var blob = new Blob(["TEST"]); |
| 17 var reader = new FileReader(); | 17 var reader = new FileReader(); |
| 18 | 18 |
| 19 reader.onload = this.step_func(function(evt) { | 19 reader.onload = this.step_func(function(evt) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 reader.onprogress = this.step_func(function(evt) { | 31 reader.onprogress = this.step_func(function(evt) { |
| 32 assert_equals(reader.readyState, reader.LOADING); | 32 assert_equals(reader.readyState, reader.LOADING); |
| 33 }); | 33 }); |
| 34 | 34 |
| 35 reader.readAsDataURL(blob); | 35 reader.readAsDataURL(blob); |
| 36 }); | 36 }); |
| 37 </script> | 37 </script> |
| 38 </body> | 38 </body> |
| 39 </html> | 39 </html> |
| OLD | NEW |