browser/devtools/webconsole/test/test-bug-632275-getters.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/webconsole/test/test-bug-632275-getters.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html lang="en">
     1.6 +  <head>
     1.7 +    <meta charset="utf-8">
     1.8 +    <title>Web Console test for bug 632275 - getters</title>
     1.9 +    <!-- Any copyright is dedicated to the Public Domain.
    1.10 +         http://creativecommons.org/publicdomain/zero/1.0/ -->
    1.11 +
    1.12 +<script type="application/javascript;version=1.8">
    1.13 +  document.foobar = {
    1.14 +    _val: 5,
    1.15 +    get val() { return ++this._val; }
    1.16 +  };
    1.17 +</script>
    1.18 +
    1.19 +  </head>
    1.20 +  <body>
    1.21 +    <p>Web Console test for bug 632275 - getters.</p>
    1.22 +  </body>
    1.23 +</html>

mercurial