MCPcopy Create free account
hub / github.com/GNOME/gjs / jsUnitFixTop

Function jsUnitFixTop

modules/script/jsUnit.js:19–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18//hack for NS62 bug
19function jsUnitFixTop() {
20 var tempTop = top;
21 if (!tempTop) {
22 tempTop = window;
23 while (typeof tempTop.parent !== 'undefined') {
24 tempTop = tempTop.parent;
25 if (tempTop.top && tempTop.top.jsUnitTestSuite) {
26 tempTop = tempTop.top;
27 break;
28 }
29 }
30 }
31 top = tempTop;
32}
33
34jsUnitFixTop();
35

Callers 1

jsUnit.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected