2 postMessage({ type: "status", status: !!a, msg });
5 function is(a, b, msg) {
10 postMessage({ type: "finish" });
13 ok("connection" in navigator, "navigator.connection should exist");
15 ok(navigator.connection, "navigator.connection returns an object");
18 navigator.connection instanceof EventTarget,
19 "navigator.connection is a EventTarget object"
22 ok("type" in navigator.connection, "type should be a Connection attribute");
24 navigator.connection.type,
26 "By default connection.type equals to none"