summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dom/navigator-userAgent.html
blob: 55a989b26f99d245f9815644501430648dbc04e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html>
<body>
<p>Tests for <a href="https://bugs.webkit.org/show_bug.cgi?id=47753">bug 47753</a>: 
REGRESSION(r69850) Loading apple.com/startpage in WebKit on Windows gets a bad request.</p>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    var userAgent = navigator.userAgent;

    document.write("User Agent should contain Mozilla: " + (userAgent.indexOf("Mozilla") >= 0) + "<br>");
    document.write("User Agent should contain AppleWebKit: " + (userAgent.indexOf("AppleWebKit") >= 0) + "<br>");
    document.write("User Agent should contain KHTML, like Gecko: " + (userAgent.indexOf("KHTML, like Gecko") >= 0));
</script>
</body>
</html>