зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
e3983f7486
Коммит
65202d3851
|
@ -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 = "";
|
||||
|
|
Загрузка…
Ссылка в новой задаче