summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/js/pic/get-set-proxy-object.html
blob: 1c4df1081c4f7b7b85411c995b2f69cd8192add3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<p>
This page tests cached get and set through a proxy object. If the test passes,
you'll see a PASS message below.
</p>

<pre id="console"></pre>

<script>
if (window.testRunner)
    testRunner.dumpAsText();

function log(s)
{
    if (this.document)
        document.getElementById("console").appendChild(document.createTextNode(s));
    else
        print(s);
}

window.x = 1;
for (var i = 0; i < 3; ++i)
    window.x += 1;
    
log("PASS: You didn't crash.\n");
</script>