Test for version() function's existence so that test does not fail in the browser, no bug, not part of the build

This commit is contained in:
bob%bclary.com 2005-11-24 04:51:38 +00:00
Родитель e3983f7486
Коммит 65202d3851
1 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

@ -101,7 +101,10 @@ function test()
function testA(ver)
{
// Set the version of JS to test -
version(ver);
if (typeof version == 'function')
{
version(ver);
}
// eval the test, so it compiles AFTER version() has executed -
var sTestScript = "";
@ -120,7 +123,10 @@ function testA(ver)
function testB(ver)
{
// Set the version of JS to test -
version(ver);
if (typeof version == 'function')
{
version(ver);
}
// eval the test, so it compiles AFTER version() has executed -
var sTestScript = "";
@ -141,7 +147,10 @@ function testB(ver)
function testC(ver)
{
// Set the version of JS to test -
version(ver);
if (typeof version == 'function')
{
version(ver);
}
// eval the test, so it compiles AFTER version() has executed -
var sTestScript = "";