mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
21 lines
329 B
JavaScript
21 lines
329 B
JavaScript
load("test-common.js");
|
|
|
|
try {
|
|
var number = 0;
|
|
while (number < 9) {
|
|
number++;
|
|
}
|
|
assert(number === 9);
|
|
|
|
number = 0;
|
|
while(number < 3) number++;
|
|
assert(number === 3);
|
|
|
|
while (false) {
|
|
assertNotReached();
|
|
}
|
|
|
|
console.log("PASS");
|
|
} catch (e) {
|
|
console.log("FAIL: " + e);
|
|
}
|