Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / navigation / no-referrer-same-window.html
1 <html><body>
2 This tests the basic functionality of the "noreferrer" link relation on anchor tags. The link below should not
3 send an http referrer, and the resulting window should have its opener attribute set to null.  The values
4 of the referrer and window.opener should be empty below.
5 <br/>
6 <a id="link" href="resources/no-referrer-same-window-helper.php" rel="noreferrer">Start no referrer test</a>
7 <script>
8     window.name = "consoleWindow";
9     if (window.testRunner) {
10         testRunner.dumpAsText();
11         testRunner.waitUntilDone();
12     }
13
14     var target = document.getElementById("link");
15     eventSender.mouseMoveTo(target.offsetLeft + 2, target.offsetTop + 2);
16     eventSender.mouseDown();
17     eventSender.mouseUp();
18     
19 function log(msg)
20 {
21     var line = document.createElement('div');
22     line.appendChild(document.createTextNode(msg));
23     document.getElementById('console').appendChild(line);
24 }
25 </script>
26 <div id="console"></div>
27 </body></html>