tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / fast / js / script-tests / break-ASI.js
1 description("Test to make sure we don't incorrectly insert a semi colon after a break statement");
2
3 shouldBeTrue("do { if(0) break\n;else true; } while (0)")
4 shouldBeTrue("do { if(0) continue\n;else true; } while (0)")
5 shouldBeTrue("(function(){if (0) return\n;else return true;})()")
6 shouldBeTrue("do { if(0) throw 'x';else true; } while (0)")
7 shouldThrow("if (0) throw\n'Shouldn\'t have parsed this.';")