blob: ccf845881bb4f2ba55a13bc60f33d0c400ca12f2 [file] [log] [blame]
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="placeholder.js"></script>
<script>
if (window.internals)
internals.settings.setLazyImageLoadingEnabled(true);
var t = async_test("Verify that iframe's with scripting off disallow lazy image loading.");
function finish() {
assert_equals(is_image_fully_loaded(document.getElementById('sandboxedframe').contentWindow.document.getElementById('below_viewport')), true);
t.done();
}
</script>
<body>
<div style="height:10000px;"></div>
<iframe id="sandboxedframe" style="visibility:hidden;display:none" sandbox="allow-same-origin" src="resources/lazy-load-in-iframe.html" onload="finish()"></iframe>
<div id="log"></div>
</body>