зеркало из https://github.com/mozilla/gecko-dev.git
18 строки
452 B
HTML
18 строки
452 B
HTML
<!DOCTYPE html>
|
|
<script>
|
|
var context = "Window";
|
|
function ok(a, msg) {
|
|
parent.postMessage({type: "status", status: !!a,
|
|
msg: a + ": " + msg, context}, "*");
|
|
}
|
|
|
|
function is(a, b, msg) {
|
|
parent.postMessage({type: "status", status: a === b,
|
|
msg: a + " === " + b + ": " + msg, context}, "*");
|
|
}
|
|
|
|
function testDone() {
|
|
parent.postMessage({type: "finish", context}, "*");
|
|
}
|
|
</script>
|