Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
1 function postMsg(message)
2 {
3 opener.postMessage(message, "http://mochi.test:8888");
4 }
6 window.addEventListener("message", onMessageReceived, false);
8 function onMessageReceived(event)
9 {
10 //alert("slave got event: "+event.data);
11 if (event.data == "step") {
12 if (doStep())
13 postMsg("perf");
15 return;
16 }
18 postMsg("Invalid message");
19 }
21 function ok(a, message)
22 {
23 if (!a)
24 postMsg("FAILURE: " + message);
25 else
26 postMsg(message);
27 }
29 function is(a, b, message)
30 {
31 if (a != b)
32 postMsg("FAILURE: " + message + ", expected "+b+" got "+a);
33 else
34 postMsg(message + ", expected "+b+" got "+a);
35 }
37 function finishTest()
38 {
39 sessionStorage.clear();
40 postMsg("done");
41 return false;
42 }