Usage of allWorkletGlobalScopesSet() in WorkletGlobalScope is not thread-safe
[WebKit-https.git] / LayoutTests / displaylists / resources / dump-target-display-list.js
1 if (window.testRunner)
2     testRunner.dumpAsText();
3
4 var targetDiv;
5 function doTest()
6 {
7     document.body.offsetWidth;
8     targetDiv = document.getElementById('target');
9     if (window.internals)
10         internals.setElementUsesDisplayListDrawing(targetDiv, true);
11     
12     if (window.testRunner)
13         testRunner.displayAndTrackRepaints();
14
15     if (window.internals) {
16         var displayList = internals.displayListForElement(targetDiv);
17         document.getElementById('output').textContent = displayList;
18     }
19 }
20 window.addEventListener('load', doTest, false);