Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / navigation / document-location-mouseover.html
blob8813e5516e0688f862479238b68410022e15298d
1 <html>
2 <head>
3 <script src="resources/document-location.js"></script>
4 <script>
5 function runTest() {
6 // Simulate mousing over the Navigate button.
7 var button = document.getElementById("navigate");
8 var x = button.offsetLeft + button.offsetWidth / 2;
9 var y = button.offsetTop + button.offsetHeight / 2;
10 eventSender.mouseMoveTo(x, y);
11 eventSender.mouseMoveTo(0, 0);
13 </script>
14 </head>
15 <body onload="start()">
16 This tests that assigning to document.location from a button click adds a
17 back/forward item.
18 <button onmouseover="setLocation()" id="navigate">Navigate</button>
19 </body>
20 </html>