diff options
Diffstat (limited to 'Libraries/LibJS/Tests/loops/break-basic.js')
-rw-r--r-- | Libraries/LibJS/Tests/loops/break-basic.js | 30 |
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); -}); |