dom/workers/test/test_resolveWorker.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!--
     2   Any copyright is dedicated to the Public Domain.
     3   http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <!DOCTYPE html>
     6 <html>
     7   <head>
     8     <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     9     <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    10   </head>
    11   <body>
    12     <script type="application/javascript">
    13       window.Worker; // resolve not through assignment
    14       Worker = 17;
    16       var desc = Object.getOwnPropertyDescriptor(window, "Worker");
    17       ok(typeof desc === "object" && desc !== null, "Worker property must exist");
    19       is(desc.value, 17, "Overwrite didn't work correctly");
    20       is(desc.enumerable, false,
    21          "Initial descriptor was non-enumerable, and [[Put]] changes the " +
    22          "property value but not its enumerability");
    23       is(desc.configurable, true,
    24          "Initial descriptor was configurable, and [[Put]] changes the " +
    25          "property value but not its configurability");
    26       is(desc.writable, true,
    27          "Initial descriptor was writable, and [[Put]] changes the " +
    28          "property value but not its writability");
    29     </script>
    30   </body>
    31 </html>

mercurial