| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
| 3 <title>Interface objects</title> | 3 <title>Interface objects</title> |
| 4 <script src="../../../../resources/testharness.js"></script> | 4 <script src="/resources/testharness.js"></script> |
| 5 <script src="../../../../resources/testharnessreport.js"></script> | 5 <script src="/resources/testharnessreport.js"></script> |
| 6 <script> | 6 <script> |
| 7 test(function () { | 7 test(function () { |
| 8 assert_equals(typeof window.Blob, "function") | 8 assert_equals(typeof window.Blob, "function") |
| 9 delete window.Blob; | 9 delete window.Blob; |
| 10 assert_equals(window.Blob, undefined); | 10 assert_equals(window.Blob, undefined); |
| 11 }, "An interface object deleted after it has been accessed is undefined"); | 11 }, "An interface object deleted after it has been accessed is undefined"); |
| 12 | 12 |
| 13 test(function () { | 13 test(function () { |
| 14 delete window.File; | 14 delete window.File; |
| 15 assert_equals(window.File, undefined); | 15 assert_equals(window.File, undefined); |
| 16 }, "An interface object deleted before it has been defined is undefined"); | 16 }, "An interface object deleted before it has been defined is undefined"); |
| 17 | 17 |
| 18 test(function () { | 18 test(function () { |
| 19 delete window.ImageData; | 19 delete window.ImageData; |
| 20 assert_equals(Object.getOwnPropertyDescriptor(window, "ImageData"), undefine
d); | 20 assert_equals(Object.getOwnPropertyDescriptor(window, "ImageData"), undefine
d); |
| 21 delete window.ImageData; | 21 delete window.ImageData; |
| 22 assert_equals(Object.getOwnPropertyDescriptor(window, "ImageData"), undefine
d); | 22 assert_equals(Object.getOwnPropertyDescriptor(window, "ImageData"), undefine
d); |
| 23 }, "Interface objects deleted multiple times stay deleted"); | 23 }, "Interface objects deleted multiple times stay deleted"); |
| 24 | 24 |
| 25 test(function () { | 25 test(function () { |
| 26 assert_equals(window["abc\udc88"], undefined); | 26 assert_equals(window["abc\udc88"], undefined); |
| 27 }, "Fancy property names don't break the resolve hook on Window"); | 27 }, "Fancy property names don't break the resolve hook on Window"); |
| 28 </script> | 28 </script> |
| OLD | NEW |