summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/DeviceOrientation/resources/cached-page-1.html
blob: 2d76889c148221964cdbe7bc1410ca529581c6ae (plain)
1
2
3
4
5
6
7
8
9
10
11
<script>
function loadNext() {
    window.addEventListener('deviceorientation', function() {});
    if (window.opener.reportPageOneOnload() == 1) {
        window.opener.debug('resources/cached-page-1.html about to navigate to resources/cached-page-2.html')
        // Location changes need to happen outside the onload handler to generate history entries.
        setTimeout(function() { location.href = 'cached-page-2.html'; }, 0);
    }
}
</script>
<body onload="loadNext()"></body>