dom/tests/mochitest/crypto/test_no_legacy.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4   <title>Test lack of legacy window.crypto features when
     5          MOZ_DISABLE_CRYPTOLEGACY is set</title>
     6   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>        
     7   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     8 </head>
     9 <body>
    10 <script class="testbody" type="text/javascript">
    12 ok("crypto" in window, "crypto in window");
    13 ok(!("version" in window.crypto), "version not in window.crypto");
    14 ok(!("enableSmartCardEvents" in window.crypto),
    15    "enableSmartCardEvents not in window.crypto");
    16 ok(!("generateCRMFRequest" in window.crypto),
    17    "generateCRMFRequest not in window.crypto");
    18 ok(!("importUserCertificates" in window.crypto),
    19    "importUserCertificates not in window.crypto");
    20 ok(!("signText" in window.crypto), "signText not in window.crypto");
    22 </script>
    23 </body></html>

mercurial