summaryrefslogtreecommitdiff
path: root/Tools/TestWebKitAPI/Tests/mac/WindowlessWebViewWithMedia.html
blob: db064fb05392a27d4937838227421ed4e634c916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<html>
<body>
    We want to make sure the page sends its onload event even if it has media in a windowless WebView.
    <audio src="invalid.mp3"></audio>
    <script>
    var didTriggerLoad = false;
    window.addEventListener('load', function(event) {
        didTriggerLoad = true;
    }, false);
    </script>
</body>
</html>