4 <div id=
"console"></div>
7 if ("__worldID" in window
)
8 message
= "FAIL: __worldID in normal world is " + __worldID
+ ".";
10 message
= "PASS: __worldID is undefined in normal world.";
11 var pre
= document
.createElement("pre");
12 pre
.appendChild(document
.createTextNode(message
));
13 document
.getElementById("console").appendChild(pre
);
15 if (window
.testRunner
) {
16 testRunner
.dumpAsText();
18 testRunner
.evaluateScriptInIsolatedWorld(
22 if (!("__worldID" in window)) \
23 message = "FAIL: __worldID is undefined in isolated world ' + worldID
+ '."; \
24 else if (__worldID != ' + worldID
+ ') \
25 message = "FAIL: __worldID in isolated world is " + __worldID + " but should be ' + worldID
+ '."; \
27 message = "PASS: __worldID in isolated world should be ' + worldID
+ ' and is."; \
28 var pre = document.createElement("pre"); \
29 pre.appendChild(document.createTextNode(message)); \
30 document.getElementById("console").appendChild(pre); \