var result = "LAYOUTATEST "; 
var result = "REFTEST "; 
function DocumentLoaded(){    var key = IFrameToKey();    switch (gState) {        case 1:            gPart1Key = key;            gState = 2;            gBrowser.loadURI(gURLs[0].url2.spec);            break;        case 2:            var equal = (key == gPart1Key);            var result = "LAYOUTATEST ";            var test_passed = (equal == gURLs[0].equal);            var result_expected = (test_passed == !gURLs[0].fail_expected);            if (!result_expected) {                result += "UNEXPECTED ";            }            if (test_passed) {                result += "PASS: ";            } else {                result += "FAIL: ";            }            if (!gURLs[0].equal) {                result += "(!=) ";            }            result += gURLs[0].url1.spec;            dump(result + "\n");            if (!test_passed && !result_expected) {                dump("LAYOUTATEST   IMAGE 1: " + gPart1Key + "\n");                dump("LAYOUTATEST   IMAGE 2: " + key + "\n");            }            gPart1Key = undefined;            gURLs.shift();            if (gURLs.length == 0)                DoneTests();            else                StartCurrentURI();            break;        default:            throw "Unexpected state."    }}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/7b198df002935bbb5c883ca7691ec65a6963c624/reftest.js/clean/layout/tools/reftest/reftest.js