зеркало из https://github.com/mozilla/pjs.git
JavaScript Test - revert bad checkin for bug 274152
This commit is contained in:
Родитель
44445a3f69
Коммит
f9d8311018
|
@ -5,40 +5,24 @@ TEST_JS = $(shell find . -name '*.js' -print)
|
|||
CURRDIR=$(shell pwd)
|
||||
JSDIR=$(shell basename $(CURRDIR))
|
||||
|
||||
all: menu.html 1.8.0-list.txt 1.8.1-list.txt menu-list.txt excluded-n.tests spidermonkey-extensions-n.tests
|
||||
all: menu.html js-list.txt e4x-list.txt lc-list.txt menu-list.txt
|
||||
|
||||
menu.html: menuhead.html menufoot.html Makefile excluded-n.tests $(TEST_JS)
|
||||
menu.html: menuhead.html menufoot.html Makefile spidermonkey-n.tests $(TEST_JS)
|
||||
perl mklistpage.pl > menubody.html
|
||||
cat menuhead.html menubody.html menufoot.html > menu.html
|
||||
|
||||
excluded-n.tests: spidermonkey-n.tests slow-n.tests
|
||||
cat $^ > $@
|
||||
|
||||
spidermonkey-extensions-n.tests: $(TEST_JS)
|
||||
find . -name '*.js' | grep -v shell.js | grep -v browser.js | grep '/extensions/' | sort > $@
|
||||
|
||||
menu-list.txt:
|
||||
echo "http://$(TEST_HTTP)/tests/mozilla.org/$(JSDIR)/menu.html" > menu-list.txt
|
||||
|
||||
1.8.0-list.txt: $(TEST_JS) excluded-n.tests
|
||||
./list.sh e4x ecma ecma_2 ecma_3 js1_1 js1_2 js1_3 js1_4 js1_5 js1_6 | sort > 1.8.0-list.txt
|
||||
js-list.txt: $(TEST_JS)
|
||||
./list.sh ecma ecma_2 ecma_3 js1_1 js1_2 js1_3 js1_4 js1_5 js1_6 js1_7 | sort > js-list.txt
|
||||
|
||||
1.8.1-list.txt: $(TEST_JS) 1.8.0-list.txt excluded-n.tests
|
||||
cat 1.8.0-list.txt > 1.8.1-list.txt
|
||||
./list.sh js1_7 | sort >> 1.8.1-list.txt
|
||||
e4x-list.txt: $(TEST_JS)
|
||||
./list.sh e4x | sort > e4x-list.txt
|
||||
|
||||
#e4x-list.txt: $(TEST_JS)
|
||||
# ./list.sh e4x | sort > e4x-list.txt
|
||||
|
||||
#lc2-list.txt: $(TEST_JS)
|
||||
# ./list.sh lc2 | sort > lc2-list.txt
|
||||
|
||||
ecma_3/RegExp/re_tests:
|
||||
curl -LsS -m 1800 "http://www.cpan.org/src/stable.tar.bz2" -o stable.tar.bz2
|
||||
tar -jxvf stable.tar.bz2
|
||||
cp `find . -maxdepth 1 -name 'perl-*'`/t/op/re_tests ecma_3/RegExp/re_tests
|
||||
rm -fR `find . -maxdepth 1 -name 'perl-*'` stable.tar.bz2
|
||||
lc-list.txt: $(TEST_JS)
|
||||
./list.sh lc2 lc3 | sort > lc-list.txt
|
||||
|
||||
clean:
|
||||
rm -f menubody.html menu.html *-list.txt excluded-n.tests
|
||||
rm -f menubody.html menu.html js-list.txt e4x-list.txt lc-list.txt menu-list.txt
|
||||
|
||||
|
|
|
@ -231,7 +231,7 @@ function JavaScriptOptions()
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
@ -288,7 +288,7 @@ function (optionName, optionValue)
|
|||
options(optionName);
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
|
|
@ -749,7 +749,7 @@ function JavaScriptOptions()
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
@ -806,7 +806,7 @@ function (optionName, optionValue)
|
|||
options(optionName);
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
|
|
@ -313,7 +313,7 @@ function JavaScriptOptions()
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
@ -370,7 +370,7 @@ function (optionName, optionValue)
|
|||
options(optionName);
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
|
|
@ -380,7 +380,7 @@ function JavaScriptOptions()
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
@ -437,7 +437,7 @@ function (optionName, optionValue)
|
|||
options(optionName);
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
|
|
@ -198,9 +198,10 @@ function version(v) {
|
|||
function gc()
|
||||
{
|
||||
// Thanks to igor.bukanov@gmail.com
|
||||
for (var i = 0; i != 100000; ++i)
|
||||
var tmp = Math.PI * 1e500, tmp2;
|
||||
for (var i = 0; i != 1 << 15; ++i)
|
||||
{
|
||||
var tmp = new Object();
|
||||
tmp2 = tmp * 1.5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -262,7 +262,7 @@ function JavaScriptOptions()
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
@ -319,7 +319,7 @@ function (optionName, optionValue)
|
|||
options(optionName);
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
|
|
@ -200,9 +200,10 @@ function version(v)
|
|||
function gc()
|
||||
{
|
||||
// Thanks to igor.bukanov@gmail.com
|
||||
for (var i = 0; i != 100000; ++i)
|
||||
var tmp = Math.PI * 1e500, tmp2;
|
||||
for (var i = 0; i != 1 << 15; ++i)
|
||||
{
|
||||
var tmp = new Object();
|
||||
tmp2 = tmp * 1.5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -236,7 +236,7 @@ function JavaScriptOptions()
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
@ -293,7 +293,7 @@ function (optionName, optionValue)
|
|||
options(optionName);
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
|
|
@ -198,9 +198,10 @@ function version(v)
|
|||
function gc()
|
||||
{
|
||||
// Thanks to igor.bukanov@gmail.com
|
||||
for (var i = 0; i != 100000; ++i)
|
||||
var tmp = Math.PI * 1e500, tmp2;
|
||||
for (var i = 0; i != 1 << 15; ++i)
|
||||
{
|
||||
var tmp = new Object();
|
||||
tmp2 = tmp * 1.5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -284,7 +284,7 @@ function JavaScriptOptions()
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
@ -341,7 +341,7 @@ function (optionName, optionValue)
|
|||
options(optionName);
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
|
|
@ -200,9 +200,10 @@ function version(v)
|
|||
function gc()
|
||||
{
|
||||
// Thanks to igor.bukanov@gmail.com
|
||||
for (var i = 0; i != 100000; ++i)
|
||||
var tmp = Math.PI * 1e500, tmp2;
|
||||
for (var i = 0; i != 1 << 15; ++i)
|
||||
{
|
||||
var tmp = new Object();
|
||||
tmp2 = tmp * 1.5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -285,7 +285,7 @@ function JavaScriptOptions()
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
@ -342,7 +342,7 @@ function (optionName, optionValue)
|
|||
options(optionName);
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* dbaron@fas.harvard.edu, pschwartau@netscape.com
|
||||
* L. David Baron <dbaron@dbaron.org>,
|
||||
* pschwartau@netscape.com
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
|
|
|
@ -182,9 +182,10 @@ reportFailure = function (msg, page, line)
|
|||
function gc()
|
||||
{
|
||||
// Thanks to igor.bukanov@gmail.com
|
||||
for (var i = 0; i != 100000; ++i)
|
||||
var tmp = Math.PI * 1e500, tmp2;
|
||||
for (var i = 0; i != 1 << 15; ++i)
|
||||
{
|
||||
var tmp = new Object();
|
||||
tmp2 = tmp * 1.5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -379,7 +379,7 @@ function JavaScriptOptions()
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
@ -436,7 +436,7 @@ function (optionName, optionValue)
|
|||
options(optionName);
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
|
|
@ -186,9 +186,10 @@ reportFailure = function (msg, page, line)
|
|||
function gc()
|
||||
{
|
||||
// Thanks to igor.bukanov@gmail.com
|
||||
for (var i = 0; i != 100000; ++i)
|
||||
var tmp = Math.PI * 1e500, tmp2;
|
||||
for (var i = 0; i != 1 << 15; ++i)
|
||||
{
|
||||
var tmp = new Object();
|
||||
tmp2 = tmp * 1.5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -380,7 +380,7 @@ function JavaScriptOptions()
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
@ -437,7 +437,7 @@ function (optionName, optionValue)
|
|||
options(optionName);
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
|
|
@ -186,9 +186,10 @@ reportFailure = function (msg, page, line)
|
|||
function gc()
|
||||
{
|
||||
// Thanks to igor.bukanov@gmail.com
|
||||
for (var i = 0; i != 100000; ++i)
|
||||
var tmp = Math.PI * 1e500, tmp2;
|
||||
for (var i = 0; i != 1 << 15; ++i)
|
||||
{
|
||||
var tmp = new Object();
|
||||
tmp2 = tmp * 1.5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -386,7 +386,7 @@ function JavaScriptOptions()
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
@ -443,7 +443,7 @@ function (optionName, optionValue)
|
|||
options(optionName);
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
|
|
@ -223,9 +223,10 @@ function version(v)
|
|||
function gc()
|
||||
{
|
||||
// Thanks to igor.bukanov@gmail.com
|
||||
for (var i = 0; i != 100000; ++i)
|
||||
var tmp = Math.PI * 1e500, tmp2;
|
||||
for (var i = 0; i != 1 << 15; ++i)
|
||||
{
|
||||
var tmp = new Object();
|
||||
tmp2 = tmp * 1.5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -308,7 +308,7 @@ function JavaScriptOptions()
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
@ -365,7 +365,7 @@ function (optionName, optionValue)
|
|||
options(optionName);
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
|
|
@ -215,9 +215,10 @@ function version(v)
|
|||
function gc()
|
||||
{
|
||||
// Thanks to igor.bukanov@gmail.com
|
||||
for (var i = 0; i != 100000; ++i)
|
||||
var tmp = Math.PI * 1e500, tmp2;
|
||||
for (var i = 0; i != 1 << 15; ++i)
|
||||
{
|
||||
var tmp = new Object();
|
||||
tmp2 = tmp * 1.5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -320,7 +320,7 @@ function JavaScriptOptions()
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
@ -377,7 +377,7 @@ function (optionName, optionValue)
|
|||
options(optionName);
|
||||
}
|
||||
}
|
||||
else if (typeof netscape != 'undefined' && 'security' in netscape)
|
||||
else if (typeof document != 'undefined')
|
||||
{
|
||||
// browser
|
||||
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
|
||||
|
|
|
@ -21,7 +21,7 @@ find $dirs \
|
|||
sed 's/^\.\///' | \
|
||||
while read jsfile
|
||||
do
|
||||
result=`grep $jsfile excluded-n.tests`
|
||||
result=`grep $jsfile spidermonkey-n.tests`
|
||||
if [[ -z $result ]]; then
|
||||
result=`echo $jsfile | sed 's/.*js\([0-9]\)_\([0-9]\).*/\1.\2/'`
|
||||
case $result in
|
||||
|
@ -32,6 +32,7 @@ find $dirs \
|
|||
1.5) version=";version=1.5";;
|
||||
1.6) version=";version=1.6";;
|
||||
1.7) version=";version=1.7";;
|
||||
*) version="";;
|
||||
esac
|
||||
|
||||
echo "http://${TEST_HTTP}/tests/mozilla.org/$jsdir/js-test-driver-standards.html?test=$jsfile;language=type;text/javascript$version"
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
# Rhino skip list
|
||||
# These tests are skipped by Rhino either because a bug with a regression
|
||||
# These tests are skipped by Rhino either because a bug with a regression
|
||||
# test has yet to be fixed, or because the test is not applicable to Rhino.
|
||||
#
|
||||
#
|
||||
# Unfixed bugs:
|
||||
#
|
||||
# bug 152646 Will not fix this in Rhino; too much of a corner case
|
||||
js1_5/Regress/regress-152646.js
|
||||
# bug 59861
|
||||
ecma/Date/15.9.4.3.js
|
||||
#See bug number 94506
|
||||
#See bug number 94506
|
||||
ecma_3/Function/regress-94506.js
|
||||
#Verify error for bad branch
|
||||
#Verify error for bad branch
|
||||
js1_5/Regress/regress-96526-001.js
|
||||
js1_5/Regress/regress-96526-002.js
|
||||
js1_5/Regress/regress-96526-003.js
|
||||
|
@ -60,7 +60,7 @@ js1_5/Regress/regress-80981.js
|
|||
js1_5/Regress/regress-89443.js
|
||||
js1_5/Regress/regress-90445.js
|
||||
js1_5/Regress/regress-111557.js
|
||||
#Rhino relies on JVM to throw StackOverflow exception and does not
|
||||
#Rhino relies on JVM to throw StackOverflow exception and does not
|
||||
#detect too deep recursion explicitly.
|
||||
js1_5/extensions/regress-192465.js
|
||||
#Skip these two; see http://bugzilla.mozilla.org/show_bug.cgi?id=81086
|
||||
|
@ -99,14 +99,14 @@ js1_5/Regress/regress-240317.js
|
|||
# watch is not implemented in Rhino
|
||||
#
|
||||
js1_5/Regress/regress-240577.js
|
||||
#
|
||||
#
|
||||
# import, export not implemented in rhino
|
||||
#
|
||||
js1_5/Regress/regress-249211.js
|
||||
#
|
||||
# Spidermonkey now defaults lineNumber and fileName
|
||||
# to the location and file where the exception occured.
|
||||
# exclude new test which assumes the defaults are
|
||||
# exclude new test which assumes the defaults are
|
||||
# set according to Spidermonkey.
|
||||
#
|
||||
js1_5/extensions/regress-50447-1.js
|
||||
|
|
|
@ -16,14 +16,13 @@ js1_5/Array/regress-350256-03.js
|
|||
js1_5/Function/regress-338121-01.js
|
||||
js1_5/Function/regress-338121-02.js
|
||||
js1_5/GC/regress-346794.js
|
||||
js1_5/Object/regress-335700.js
|
||||
js1_5/Regress/regress-271716-n.js
|
||||
js1_5/Regress/regress-312588.js
|
||||
js1_5/extensions/regress-335700.js
|
||||
js1_5/extensions/regress-336409-1.js
|
||||
js1_5/extensions/regress-336409-2.js
|
||||
js1_5/extensions/regress-336410-1.js
|
||||
js1_5/extensions/regress-336410-2.js
|
||||
js1_5/extensions/regress-342960.js
|
||||
js1_5/extensions/regress-342960.js
|
||||
js1_5/extensions/regress-345967.js
|
||||
js1_5/extensions/regress-350531.js
|
||||
js1_7/iterable/regress-341815.js
|
||||
|
|
|
@ -13,7 +13,7 @@ js1_5/Regress/regress-119719.js
|
|||
#
|
||||
# Spidermonkey now defaults lineNumber and fileName
|
||||
# to the location and file where the exception occured.
|
||||
# exclude original test which assumes the defaults are
|
||||
# exclude original test which assumes the defaults are
|
||||
# 0 and ''
|
||||
#
|
||||
js1_5/extensions/regress-50447.js
|
||||
|
@ -32,7 +32,7 @@ js1_5/Regress/regress-173067.js
|
|||
#
|
||||
ecma_3/Statements/regress-121744.js
|
||||
#
|
||||
# remove version dependent tests
|
||||
# remove version dependent tests
|
||||
# see bug 325921
|
||||
#
|
||||
js1_2/Array/array_split_1.js
|
||||
|
@ -84,9 +84,4 @@ ecma_2/String/replace-001.js
|
|||
#
|
||||
# pre ecma warnings are doa
|
||||
#
|
||||
js1_5/Regress/regress-106244.js
|
||||
#
|
||||
# do not ignore unicode formatting chars/trunk - bug 274152
|
||||
#
|
||||
ecma_3/Unicode/uc-001.js
|
||||
|
||||
js1_5/Regress/regerss-106244.js
|
||||
|
|
Загрузка…
Ссылка в новой задаче