| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 description("Ensure correct behavior of createImageBitmap for invalid inputs."); | 8 description("Ensure correct behavior of createImageBitmap for invalid inputs."); |
| 9 window.jsTestIsAsync = true; | 9 window.jsTestIsAsync = true; |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 xhr.open("GET", 'resources/pattern.png'); | 75 xhr.open("GET", 'resources/pattern.png'); |
| 76 xhr.responseType = 'blob'; | 76 xhr.responseType = 'blob'; |
| 77 xhr.send(); | 77 xhr.send(); |
| 78 xhr.onload = function() { | 78 xhr.onload = function() { |
| 79 blob = xhr.response; | 79 blob = xhr.response; |
| 80 blobLoaded = true; | 80 blobLoaded = true; |
| 81 loaded(); | 81 loaded(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 var xhr2 = new XMLHttpRequest(); | 84 var xhr2 = new XMLHttpRequest(); |
| 85 xhr2.open("GET", 'resources/repaint.js'); | 85 xhr2.open("GET", 'resources/shadow-offset.js'); |
| 86 xhr2.responseType = 'blob'; | 86 xhr2.responseType = 'blob'; |
| 87 xhr2.send(); | 87 xhr2.send(); |
| 88 xhr2.onload = function() { | 88 xhr2.onload = function() { |
| 89 invalidBlob = xhr2.response; | 89 invalidBlob = xhr2.response; |
| 90 invalidBlobLoaded = true; | 90 invalidBlobLoaded = true; |
| 91 loaded(); | 91 loaded(); |
| 92 } | 92 } |
| 93 | 93 |
| 94 var finishIfDoneCallsRemaining = 2; | 94 var finishIfDoneCallsRemaining = 2; |
| 95 function finishIfDone() { | 95 function finishIfDone() { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 finishIfDone(); | 147 finishIfDone(); |
| 148 }, function() { | 148 }, function() { |
| 149 invalidCanvasTestPassed = true; | 149 invalidCanvasTestPassed = true; |
| 150 finishIfDone(); | 150 finishIfDone(); |
| 151 }); | 151 }); |
| 152 } | 152 } |
| 153 } | 153 } |
| 154 </script> | 154 </script> |
| 155 </body> | 155 </body> |
| 156 </html> | 156 </html> |
| OLD | NEW |