OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
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 <div id="description"></div> | 7 <div id="description"></div> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 description("Test URL methods with null arguments."); | 10 description("Test URL methods with null and undefined arguments."); |
11 | 11 |
12 shouldBe("URL.createObjectURL(null)", "null"); | 12 shouldThrow("URL.createObjectURL(null)"); |
13 evalAndLog("URL.revokeObjectURL(null)"); | 13 shouldThrow("URL.createObjectURL(undefined)"); |
| 14 shouldNotThrow("URL.revokeObjectURL(null)"); |
| 15 shouldNotThrow("URL.revokeObjectURL(undefined)"); |
14 var successfullyParsed = true; | 16 var successfullyParsed = true; |
15 | 17 |
16 </script> | 18 </script> |
17 </body> | 19 </body> |
18 </html> | 20 </html> |
OLD | NEW |