dom/workers/test/test_resolveWorker-assignment.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 <!--
     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 = 17; // resolve through assignment
    15       var desc = Object.getOwnPropertyDescriptor(window, "Worker");
    16       ok(typeof desc === "object" && desc !== null, "Worker property must exist");
    18       is(desc.value, 17, "Overwrite didn't work correctly");
    19       is(desc.enumerable, false,
    20          "Initial descriptor was non-enumerable, and [[Put]] changes the " +
    21          "property value but not its enumerability");
    22       is(desc.configurable, true,
    23          "Initial descriptor was configurable, and [[Put]] changes the " +
    24          "property value but not its configurability");
    25       is(desc.writable, true,
    26          "Initial descriptor was writable, and [[Put]] changes the " +
    27          "property value but not its writability");
    28     </script>
    29   </body>
    30 </html>

mercurial