| 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_result</title> | 5 <title>FileAPI Test: filereader_result</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/#filedata-attr"
> | 7 <link rel="help" href="http://dev.w3.org/2006/webapi/FileAPI/#filedata-attr"
> |
| 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 var blob; | 15 var blob; |
| 16 setup(function() { | 16 setup(function() { |
| 17 blob = new Blob(["This test the result attribute"]); | 17 blob = new Blob(["This test the result attribute"]); |
| 18 }); | 18 }); |
| 19 | 19 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 50 readArrayBuffer.onloadend = this.step_func(function(evt) { | 50 readArrayBuffer.onloadend = this.step_func(function(evt) { |
| 51 assert_true(readArrayBuffer.result instanceof ArrayBuffer, "The result i
s instanceof ArrayBuffer"); | 51 assert_true(readArrayBuffer.result instanceof ArrayBuffer, "The result i
s instanceof ArrayBuffer"); |
| 52 this.done(); | 52 this.done(); |
| 53 }); | 53 }); |
| 54 | 54 |
| 55 readArrayBuffer.readAsArrayBuffer(blob); | 55 readArrayBuffer.readAsArrayBuffer(blob); |
| 56 }, "readAsArrayBuffer"); | 56 }, "readAsArrayBuffer"); |
| 57 </script> | 57 </script> |
| 58 </body> | 58 </body> |
| 59 </html> | 59 </html> |
| OLD | NEW |