bug 543839 - followup to skip the test if evalcx is not available. This should fix jsreftest orange CLOSED TREE

This commit is contained in:
Igor Bukanov 2010-02-05 19:14:08 +03:00
parent e9eee093c7
commit 209d509752

View File

@ -1,4 +1,4 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
@ -25,9 +25,15 @@ function test()
return 1;
}
test();
test();
test();
actual = evalcx("test()", this);
if (typeof evalcx == 'undefined')
{
print('Skipping. This test requires evalcx.');
actual = expect;
} else {
test();
test();
test();
actual = evalcx("test()", this);
}
reportCompare(expect, actual, summary);