dom/workers/test/test_resolveWorker-assignment.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/workers/test/test_resolveWorker-assignment.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +<!--
     1.5 +  Any copyright is dedicated to the Public Domain.
     1.6 +  http://creativecommons.org/publicdomain/zero/1.0/
     1.7 +-->
     1.8 +<!DOCTYPE html>
     1.9 +<html>
    1.10 +  <head>
    1.11 +    <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.12 +    <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    1.13 +  </head>
    1.14 +  <body>
    1.15 +    <script type="application/javascript">
    1.16 +      window.Worker = 17; // resolve through assignment
    1.17 +
    1.18 +      var desc = Object.getOwnPropertyDescriptor(window, "Worker");
    1.19 +      ok(typeof desc === "object" && desc !== null, "Worker property must exist");
    1.20 +
    1.21 +      is(desc.value, 17, "Overwrite didn't work correctly");
    1.22 +      is(desc.enumerable, false,
    1.23 +         "Initial descriptor was non-enumerable, and [[Put]] changes the " +
    1.24 +         "property value but not its enumerability");
    1.25 +      is(desc.configurable, true,
    1.26 +         "Initial descriptor was configurable, and [[Put]] changes the " +
    1.27 +         "property value but not its configurability");
    1.28 +      is(desc.writable, true,
    1.29 +         "Initial descriptor was writable, and [[Put]] changes the " +
    1.30 +         "property value but not its writability");
    1.31 +    </script>
    1.32 +  </body>
    1.33 +</html>

mercurial