blob: f49ce7826749223ddde688fd4ea72277e5f0d879 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
var g = newGlobal({ newCompartment: true });
var dbg = Debugger(g);
dbg.onEnterFrame = function () { };
var success = false;
try {
dbg.collectCoverageInfo = true;
success = true;
} catch (e) {
assertEq(/onEnterFrame and collectCoverageInfo cannot be active at the same time/.test(e.message), true);
}
assertEq(success, false);
dbg.onEnterFrame = undefined;
dbg.collectCoverageInfo = true;
try {
dbg.onEnterFrame = function () { };
success = true;
} catch (e) {
assertEq(/onEnterFrame and collectCoverageInfo cannot be active at the same time/.test(e.message), true);
}
assertEq(success, false);
dbg.collectCoverageInfo = false;
dbg.onEnterFrame = function () { };
|