OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
3 <title>Blob constructor</title> | 3 <title>Blob constructor</title> |
4 <link rel=help href="http://dev.w3.org/2006/webapi/FileAPI/#constructorBlob"> | 4 <link rel=help href="http://dev.w3.org/2006/webapi/FileAPI/#constructorBlob"> |
5 <link rel=help href="https://heycam.github.io/webidl/#es-union"> | 5 <link rel=help href="https://heycam.github.io/webidl/#es-union"> |
6 <link rel=help href="https://heycam.github.io/webidl/#es-dictionary"> | 6 <link rel=help href="https://heycam.github.io/webidl/#es-dictionary"> |
7 <link rel=help href="https://heycam.github.io/webidl/#es-sequence"> | 7 <link rel=help href="https://heycam.github.io/webidl/#es-sequence"> |
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 <script src="../support/Blob.js"></script> | 10 <script src="../support/Blob.js"></script> |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 ]; | 486 ]; |
487 | 487 |
488 type_tests.forEach(function(t) { | 488 type_tests.forEach(function(t) { |
489 test(function() { | 489 test(function() { |
490 var arr = new Uint8Array([t[0]]).buffer; | 490 var arr = new Uint8Array([t[0]]).buffer; |
491 var b = new Blob([arr], {type:t[1]}); | 491 var b = new Blob([arr], {type:t[1]}); |
492 assert_equals(b.type, t[2]); | 492 assert_equals(b.type, t[2]); |
493 }, "Blob with type " + format_value(t[1])); | 493 }, "Blob with type " + format_value(t[1])); |
494 }); | 494 }); |
495 </script> | 495 </script> |
OLD | NEW |