summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/media/gc-while-delaying-the-load-event.html
blob: d4c4b7c2b83a3d174a062194f7a6c68e15eb6cc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<title>GC while the delaying-the-load-event flag is set</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
async_test(function(t)
{
    var a = document.createElement("audio");
    a.foo = "bar";
    a.appendChild(document.createElement("source"));
    a.onloadstart = t.step_func(function(e)
    {
        assert_equals(e.target.foo, "bar");
        t.done();
    });
    a = null;
    gc();
});
</script>