blob: eda84e9c4ebf7378445a61c7774a402eaa3cb90e [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
function testDisplayNone() {
var webview = document.createElement('webview');
webview.onloadstop = function() {
document.body.style.display = 'none';
// Give it some time (100ms) before making document.body visible again.
window.setTimeout(function() {
document.body.style.display = '';
webview.onloadstop = function() {
chrome.send('testResult', [true]);
};
webview.reload();
}, 100);
};
webview.onloadabort = function() {
chrome.send('testResult', [false]);
};
webview.src = 'about:blank';
document.body.appendChild(webview);
}