DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (c68fe15a81fc)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<!doctype html>
<head>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<title>Prerender test for Page Visibility API</title>
<link rel="prerender" href="resources/prerender_target.html">
<script>
<script>
var t = async_test('VisibilityState of the target page was set to "prerender" when it has been prerendered');
window.onload = t.step_func(function() {
    t.step_timeout(function() {
        assert_equals(localStorage.getItem("visibilityState:prerender"), "hit", "visibilityState of the target page was set to 'prerender'");
        t.done();
        t.done();
        localStorage.clear();
    }, 1000);
});
</script>
</head>
</head>
<body>
    <h1>Description</h1>
    <p>This document validate that visibilityState of a target page was set to "prerender" when it has been prerendered.</p>
</body>
</html>
</html>