summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/loops/break-basic.js
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-12 12:17:30 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-12 12:17:46 +0100
commit13d7c09125f8eec703d0a43a9a87fc8aa08f7319 (patch)
tree70fd643c429cea5c1f9362c2674511d17a53f3b5 /Libraries/LibJS/Tests/loops/break-basic.js
parentdc28c07fa526841e05e16161c74a6c23984f1dd5 (diff)
downloadserenity-13d7c09125f8eec703d0a43a9a87fc8aa08f7319.zip
Libraries: Move to Userland/Libraries/
Diffstat (limited to 'Libraries/LibJS/Tests/loops/break-basic.js')
-rw-r--r--Libraries/LibJS/Tests/loops/break-basic.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/Libraries/LibJS/Tests/loops/break-basic.js b/Libraries/LibJS/Tests/loops/break-basic.js
deleted file mode 100644
index 1bb141c618..0000000000
--- a/Libraries/LibJS/Tests/loops/break-basic.js
+++ /dev/null
@@ -1,30 +0,0 @@
-test("Toplevel break inside loop", () => {
- var j = 0;
- for (var i = 0; i < 9; ++i) {
- break;
- ++j;
- }
- expect(j).toBe(0);
-});
-
-test("break inside sub-blocks", () => {
- var j = 0;
- for (var i = 0; i < 9; ++i) {
- if (j == 4) {
- break;
- }
- ++j;
- }
- expect(j).toBe(4);
-});
-
-test("break inside curly sub-blocks", () => {
- var j = 0;
- for (var i = 0; i < 9; ++i) {
- if (j == 4) {
- break;
- }
- ++j;
- }
- expect(j).toBe(4);
-});