mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 11:01:40 +00:00
Adding another case to test.
This commit is contained in:
parent
9ae226ea81
commit
267f1d9202
@ -63,6 +63,34 @@ captureThis();
|
||||
|
||||
|
||||
|
||||
function tryThis()
|
||||
{
|
||||
var sum = 4 ;
|
||||
var i = 0;
|
||||
|
||||
while (sum < 10)
|
||||
{
|
||||
try
|
||||
{
|
||||
sum += 1;
|
||||
i += 1;
|
||||
}
|
||||
finally
|
||||
{
|
||||
print("In finally case of testThis() function");
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
status = inSection(2);
|
||||
actual = tryThis();
|
||||
expect = 6;
|
||||
captureThis();
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
test();
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user