aboutsummaryrefslogtreecommitdiffstats
path: root/tools/node_modules/expresso/deps/jscoverage/tests/javascript.expected/javascript-with.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/expresso/deps/jscoverage/tests/javascript.expected/javascript-with.js')
-rw-r--r--tools/node_modules/expresso/deps/jscoverage/tests/javascript.expected/javascript-with.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/node_modules/expresso/deps/jscoverage/tests/javascript.expected/javascript-with.js b/tools/node_modules/expresso/deps/jscoverage/tests/javascript.expected/javascript-with.js
new file mode 100644
index 0000000..52aea68
--- /dev/null
+++ b/tools/node_modules/expresso/deps/jscoverage/tests/javascript.expected/javascript-with.js
@@ -0,0 +1,30 @@
+/* automatically generated by JSCoverage - do not edit */
+if (! top._$jscoverage) {
+ top._$jscoverage = {};
+}
+var _$jscoverage = top._$jscoverage;
+if (! _$jscoverage['javascript-with.js']) {
+ _$jscoverage['javascript-with.js'] = [];
+ _$jscoverage['javascript-with.js'][1] = 0;
+ _$jscoverage['javascript-with.js'][2] = 0;
+ _$jscoverage['javascript-with.js'][4] = 0;
+ _$jscoverage['javascript-with.js'][5] = 0;
+ _$jscoverage['javascript-with.js'][8] = 0;
+ _$jscoverage['javascript-with.js'][9] = 0;
+}
+_$jscoverage['javascript-with.js'][1]++;
+function f() {
+}
+_$jscoverage['javascript-with.js'][2]++;
+var x = {};
+_$jscoverage['javascript-with.js'][4]++;
+with (x) {
+ _$jscoverage['javascript-with.js'][5]++;
+ f();
+}
+_$jscoverage['javascript-with.js'][8]++;
+with (x) {
+ _$jscoverage['javascript-with.js'][9]++;
+ f();
+}
+_$jscoverage['javascript-with.js'].source = ["<span class=\"k\">function</span> f<span class=\"k\">()</span> <span class=\"k\">{}</span>","<span class=\"k\">var</span> x <span class=\"k\">=</span> <span class=\"k\">{}</span><span class=\"k\">;</span>","","<span class=\"k\">with</span> <span class=\"k\">(</span>x<span class=\"k\">)</span> <span class=\"k\">{</span>"," f<span class=\"k\">();</span>","<span class=\"k\">}</span>","","<span class=\"k\">with</span> <span class=\"k\">(</span>x<span class=\"k\">)</span>"," f<span class=\"k\">();</span>"];