test_temporaryFileBlob.html (899B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Test for Bug 1312410</title> 6 <script src="/tests/SimpleTest/SimpleTest.js"></script> 7 <script type="application/javascript" src="common_temporaryFileBlob.js"></script> 8 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 9 </head> 10 <body> 11 <script type="application/javascript"> 12 13 var tests = [ 14 // from common_temporaryFileBlob.js: 15 test_fetch_basic, 16 test_fetch_worker, 17 test_xhr_basic, 18 test_xhr_worker, 19 test_response_basic, 20 test_response_worker, 21 test_request_basic, 22 test_request_worker, 23 ]; 24 25 function next() { 26 if (!tests.length) { 27 SimpleTest.finish(); 28 return; 29 } 30 31 var test = tests.shift(); 32 test(); 33 } 34 35 SpecialPowers.pushPrefEnv({ "set" : [[ "dom.blob.memoryToTemporaryFile", 1 ]] }, 36 next); 37 SimpleTest.waitForExplicitFinish(); 38 39 </script> 40 </body> 41 </html>