summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/CSSStyleDeclaration/empty-string-property.html
blob: 5f28965fbe5b27fd229c5822f38b7495365d4791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<body>
    <p>
        Regression test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=15169">http://bugs.webkit.org/show_bug.cgi?id=15169</a>
        Freeze on Google maps using the "Dig a hole" tool</i>.
    </p>
    <p>
        This tests that the empty string property of a CSSStyleDeclaration is
        undefined and that retrieving it does not cause a hang.
    </p>
    <p id="result">FAIL (timed out or did not finish)</p>
    <script>
        if (window.layoutTestController)
            layoutTestController.dumpAsText();

        var type = typeof document.body.style[''];
        document.getElementById("result").innerText = type == "undefined" ? "PASS" : "FAIL (typeof document.body.style[''] is " + type + ")";
    </script>
</body>