tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

interface-object.html (1015B)


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