<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head></head>
<body>
<p>Handshake request should contain random challenge values (in a worker process).</p>
<p></p>
<p>On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".</p>
<pre id=log>
</pre>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

function log(message)
{
    document.getElementById("log").innerHTML += message + "\n";
}

function endTest()
{
    log("TEST COMPLETE");
    if (window.testRunner)
        testRunner.notifyDone();
}
var worker = new Worker('resources/worker-handshake-challenge-randomness.js');
worker.onmessage = function (evt) {
    log(evt.data);
    if (evt.data == "DONE")
        endTest();
};
</script>
</body>
</html>
