// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 import QtQuick import QtTest import QtWebEngine TestWebEngineView { id: webEngineView width: 200 height: 400 SignalSpy { id: urlChangedSpy target: webEngineView signalName: "urlChanged" } TestCase { id: testCase name: "WebEngineViewLoadHtml" when: windowShown function test_loadProgressAfterLoadHtml() { var loadProgressChangedCount = 0; var handleLoadProgressChanged = function() { loadProgressChangedCount++; } webEngineView.loadProgressChanged.connect(handleLoadProgressChanged); webEngineView.loadHtml("