OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description("Test instanceof functions and properties of URL and webkitURL."); | 8 description("Test instanceof functions and properties of URL and webkitURL."); |
9 | 9 |
10 var url = new URL('http://www.domain.com/'); | 10 var url = new URL('http://www.domain.com/'); |
11 | 11 |
12 shouldBeTrue("'createObjectURL' in URL"); | 12 shouldBeTrue("'createObjectURL' in URL"); |
13 shouldBeTrue("'revokeObjectURL' in URL"); | 13 shouldBeTrue("'revokeObjectURL' in URL"); |
14 | 14 |
15 shouldBeUndefined("url.createObjectURL"); | 15 shouldBeUndefined("url.createObjectURL"); |
16 shouldBeUndefined("url.revokeObjectURL"); | 16 shouldBeUndefined("url.revokeObjectURL"); |
17 | 17 |
18 shouldBeDefined("window.URL.createObjectURL"); | 18 shouldBeDefined("window.URL.createObjectURL"); |
19 shouldBeDefined("window.URL.revokeObjectURL"); | 19 shouldBeDefined("window.URL.revokeObjectURL"); |
20 | 20 |
21 // Following tests remain valid until we actually deprecate webkitURL. | 21 // Following tests remain valid until we actually deprecate webkitURL. |
22 shouldBeTrue("'createObjectURL' in webkitURL"); | 22 shouldBeTrue("'createObjectURL' in webkitURL"); |
23 shouldBeTrue("'revokeObjectURL' in webkitURL"); | 23 shouldBeTrue("'revokeObjectURL' in webkitURL"); |
24 shouldBeDefined("window.webkitURL.createObjectURL"); | 24 shouldBeDefined("window.webkitURL.createObjectURL"); |
25 shouldBeDefined("window.webkitURL.revokeObjectURL"); | 25 shouldBeDefined("window.webkitURL.revokeObjectURL"); |
26 | 26 |
27 </script> | 27 </script> |
28 <script src="../js/resources/js-test-post.js"></script> | |
29 </body> | 28 </body> |
30 </html> | 29 </html> |
OLD | NEW |