1 |
|
2 | if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
|
3 | if (! _$jscoverage['switch.js']) {
|
4 | _$jscoverage['switch.js'] = [];
|
5 | _$jscoverage['switch.js'][1] = 0;
|
6 | _$jscoverage['switch.js'][2] = 0;
|
7 | _$jscoverage['switch.js'][4] = 0;
|
8 | _$jscoverage['switch.js'][6] = 0;
|
9 | _$jscoverage['switch.js'][7] = 0;
|
10 | _$jscoverage['switch.js'][9] = 0;
|
11 | }
|
12 | _$jscoverage['switch.js'][1]++;
|
13 | list = [
|
14 | Math.random(),
|
15 | Math.random()
|
16 | ];
|
17 | _$jscoverage['switch.js'][2]++;
|
18 | switch (list[1]) {
|
19 | case 'hej':
|
20 | _$jscoverage['switch.js'][4]++;
|
21 | console.log(list);
|
22 | case 'san':
|
23 | _$jscoverage['switch.js'][6]++;
|
24 | console.log(list);
|
25 | _$jscoverage['switch.js'][7]++;
|
26 | console.log(list);
|
27 | default:
|
28 | _$jscoverage['switch.js'][9]++;
|
29 | console.log(list);
|
30 | }
|
31 | _$jscoverage['switch.js'].source = ["list = [Math.random(), Math.random()]","switch (list[1]) {"," case \"hej\":"," console.log(list)"," case \"san\":"," console.log(list)"," console.log(list)"," default:"," console.log(list)","}"]; |
\ | No newline at end of file |