5 <p>This ensures that postMessage called in a callback does not crash.
9 <script src=
"../../../resources/run-after-layout-and-paint.js"></script>
11 if (window
.testRunner
) {
12 testRunner
.dumpAsText();
13 testRunner
.waitUntilDone();
18 window
.onerror = function() {
20 document
.querySelector('pre').textContent
= 'PASS';
21 if (window
.testRunner
)
22 testRunner
.notifyDone();
27 requestAnimationFrame(function() {
29 runAfterLayoutAndPaint(function() {
30 setTimeout(function() {
31 if (window
.testRunner
)
32 testRunner
.notifyDone();
36 setTimeout(postMessage
);