| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Interfaces</title> | 2 <title>Interfaces</title> |
| 3 <script src="../../../resources/testharness.js"></script> | 3 <script src="/resources/testharness.js"></script> |
| 4 <script src="../../../resources/testharnessreport.js"></script> | 4 <script src="/resources/testharnessreport.js"></script> |
| 5 <div id="log"></div> | 5 <div id="log"></div> |
| 6 <script> | 6 <script> |
| 7 function testInterfaceDeletable(iface) { | 7 function testInterfaceDeletable(iface) { |
| 8 test(function() { | 8 test(function() { |
| 9 assert_true(!!window[iface], "Interface should exist.") | 9 assert_true(!!window[iface], "Interface should exist.") |
| 10 assert_true(delete window[iface], "The delete operator should return true.") | 10 assert_true(delete window[iface], "The delete operator should return true.") |
| 11 assert_equals(window[iface], undefined, "Interface should be gone.") | 11 assert_equals(window[iface], undefined, "Interface should be gone.") |
| 12 }, "Should be able to delete " + iface + ".") | 12 }, "Should be able to delete " + iface + ".") |
| 13 } | 13 } |
| 14 var interfaces = [ | 14 var interfaces = [ |
| (...skipping 20 matching lines...) Expand all Loading... |
| 35 ]; | 35 ]; |
| 36 test(function() { | 36 test(function() { |
| 37 for (var p in window) { | 37 for (var p in window) { |
| 38 interfaces.forEach(function(i) { | 38 interfaces.forEach(function(i) { |
| 39 assert_not_equals(p, i) | 39 assert_not_equals(p, i) |
| 40 }) | 40 }) |
| 41 } | 41 } |
| 42 }, "Interface objects properties should not be Enumerable") | 42 }, "Interface objects properties should not be Enumerable") |
| 43 interfaces.forEach(testInterfaceDeletable); | 43 interfaces.forEach(testInterfaceDeletable); |
| 44 </script> | 44 </script> |
| OLD | NEW |