summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/js/resources/js-test-post.js
blob: 88882c5be3b865ec4e832a1667975ed45db50bde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function finishJSTest()
{
    shouldBeTrue("successfullyParsed");
    debug('<br /><span class="pass">TEST COMPLETE</span>');
    if (window.jsTestIsAsync && window.layoutTestController)
        layoutTestController.notifyDone();
}

if (window.jsTestIsAsync) {
    if (window.layoutTestController)
        layoutTestController.waitUntilDone();
} else
    finishJSTest();