aboutsummaryrefslogtreecommitdiffstats
path: root/tools/node_modules/expresso/deps/jscoverage/tests/javascript/javascript-while.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/expresso/deps/jscoverage/tests/javascript/javascript-while.js')
-rw-r--r--tools/node_modules/expresso/deps/jscoverage/tests/javascript/javascript-while.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/node_modules/expresso/deps/jscoverage/tests/javascript/javascript-while.js b/tools/node_modules/expresso/deps/jscoverage/tests/javascript/javascript-while.js
new file mode 100644
index 0000000..f1ec6b5
--- /dev/null
+++ b/tools/node_modules/expresso/deps/jscoverage/tests/javascript/javascript-while.js
@@ -0,0 +1,35 @@
+while (x) {
+ x();
+}
+
+while (x) {
+ ;
+}
+
+while (x)
+ x();
+
+while (x)
+ ;
+
+while (x) {
+ if (x) {
+ continue;
+ }
+}
+
+label:
+while (x) {
+ if (x) {
+ continue label;
+ }
+}
+
+label2: {
+ f();
+ while (x) {
+ if (x) {
+ break label2;
+ }
+ }
+}