diff --git a/mozilla/js/src/perlconnect/JS.xs b/mozilla/js/src/perlconnect/JS.xs index d4c1dd65974..352a5851eba 100644 --- a/mozilla/js/src/perlconnect/JS.xs +++ b/mozilla/js/src/perlconnect/JS.xs @@ -322,7 +322,7 @@ PCB_FreeContextItem(JSContext *cx) { /* later the object list should be bind to JS Context in this case is needed to update destructor PerlFreeObjectList -*/ + */ /* property getter and setter - cooperate with AUTOLOAD */ @@ -464,7 +464,7 @@ PCB_SetProperty(JSContext *cx, JSObject *obj, jsval name, jsval *rval) { /* helper functions */ /* JSClass pointer is disposed by JS engine during context cleanup _PH_ -*/ + */ void PCB_FinalizeStub(JSContext *cx, JSObject *obj) { } @@ -560,7 +560,7 @@ getContext() { return (JSContext *)SvIV((SV*)SvRV(perl_get_sv("JS::Context::this", FALSE))); } -*/ /* commented as obsolete by __PH__ */ + */ /* commented as obsolete by __PH__ */ /* The following packages are defined below: diff --git a/mozilla/js/tests/e4x/Expressions/11.1.1.js b/mozilla/js/tests/e4x/Expressions/11.1.1.js index 576822f5c8e..989e7d6d3a6 100644 --- a/mozilla/js/tests/e4x/Expressions/11.1.1.js +++ b/mozilla/js/tests/e4x/Expressions/11.1.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.1.2.js b/mozilla/js/tests/e4x/Expressions/11.1.2.js index a4e87857b3a..a0d47a3c928 100644 --- a/mozilla/js/tests/e4x/Expressions/11.1.2.js +++ b/mozilla/js/tests/e4x/Expressions/11.1.2.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.1.3.js b/mozilla/js/tests/e4x/Expressions/11.1.3.js index 3c5d1a6a9aa..f0c1b557b0d 100644 --- a/mozilla/js/tests/e4x/Expressions/11.1.3.js +++ b/mozilla/js/tests/e4x/Expressions/11.1.3.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.1.4.js b/mozilla/js/tests/e4x/Expressions/11.1.4.js index 76c35062aac..546d2b68b34 100644 --- a/mozilla/js/tests/e4x/Expressions/11.1.4.js +++ b/mozilla/js/tests/e4x/Expressions/11.1.4.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.1.5.js b/mozilla/js/tests/e4x/Expressions/11.1.5.js index 17b672cb29a..638c5f1a4ac 100644 --- a/mozilla/js/tests/e4x/Expressions/11.1.5.js +++ b/mozilla/js/tests/e4x/Expressions/11.1.5.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.2.1.js b/mozilla/js/tests/e4x/Expressions/11.2.1.js index 93cde4d1331..3552e28d19e 100644 --- a/mozilla/js/tests/e4x/Expressions/11.2.1.js +++ b/mozilla/js/tests/e4x/Expressions/11.2.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.2.2.js b/mozilla/js/tests/e4x/Expressions/11.2.2.js index 3eb78af5e54..5f5f1d1ec70 100644 --- a/mozilla/js/tests/e4x/Expressions/11.2.2.js +++ b/mozilla/js/tests/e4x/Expressions/11.2.2.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.2.3.js b/mozilla/js/tests/e4x/Expressions/11.2.3.js index e6115b1d1f5..069c11fdd47 100644 --- a/mozilla/js/tests/e4x/Expressions/11.2.3.js +++ b/mozilla/js/tests/e4x/Expressions/11.2.3.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.2.4.js b/mozilla/js/tests/e4x/Expressions/11.2.4.js index 9c32f68ca8f..8e24f398413 100644 --- a/mozilla/js/tests/e4x/Expressions/11.2.4.js +++ b/mozilla/js/tests/e4x/Expressions/11.2.4.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.3.1.js b/mozilla/js/tests/e4x/Expressions/11.3.1.js index 2eacf147fc8..6f80f3bd420 100644 --- a/mozilla/js/tests/e4x/Expressions/11.3.1.js +++ b/mozilla/js/tests/e4x/Expressions/11.3.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.3.2.js b/mozilla/js/tests/e4x/Expressions/11.3.2.js index 872a22f90ad..87df10b8d21 100644 --- a/mozilla/js/tests/e4x/Expressions/11.3.2.js +++ b/mozilla/js/tests/e4x/Expressions/11.3.2.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.4.1.js b/mozilla/js/tests/e4x/Expressions/11.4.1.js index a9493ed68d4..3c476953964 100644 --- a/mozilla/js/tests/e4x/Expressions/11.4.1.js +++ b/mozilla/js/tests/e4x/Expressions/11.4.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.5.1.js b/mozilla/js/tests/e4x/Expressions/11.5.1.js index 25f42d991c8..a72b627fe6a 100644 --- a/mozilla/js/tests/e4x/Expressions/11.5.1.js +++ b/mozilla/js/tests/e4x/Expressions/11.5.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.6.1.js b/mozilla/js/tests/e4x/Expressions/11.6.1.js index 1838449aeb2..9241f190079 100644 --- a/mozilla/js/tests/e4x/Expressions/11.6.1.js +++ b/mozilla/js/tests/e4x/Expressions/11.6.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.6.2.js b/mozilla/js/tests/e4x/Expressions/11.6.2.js index 37de53ad754..cca0a1749af 100644 --- a/mozilla/js/tests/e4x/Expressions/11.6.2.js +++ b/mozilla/js/tests/e4x/Expressions/11.6.2.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Expressions/11.6.3.js b/mozilla/js/tests/e4x/Expressions/11.6.3.js index 4fdefb66656..ce21bbe544c 100644 --- a/mozilla/js/tests/e4x/Expressions/11.6.3.js +++ b/mozilla/js/tests/e4x/Expressions/11.6.3.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Global/13.1.2.1.js b/mozilla/js/tests/e4x/Global/13.1.2.1.js index cf7e836995e..91c604cd083 100644 --- a/mozilla/js/tests/e4x/Global/13.1.2.1.js +++ b/mozilla/js/tests/e4x/Global/13.1.2.1.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov + * Igor Bukanov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Namespace/13.2.1.js b/mozilla/js/tests/e4x/Namespace/13.2.1.js index 215e8dc52c0..3cb83b9ed8f 100644 --- a/mozilla/js/tests/e4x/Namespace/13.2.1.js +++ b/mozilla/js/tests/e4x/Namespace/13.2.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Namespace/13.2.2.js b/mozilla/js/tests/e4x/Namespace/13.2.2.js index bfce216b145..c676f031f78 100644 --- a/mozilla/js/tests/e4x/Namespace/13.2.2.js +++ b/mozilla/js/tests/e4x/Namespace/13.2.2.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Namespace/13.2.5.js b/mozilla/js/tests/e4x/Namespace/13.2.5.js index 0f10716681e..206190098a2 100644 --- a/mozilla/js/tests/e4x/Namespace/13.2.5.js +++ b/mozilla/js/tests/e4x/Namespace/13.2.5.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/QName/13.3.1.js b/mozilla/js/tests/e4x/QName/13.3.1.js index 1e26257d10a..0ba23a38a06 100644 --- a/mozilla/js/tests/e4x/QName/13.3.1.js +++ b/mozilla/js/tests/e4x/QName/13.3.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/QName/13.3.2.js b/mozilla/js/tests/e4x/QName/13.3.2.js index 6d3c83b97d8..4243cb0df91 100644 --- a/mozilla/js/tests/e4x/QName/13.3.2.js +++ b/mozilla/js/tests/e4x/QName/13.3.2.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/QName/13.3.5.js b/mozilla/js/tests/e4x/QName/13.3.5.js index 32e27394b91..2f2be36932f 100644 --- a/mozilla/js/tests/e4x/QName/13.3.5.js +++ b/mozilla/js/tests/e4x/QName/13.3.5.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Regress/regress-257679.js b/mozilla/js/tests/e4x/Regress/regress-257679.js index c959a89c0a6..3f41b076c24 100644 --- a/mozilla/js/tests/e4x/Regress/regress-257679.js +++ b/mozilla/js/tests/e4x/Regress/regress-257679.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov + * Igor Bukanov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Regress/regress-263934.js b/mozilla/js/tests/e4x/Regress/regress-263934.js index 12c810f8962..93169fc18c4 100644 --- a/mozilla/js/tests/e4x/Regress/regress-263934.js +++ b/mozilla/js/tests/e4x/Regress/regress-263934.js @@ -19,8 +19,8 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * John Schneider + * Igor Bukanov + * John Schneider * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Regress/regress-263935.js b/mozilla/js/tests/e4x/Regress/regress-263935.js index cdd5ae22758..3a5fe0a4b62 100644 --- a/mozilla/js/tests/e4x/Regress/regress-263935.js +++ b/mozilla/js/tests/e4x/Regress/regress-263935.js @@ -19,8 +19,8 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * John Schneider + * Igor Bukanov + * John Schneider * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Regress/regress-263936.js b/mozilla/js/tests/e4x/Regress/regress-263936.js index 7bbf4a18244..144c01a6337 100644 --- a/mozilla/js/tests/e4x/Regress/regress-263936.js +++ b/mozilla/js/tests/e4x/Regress/regress-263936.js @@ -19,8 +19,8 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * John Schneider + * Igor Bukanov + * John Schneider * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Regress/regress-264369.js b/mozilla/js/tests/e4x/Regress/regress-264369.js index be800501787..8d2df418fdb 100644 --- a/mozilla/js/tests/e4x/Regress/regress-264369.js +++ b/mozilla/js/tests/e4x/Regress/regress-264369.js @@ -19,8 +19,8 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * John Schneider + * Igor Bukanov + * John Schneider * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Regress/regress-271545.js b/mozilla/js/tests/e4x/Regress/regress-271545.js index c6831a5ba5e..c610b757a17 100644 --- a/mozilla/js/tests/e4x/Regress/regress-271545.js +++ b/mozilla/js/tests/e4x/Regress/regress-271545.js @@ -19,8 +19,8 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Werner Sharp, + * Igor Bukanov + * Werner Sharp, * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Regress/regress-277935.js b/mozilla/js/tests/e4x/Regress/regress-277935.js index e9ed87d0629..bbcab6115cd 100644 --- a/mozilla/js/tests/e4x/Regress/regress-277935.js +++ b/mozilla/js/tests/e4x/Regress/regress-277935.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov + * Igor Bukanov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Regress/regress-278112.js b/mozilla/js/tests/e4x/Regress/regress-278112.js index 2861c69403b..057e18b9ae6 100644 --- a/mozilla/js/tests/e4x/Regress/regress-278112.js +++ b/mozilla/js/tests/e4x/Regress/regress-278112.js @@ -19,8 +19,8 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Werner Sharp, + * Igor Bukanov + * Werner Sharp, * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Statements/12.1.js b/mozilla/js/tests/e4x/Statements/12.1.js index 0d267637f88..67eb6cd81d1 100644 --- a/mozilla/js/tests/e4x/Statements/12.1.js +++ b/mozilla/js/tests/e4x/Statements/12.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Statements/12.2.js b/mozilla/js/tests/e4x/Statements/12.2.js index f3384e95a5e..a2f9d70ce4c 100644 --- a/mozilla/js/tests/e4x/Statements/12.2.js +++ b/mozilla/js/tests/e4x/Statements/12.2.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/TypeConversion/10.1.1.js b/mozilla/js/tests/e4x/TypeConversion/10.1.1.js index d233e062d16..67814c140bb 100644 --- a/mozilla/js/tests/e4x/TypeConversion/10.1.1.js +++ b/mozilla/js/tests/e4x/TypeConversion/10.1.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/TypeConversion/10.1.2.js b/mozilla/js/tests/e4x/TypeConversion/10.1.2.js index 84590ccf856..52be5e502a7 100644 --- a/mozilla/js/tests/e4x/TypeConversion/10.1.2.js +++ b/mozilla/js/tests/e4x/TypeConversion/10.1.2.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/TypeConversion/10.2.1.js b/mozilla/js/tests/e4x/TypeConversion/10.2.1.js index e433d4cf1af..cef85d6467c 100644 --- a/mozilla/js/tests/e4x/TypeConversion/10.2.1.js +++ b/mozilla/js/tests/e4x/TypeConversion/10.2.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/TypeConversion/10.3.1.js b/mozilla/js/tests/e4x/TypeConversion/10.3.1.js index 910ab4711ab..1979971ccc9 100644 --- a/mozilla/js/tests/e4x/TypeConversion/10.3.1.js +++ b/mozilla/js/tests/e4x/TypeConversion/10.3.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/TypeConversion/10.3.js b/mozilla/js/tests/e4x/TypeConversion/10.3.js index 534482f0b58..94ff5534e8b 100644 --- a/mozilla/js/tests/e4x/TypeConversion/10.3.js +++ b/mozilla/js/tests/e4x/TypeConversion/10.3.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/TypeConversion/10.4.1.js b/mozilla/js/tests/e4x/TypeConversion/10.4.1.js index 802c9159890..91f353648be 100644 --- a/mozilla/js/tests/e4x/TypeConversion/10.4.1.js +++ b/mozilla/js/tests/e4x/TypeConversion/10.4.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/TypeConversion/10.4.js b/mozilla/js/tests/e4x/TypeConversion/10.4.js index abe0904efc5..6af18f27857 100644 --- a/mozilla/js/tests/e4x/TypeConversion/10.4.js +++ b/mozilla/js/tests/e4x/TypeConversion/10.4.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/TypeConversion/10.5.1.js b/mozilla/js/tests/e4x/TypeConversion/10.5.1.js index f73b0f37d8a..5b9e8492bb7 100644 --- a/mozilla/js/tests/e4x/TypeConversion/10.5.1.js +++ b/mozilla/js/tests/e4x/TypeConversion/10.5.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/TypeConversion/10.5.js b/mozilla/js/tests/e4x/TypeConversion/10.5.js index 1c9e657fd5a..dcd83d6aec7 100644 --- a/mozilla/js/tests/e4x/TypeConversion/10.5.js +++ b/mozilla/js/tests/e4x/TypeConversion/10.5.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/TypeConversion/10.6.1.js b/mozilla/js/tests/e4x/TypeConversion/10.6.1.js index eeb485fcaf3..e8575f7e2bf 100644 --- a/mozilla/js/tests/e4x/TypeConversion/10.6.1.js +++ b/mozilla/js/tests/e4x/TypeConversion/10.6.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/TypeConversion/10.6.js b/mozilla/js/tests/e4x/TypeConversion/10.6.js index c2b3f296050..21d08914403 100644 --- a/mozilla/js/tests/e4x/TypeConversion/10.6.js +++ b/mozilla/js/tests/e4x/TypeConversion/10.6.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.1.1.1.js b/mozilla/js/tests/e4x/Types/9.1.1.1.js index 032ca2226c3..aa076ca02c3 100644 --- a/mozilla/js/tests/e4x/Types/9.1.1.1.js +++ b/mozilla/js/tests/e4x/Types/9.1.1.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.1.1.10.js b/mozilla/js/tests/e4x/Types/9.1.1.10.js index 2d27b7d6d79..fa05e8c1c1b 100644 --- a/mozilla/js/tests/e4x/Types/9.1.1.10.js +++ b/mozilla/js/tests/e4x/Types/9.1.1.10.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.1.1.11.js b/mozilla/js/tests/e4x/Types/9.1.1.11.js index 86f27635324..8228d422a03 100644 --- a/mozilla/js/tests/e4x/Types/9.1.1.11.js +++ b/mozilla/js/tests/e4x/Types/9.1.1.11.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.1.1.12.js b/mozilla/js/tests/e4x/Types/9.1.1.12.js index db2ebf5df3f..00de6f3c195 100644 --- a/mozilla/js/tests/e4x/Types/9.1.1.12.js +++ b/mozilla/js/tests/e4x/Types/9.1.1.12.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.1.1.13.js b/mozilla/js/tests/e4x/Types/9.1.1.13.js index 06b4895519f..df5c1e7c822 100644 --- a/mozilla/js/tests/e4x/Types/9.1.1.13.js +++ b/mozilla/js/tests/e4x/Types/9.1.1.13.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.1.1.2.js b/mozilla/js/tests/e4x/Types/9.1.1.2.js index 4ac0073a1b1..e43fb15d6b4 100644 --- a/mozilla/js/tests/e4x/Types/9.1.1.2.js +++ b/mozilla/js/tests/e4x/Types/9.1.1.2.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.1.1.3.js b/mozilla/js/tests/e4x/Types/9.1.1.3.js index 4e1022ff33a..e182478f33a 100644 --- a/mozilla/js/tests/e4x/Types/9.1.1.3.js +++ b/mozilla/js/tests/e4x/Types/9.1.1.3.js @@ -19,8 +19,8 @@ * Rights Reserved. * * Contributor(s): - * Ethan Hugg - * Milen Nankov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.1.1.4.js b/mozilla/js/tests/e4x/Types/9.1.1.4.js index 364ef8062ad..db168ad20d9 100644 --- a/mozilla/js/tests/e4x/Types/9.1.1.4.js +++ b/mozilla/js/tests/e4x/Types/9.1.1.4.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov + * Igor Bukanov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.1.1.5.js b/mozilla/js/tests/e4x/Types/9.1.1.5.js index cb6a49475f6..49f726d679c 100644 --- a/mozilla/js/tests/e4x/Types/9.1.1.5.js +++ b/mozilla/js/tests/e4x/Types/9.1.1.5.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.1.1.6.js b/mozilla/js/tests/e4x/Types/9.1.1.6.js index eec9fe1608a..4968a0485fb 100644 --- a/mozilla/js/tests/e4x/Types/9.1.1.6.js +++ b/mozilla/js/tests/e4x/Types/9.1.1.6.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.1.1.7.js b/mozilla/js/tests/e4x/Types/9.1.1.7.js index 1c7556f906e..3a92a2d6b36 100644 --- a/mozilla/js/tests/e4x/Types/9.1.1.7.js +++ b/mozilla/js/tests/e4x/Types/9.1.1.7.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.1.1.8.js b/mozilla/js/tests/e4x/Types/9.1.1.8.js index 9bb67057215..8630f932d2d 100644 --- a/mozilla/js/tests/e4x/Types/9.1.1.8.js +++ b/mozilla/js/tests/e4x/Types/9.1.1.8.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.1.1.9.js b/mozilla/js/tests/e4x/Types/9.1.1.9.js index 355bd044b60..7df60819f3d 100644 --- a/mozilla/js/tests/e4x/Types/9.1.1.9.js +++ b/mozilla/js/tests/e4x/Types/9.1.1.9.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.2.1.1.js b/mozilla/js/tests/e4x/Types/9.2.1.1.js index 3a0c5c78e7c..b9995c6db95 100644 --- a/mozilla/js/tests/e4x/Types/9.2.1.1.js +++ b/mozilla/js/tests/e4x/Types/9.2.1.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.2.1.10.js b/mozilla/js/tests/e4x/Types/9.2.1.10.js index e71cdbe7ced..afd70a31325 100644 --- a/mozilla/js/tests/e4x/Types/9.2.1.10.js +++ b/mozilla/js/tests/e4x/Types/9.2.1.10.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.2.1.2.js b/mozilla/js/tests/e4x/Types/9.2.1.2.js index de77310a25f..2b508ee0060 100644 --- a/mozilla/js/tests/e4x/Types/9.2.1.2.js +++ b/mozilla/js/tests/e4x/Types/9.2.1.2.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.2.1.3.js b/mozilla/js/tests/e4x/Types/9.2.1.3.js index c9c30e61d61..96fa70ee5c6 100644 --- a/mozilla/js/tests/e4x/Types/9.2.1.3.js +++ b/mozilla/js/tests/e4x/Types/9.2.1.3.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.2.1.4.js b/mozilla/js/tests/e4x/Types/9.2.1.4.js index 6e03a26f193..9a23fbec7ac 100644 --- a/mozilla/js/tests/e4x/Types/9.2.1.4.js +++ b/mozilla/js/tests/e4x/Types/9.2.1.4.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.2.1.5.js b/mozilla/js/tests/e4x/Types/9.2.1.5.js index 05677c6da7c..5a409eda500 100644 --- a/mozilla/js/tests/e4x/Types/9.2.1.5.js +++ b/mozilla/js/tests/e4x/Types/9.2.1.5.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.2.1.6.js b/mozilla/js/tests/e4x/Types/9.2.1.6.js index 4a6abffd9e5..73b64cfeb6c 100644 --- a/mozilla/js/tests/e4x/Types/9.2.1.6.js +++ b/mozilla/js/tests/e4x/Types/9.2.1.6.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.2.1.7.js b/mozilla/js/tests/e4x/Types/9.2.1.7.js index 2f6a758dfa1..46b24cac8ab 100644 --- a/mozilla/js/tests/e4x/Types/9.2.1.7.js +++ b/mozilla/js/tests/e4x/Types/9.2.1.7.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.2.1.8.js b/mozilla/js/tests/e4x/Types/9.2.1.8.js index b6404ec2e90..0edf6622c19 100644 --- a/mozilla/js/tests/e4x/Types/9.2.1.8.js +++ b/mozilla/js/tests/e4x/Types/9.2.1.8.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/Types/9.2.1.9.js b/mozilla/js/tests/e4x/Types/9.2.1.9.js index 0f8d92fc7f8..406637db7ca 100644 --- a/mozilla/js/tests/e4x/Types/9.2.1.9.js +++ b/mozilla/js/tests/e4x/Types/9.2.1.9.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.1.js b/mozilla/js/tests/e4x/XML/13.4.1.js index 4295c692f6f..006415d3266 100644 --- a/mozilla/js/tests/e4x/XML/13.4.1.js +++ b/mozilla/js/tests/e4x/XML/13.4.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.2.js b/mozilla/js/tests/e4x/XML/13.4.2.js index 339a05c2ad3..33c9ad4f10e 100644 --- a/mozilla/js/tests/e4x/XML/13.4.2.js +++ b/mozilla/js/tests/e4x/XML/13.4.2.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.3.js b/mozilla/js/tests/e4x/XML/13.4.3.js index 5b909889f37..fcf57396a1c 100644 --- a/mozilla/js/tests/e4x/XML/13.4.3.js +++ b/mozilla/js/tests/e4x/XML/13.4.3.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.1.js b/mozilla/js/tests/e4x/XML/13.4.4.1.js index 201a44a4fbb..13ed89bb353 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.1.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.10.js b/mozilla/js/tests/e4x/XML/13.4.4.10.js index 30d5125b727..1884238b071 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.10.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.10.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.11.js b/mozilla/js/tests/e4x/XML/13.4.4.11.js index f9b0fdb30c1..ba5e3667e9d 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.11.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.11.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.12.js b/mozilla/js/tests/e4x/XML/13.4.4.12.js index 2e58f69c3f5..4642eb0a99c 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.12.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.12.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.13.js b/mozilla/js/tests/e4x/XML/13.4.4.13.js index 2fbb0daa86b..abf7f2fe1a4 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.13.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.13.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.14.js b/mozilla/js/tests/e4x/XML/13.4.4.14.js index 7d84502c839..7bf0f83b940 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.14.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.14.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.15.js b/mozilla/js/tests/e4x/XML/13.4.4.15.js index 5a63398c4ec..56131a9b57c 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.15.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.15.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.16.js b/mozilla/js/tests/e4x/XML/13.4.4.16.js index 887995ca49f..18e1f416dd8 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.16.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.16.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.17.js b/mozilla/js/tests/e4x/XML/13.4.4.17.js index bf16d2b8883..f902f810572 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.17.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.17.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.18.js b/mozilla/js/tests/e4x/XML/13.4.4.18.js index 923ab294aae..b2287646742 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.18.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.18.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.19.js b/mozilla/js/tests/e4x/XML/13.4.4.19.js index 9587ebc1a3b..b99c555dc9a 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.19.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.19.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.2.js b/mozilla/js/tests/e4x/XML/13.4.4.2.js index 7de961067df..f5a75aadc7d 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.2.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.2.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.20.js b/mozilla/js/tests/e4x/XML/13.4.4.20.js index b7dc25eefde..951914e8f5a 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.20.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.20.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.21.js b/mozilla/js/tests/e4x/XML/13.4.4.21.js index deacc49cc14..2547decbf79 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.21.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.21.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.22.js b/mozilla/js/tests/e4x/XML/13.4.4.22.js index 85bc9742a9d..a479f779ef9 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.22.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.22.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.23.js b/mozilla/js/tests/e4x/XML/13.4.4.23.js index 369877c4899..05d3062ca93 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.23.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.23.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.24.js b/mozilla/js/tests/e4x/XML/13.4.4.24.js index a94de00aa81..8617e4eb1b1 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.24.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.24.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.25.js b/mozilla/js/tests/e4x/XML/13.4.4.25.js index e4fa07b2eb9..b757caa95f1 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.25.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.25.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.26.js b/mozilla/js/tests/e4x/XML/13.4.4.26.js index b538f520679..68b26f04927 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.26.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.26.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.27.js b/mozilla/js/tests/e4x/XML/13.4.4.27.js index 213712d7edc..26216a0f937 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.27.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.27.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.28.js b/mozilla/js/tests/e4x/XML/13.4.4.28.js index a3530204367..6d35da30fd0 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.28.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.28.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.29.js b/mozilla/js/tests/e4x/XML/13.4.4.29.js index ccc47459411..5089adfa13a 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.29.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.29.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.3.js b/mozilla/js/tests/e4x/XML/13.4.4.3.js index d477beda01f..20392c051be 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.3.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.3.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.30.js b/mozilla/js/tests/e4x/XML/13.4.4.30.js index 754a006919e..eba15221d1f 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.30.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.30.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.31.js b/mozilla/js/tests/e4x/XML/13.4.4.31.js index a640f70aed0..2fae3b38d6b 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.31.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.31.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.32.js b/mozilla/js/tests/e4x/XML/13.4.4.32.js index 971ff9a4826..d42ec58863b 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.32.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.32.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.33.js b/mozilla/js/tests/e4x/XML/13.4.4.33.js index e6a4225b39a..668be412e86 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.33.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.33.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.34.js b/mozilla/js/tests/e4x/XML/13.4.4.34.js index 96b1f841a4d..a47f75e9572 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.34.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.34.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.35.js b/mozilla/js/tests/e4x/XML/13.4.4.35.js index 59e8d40caad..9d4dbedb728 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.35.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.35.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.36.js b/mozilla/js/tests/e4x/XML/13.4.4.36.js index 4cf51a9df26..a000b6d3aac 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.36.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.36.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.37.js b/mozilla/js/tests/e4x/XML/13.4.4.37.js index d0b8fa58f65..4cac3b68821 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.37.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.37.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.38.js b/mozilla/js/tests/e4x/XML/13.4.4.38.js index 7e92c32cbac..c7b7182ec35 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.38.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.38.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.39.js b/mozilla/js/tests/e4x/XML/13.4.4.39.js index ef6ae5d5503..799be3b2695 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.39.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.39.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.4.js b/mozilla/js/tests/e4x/XML/13.4.4.4.js index 26704a4d3ee..b9a001acad0 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.4.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.4.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.40.js b/mozilla/js/tests/e4x/XML/13.4.4.40.js index e9e42a71979..1b496335780 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.40.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.40.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.5.js b/mozilla/js/tests/e4x/XML/13.4.4.5.js index 4c320fb7c36..556f7519cdf 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.5.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.5.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.6.js b/mozilla/js/tests/e4x/XML/13.4.4.6.js index a5a43f49f57..e25b54bcd08 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.6.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.6.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.7.js b/mozilla/js/tests/e4x/XML/13.4.4.7.js index 8af9ed49900..5f6342fa83e 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.7.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.7.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.8.js b/mozilla/js/tests/e4x/XML/13.4.4.8.js index fb91634bddc..9653589f55a 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.8.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.8.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XML/13.4.4.9.js b/mozilla/js/tests/e4x/XML/13.4.4.9.js index 8fd86fa81f2..8ea7cfdd0fd 100644 --- a/mozilla/js/tests/e4x/XML/13.4.4.9.js +++ b/mozilla/js/tests/e4x/XML/13.4.4.9.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.1.js b/mozilla/js/tests/e4x/XMLList/13.5.1.js index 9c057feaced..61b8b211d5b 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.1.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.1.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.2.js b/mozilla/js/tests/e4x/XMLList/13.5.2.js index b4518884c39..d43f5f22eed 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.2.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.2.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.10.js b/mozilla/js/tests/e4x/XMLList/13.5.4.10.js index 017a2c8bc8d..caa027878af 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.10.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.10.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov + * Igor Bukanov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.11.js b/mozilla/js/tests/e4x/XMLList/13.5.4.11.js index 163d5bb1e70..5ca480377dc 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.11.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.11.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.12.js b/mozilla/js/tests/e4x/XMLList/13.5.4.12.js index 06e4c944364..1e72267e27a 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.12.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.12.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.13.js b/mozilla/js/tests/e4x/XMLList/13.5.4.13.js index 6e6d50b56c4..e4af011d666 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.13.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.13.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.14.js b/mozilla/js/tests/e4x/XMLList/13.5.4.14.js index a0e0c7d66b0..1a4f453427e 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.14.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.14.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.15.js b/mozilla/js/tests/e4x/XMLList/13.5.4.15.js index 4c3779efc8c..ada76d70c79 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.15.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.15.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.16.js b/mozilla/js/tests/e4x/XMLList/13.5.4.16.js index 0122fa0d44c..888cf007e55 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.16.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.16.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.17.js b/mozilla/js/tests/e4x/XMLList/13.5.4.17.js index 8bdcf54c12c..7eb32ee5d09 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.17.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.17.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.18.js b/mozilla/js/tests/e4x/XMLList/13.5.4.18.js index e465a81d6de..270f11a4126 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.18.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.18.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.19.js b/mozilla/js/tests/e4x/XMLList/13.5.4.19.js index 163b8b40050..fe2545ae2cf 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.19.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.19.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.2.js b/mozilla/js/tests/e4x/XMLList/13.5.4.2.js index f7a3adbc6a3..a22e2b9109c 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.2.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.2.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.20.js b/mozilla/js/tests/e4x/XMLList/13.5.4.20.js index 448e0d1764a..688f2479a34 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.20.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.20.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.21.js b/mozilla/js/tests/e4x/XMLList/13.5.4.21.js index 5800062a98b..72d598a7800 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.21.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.21.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.22.js b/mozilla/js/tests/e4x/XMLList/13.5.4.22.js index 58022c56d70..1fb2883edc4 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.22.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.22.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.3.js b/mozilla/js/tests/e4x/XMLList/13.5.4.3.js index fd715271ad8..a3cb1f9b97c 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.3.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.3.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.4.js b/mozilla/js/tests/e4x/XMLList/13.5.4.4.js index 6f760394ec3..5f172cf3db5 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.4.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.4.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.5.js b/mozilla/js/tests/e4x/XMLList/13.5.4.5.js index 0cb00dd7326..5c7e05af066 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.5.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.5.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.6.js b/mozilla/js/tests/e4x/XMLList/13.5.4.6.js index 0c1f2370c30..fc60407b338 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.6.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.6.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.7.js b/mozilla/js/tests/e4x/XMLList/13.5.4.7.js index 2fde33b1856..a5a4ad49a23 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.7.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.7.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.8.js b/mozilla/js/tests/e4x/XMLList/13.5.4.8.js index 5fa554d98da..1fe4d8e918f 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.8.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.8.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/XMLList/13.5.4.9.js b/mozilla/js/tests/e4x/XMLList/13.5.4.9.js index cfa2cefb81c..b379891e244 100644 --- a/mozilla/js/tests/e4x/XMLList/13.5.4.9.js +++ b/mozilla/js/tests/e4x/XMLList/13.5.4.9.js @@ -19,9 +19,9 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Ethan Hugg - * Milen Nankov + * Igor Bukanov + * Ethan Hugg + * Milen Nankov * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/e4x/shell.js b/mozilla/js/tests/e4x/shell.js index 1bc7eb022a9..490d8562584 100644 --- a/mozilla/js/tests/e4x/shell.js +++ b/mozilla/js/tests/e4x/shell.js @@ -19,8 +19,8 @@ * Rights Reserved. * * Contributor(s): - * Igor Bukanov - * Rob Ginda rginda@netscape.com + * Igor Bukanov + * Rob Ginda rginda@netscape.com * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the diff --git a/mozilla/js/tests/ecma/Date/15.9.4.2-1.js b/mozilla/js/tests/ecma/Date/15.9.4.2-1.js index 2fa4cbf382b..85be8931010 100644 --- a/mozilla/js/tests/ecma/Date/15.9.4.2-1.js +++ b/mozilla/js/tests/ecma/Date/15.9.4.2-1.js @@ -1,23 +1,23 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ /** * File Name: diff --git a/mozilla/js/tests/ecma/browser.js b/mozilla/js/tests/ecma/browser.js index 5bbdf7c6b99..36192eb77fd 100644 --- a/mozilla/js/tests/ecma/browser.js +++ b/mozilla/js/tests/ecma/browser.js @@ -1,23 +1,23 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ /* * JavaScript test library shared functions file for running the tests diff --git a/mozilla/js/tests/ecma_2/Exceptions/exception-010-n.js b/mozilla/js/tests/ecma_2/Exceptions/exception-010-n.js index 3b4ec829985..8069f5c9407 100644 --- a/mozilla/js/tests/ecma_2/Exceptions/exception-010-n.js +++ b/mozilla/js/tests/ecma_2/Exceptions/exception-010-n.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/ecma_2/Exceptions/exception-011-n.js b/mozilla/js/tests/ecma_2/Exceptions/exception-011-n.js index 90884201f14..cddf5707c20 100644 --- a/mozilla/js/tests/ecma_2/Exceptions/exception-011-n.js +++ b/mozilla/js/tests/ecma_2/Exceptions/exception-011-n.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/ecma_2/FunctionObjects/apply-001-n.js b/mozilla/js/tests/ecma_2/FunctionObjects/apply-001-n.js index 2a2bf4062b5..b950edc52b9 100644 --- a/mozilla/js/tests/ecma_2/FunctionObjects/apply-001-n.js +++ b/mozilla/js/tests/ecma_2/FunctionObjects/apply-001-n.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ print ("STATUS: f.apply crash test."); diff --git a/mozilla/js/tests/ecma_2/browser.js b/mozilla/js/tests/ecma_2/browser.js index ccc1bb4361f..28dbf8abdec 100644 --- a/mozilla/js/tests/ecma_2/browser.js +++ b/mozilla/js/tests/ecma_2/browser.js @@ -1,23 +1,23 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ /* * JavaScript test library shared functions file for running the tests diff --git a/mozilla/js/tests/ecma_2/instanceof/regress-7635.js b/mozilla/js/tests/ecma_2/instanceof/regress-7635.js index 4ccb9d43e7f..d13bc3bfb53 100644 --- a/mozilla/js/tests/ecma_2/instanceof/regress-7635.js +++ b/mozilla/js/tests/ecma_2/instanceof/regress-7635.js @@ -1,23 +1,23 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ /** * File Name: regress-7635.js diff --git a/mozilla/js/tests/ecma_2/shell.js b/mozilla/js/tests/ecma_2/shell.js index eb700699ef0..edf95e6e7f7 100644 --- a/mozilla/js/tests/ecma_2/shell.js +++ b/mozilla/js/tests/ecma_2/shell.js @@ -1,23 +1,23 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ /* @@ -209,7 +209,7 @@ function AddTestCase( description, expect, actual ) { * But that was only valid for testers in the Pacific Standard Time Zone! * We calculate the proper number dynamically for any tester. We just * have to be careful to use a date not subject to Daylight Savings Time... -*/ + */ function getTimeZoneDiff() { return -((new Date(2000, 1, 1)).getTimezoneOffset())/60; diff --git a/mozilla/js/tests/ecma_3/Array/15.4.4.3-1.js b/mozilla/js/tests/ecma_3/Array/15.4.4.3-1.js index 7b5fdbd1197..e6d179b63b1 100644 --- a/mozilla/js/tests/ecma_3/Array/15.4.4.3-1.js +++ b/mozilla/js/tests/ecma_3/Array/15.4.4.3-1.js @@ -1,39 +1,40 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 12 Mar 2001 -* -* -* SUMMARY: Testing Array.prototype.toLocaleString() -* See http://bugzilla.mozilla.org/show_bug.cgi?id=56883 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=58031 -* -* By ECMA3 15.4.4.3, myArray.toLocaleString() means that toLocaleString() -* should be applied to each element of the array, and the results should be -* concatenated with an implementation-specific delimiter. For example: -* -* myArray[0].toLocaleString() + ',' + myArray[1].toLocaleString() + etc. -* -* In this testcase toLocaleString is a user-defined property of each array element; -* therefore it is the function that should be invoked. This function increments a -* global variable. Therefore the end value of this variable should be myArray.length. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 12 Mar 2001 + * + * + * SUMMARY: Testing Array.prototype.toLocaleString() + * See http://bugzilla.mozilla.org/show_bug.cgi?id=56883 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=58031 + * + * By ECMA3 15.4.4.3, myArray.toLocaleString() means that toLocaleString() + * should be applied to each element of the array, and the results should be + * concatenated with an implementation-specific delimiter. For example: + * + * myArray[0].toLocaleString() + ',' + myArray[1].toLocaleString() + etc. + * + * In this testcase toLocaleString is a user-defined property of each array element; + * therefore it is the function that should be invoked. This function increments a + * global variable. Therefore the end value of this variable should be myArray.length. + */ //------------------------------------------------------------------------------------------------- var bug = 56883; var summary = 'Testing Array.prototype.toLocaleString() -'; diff --git a/mozilla/js/tests/ecma_3/Array/15.4.4.4-001.js b/mozilla/js/tests/ecma_3/Array/15.4.4.4-001.js index 6d99159db7b..ab42e6b6d09 100644 --- a/mozilla/js/tests/ecma_3/Array/15.4.4.4-001.js +++ b/mozilla/js/tests/ecma_3/Array/15.4.4.4-001.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): george@vanous.com, igor@icesoft.no, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 19 September 2002 -* SUMMARY: Testing Array.prototype.concat() -* See http://bugzilla.mozilla.org/show_bug.cgi?id=169795 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): george@vanous.com, igor@icesoft.no, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 19 September 2002 + * SUMMARY: Testing Array.prototype.concat() + * See http://bugzilla.mozilla.org/show_bug.cgi?id=169795 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 169795; diff --git a/mozilla/js/tests/ecma_3/Array/regress-101488.js b/mozilla/js/tests/ecma_3/Array/regress-101488.js index 73c22c9f67d..3b7b719108e 100644 --- a/mozilla/js/tests/ecma_3/Array/regress-101488.js +++ b/mozilla/js/tests/ecma_3/Array/regress-101488.js @@ -1,38 +1,39 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): igor@icesoft.no, pschwartau@netscape.com -* Date: 24 September 2001 -* -* SUMMARY: Try assigning arr.length = new Number(n) -* From correspondence with Igor Bukanov -* See http://bugzilla.mozilla.org/show_bug.cgi?id=101488 -* -* Without the "new" keyword, assigning arr.length = Number(n) worked. -* But with it, Rhino was giving an error "Inappropriate array length" -* and SpiderMonkey was exiting without giving any error or return value - -* -* Comments on the Rhino code by igor@icesoft.no: -* -* jsSet_length requires that the new length value should be an instance -* of Number. But according to Ecma 15.4.5.1, item 12-13, an error should -* be thrown only if ToUint32(length_value) != ToNumber(length_value) -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): igor@icesoft.no, pschwartau@netscape.com + * + * Date: 24 September 2001 + * + * SUMMARY: Try assigning arr.length = new Number(n) + * From correspondence with Igor Bukanov + * See http://bugzilla.mozilla.org/show_bug.cgi?id=101488 + * + * Without the "new" keyword, assigning arr.length = Number(n) worked. + * But with it, Rhino was giving an error "Inappropriate array length" + * and SpiderMonkey was exiting without giving any error or return value - + * + * Comments on the Rhino code by igor@icesoft.no: + * + * jsSet_length requires that the new length value should be an instance + * of Number. But according to Ecma 15.4.5.1, item 12-13, an error should + * be thrown only if ToUint32(length_value) != ToNumber(length_value) + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 101488; diff --git a/mozilla/js/tests/ecma_3/Array/regress-130451.js b/mozilla/js/tests/ecma_3/Array/regress-130451.js index 7cc50511e50..8b3a7d1d365 100644 --- a/mozilla/js/tests/ecma_3/Array/regress-130451.js +++ b/mozilla/js/tests/ecma_3/Array/regress-130451.js @@ -1,54 +1,54 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): brendan@mozilla.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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 25 Mar 2002 -* SUMMARY: Array.prototype.sort() should not (re-)define .length -* See http://bugzilla.mozilla.org/show_bug.cgi?id=130451 -* -* From the ECMA-262 Edition 3 Final spec: -* -* NOTE: The sort function is intentionally generic; it does not require that -* its |this| value be an Array object. Therefore, it can be transferred to -* other kinds of objects for use as a method. Whether the sort function can -* be applied successfully to a host object is implementation-dependent. -* -* The interesting parts of this testcase are the contrasting expectations for -* Brendan's test below, when applied to Array objects vs. non-Array objects. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): brendan@mozilla.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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 25 Mar 2002 + * SUMMARY: Array.prototype.sort() should not (re-)define .length + * See http://bugzilla.mozilla.org/show_bug.cgi?id=130451 + * + * From the ECMA-262 Edition 3 Final spec: + * + * NOTE: The sort function is intentionally generic; it does not require that + * its |this| value be an Array object. Therefore, it can be transferred to + * other kinds of objects for use as a method. Whether the sort function can + * be applied successfully to a host object is implementation-dependent. + * + * The interesting parts of this testcase are the contrasting expectations for + * Brendan's test below, when applied to Array objects vs. non-Array objects. + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 130451; diff --git a/mozilla/js/tests/ecma_3/Exceptions/15.11.1.1.js b/mozilla/js/tests/ecma_3/Exceptions/15.11.1.1.js index 3aab1371087..30213279e94 100644 --- a/mozilla/js/tests/ecma_3/Exceptions/15.11.1.1.js +++ b/mozilla/js/tests/ecma_3/Exceptions/15.11.1.1.js @@ -1,42 +1,42 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): joerg.schaible@gmx.de -* -* 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 27 Nov 2002 -* SUMMARY: Ensuring normal function call of Error (ECMA-262 Ed.3 15.11.1.1). -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): joerg.schaible@gmx.de + * + * 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 27 Nov 2002 + * SUMMARY: Ensuring normal function call of Error (ECMA-262 Ed.3 15.11.1.1). + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = ''; diff --git a/mozilla/js/tests/ecma_3/Exceptions/15.11.4.4-1.js b/mozilla/js/tests/ecma_3/Exceptions/15.11.4.4-1.js index ca05e7e1ca1..4ecebd045ae 100644 --- a/mozilla/js/tests/ecma_3/Exceptions/15.11.4.4-1.js +++ b/mozilla/js/tests/ecma_3/Exceptions/15.11.4.4-1.js @@ -1,72 +1,72 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2001 -* the Initial Developer. All Rights Reserved. -* -* Contributors: d-russo@ti.com, pschwartau@netscape.com, joerg.schaible@gmx.de -* -* 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 22 Jan 2002 -* SUMMARY: Testing Error.prototype.toString() -* -* Revised: 25 Nov 2002 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=181909 -* -* Note that ECMA-262 3rd Edition Final, Section 15.11.4.4 states that -* Error.prototype.toString() returns an implementation-dependent string. -* Therefore any testcase on this property is somewhat arbitrary. -* -* However, d-russo@ti.com pointed out that Rhino was returning this: -* -* js> err = new Error() -* undefined: undefined -* -* js> err = new Error("msg") -* undefined: msg -* -* -* We expect Rhino to return what SpiderMonkey currently does: -* -* js> err = new Error() -* Error -* -* js> err = new Error("msg") -* Error: msg -* -* -* i.e. we expect err.toString() === err.name if err.message is not defined; -* otherwise, we expect err.toString() === err.name + ': ' + err.message. -* -* See also ECMA 15.11.4.2, 15.11.4.3 -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2001 + * the Initial Developer. All Rights Reserved. + * + * Contributors: d-russo@ti.com, pschwartau@netscape.com, joerg.schaible@gmx.de + * + * 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 22 Jan 2002 + * SUMMARY: Testing Error.prototype.toString() + * + * Revised: 25 Nov 2002 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=181909 + * + * Note that ECMA-262 3rd Edition Final, Section 15.11.4.4 states that + * Error.prototype.toString() returns an implementation-dependent string. + * Therefore any testcase on this property is somewhat arbitrary. + * + * However, d-russo@ti.com pointed out that Rhino was returning this: + * + * js> err = new Error() + * undefined: undefined + * + * js> err = new Error("msg") + * undefined: msg + * + * + * We expect Rhino to return what SpiderMonkey currently does: + * + * js> err = new Error() + * Error + * + * js> err = new Error("msg") + * Error: msg + * + * + * i.e. we expect err.toString() === err.name if err.message is not defined; + * otherwise, we expect err.toString() === err.name + ': ' + err.message. + * + * See also ECMA 15.11.4.2, 15.11.4.3 + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; diff --git a/mozilla/js/tests/ecma_3/Exceptions/15.11.7.6-001.js b/mozilla/js/tests/ecma_3/Exceptions/15.11.7.6-001.js index a8097f55a13..f47abbf64a7 100644 --- a/mozilla/js/tests/ecma_3/Exceptions/15.11.7.6-001.js +++ b/mozilla/js/tests/ecma_3/Exceptions/15.11.7.6-001.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@fastmail.fm, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 14 April 2003 -* SUMMARY: Prototype of predefined error objects should be DontEnum -* See http://bugzilla.mozilla.org/show_bug.cgi?id=201989 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@fastmail.fm, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 14 April 2003 + * SUMMARY: Prototype of predefined error objects should be DontEnum + * See http://bugzilla.mozilla.org/show_bug.cgi?id=201989 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 201989; diff --git a/mozilla/js/tests/ecma_3/Exceptions/15.11.7.6-002.js b/mozilla/js/tests/ecma_3/Exceptions/15.11.7.6-002.js index f0fae24b153..e124b44ba42 100644 --- a/mozilla/js/tests/ecma_3/Exceptions/15.11.7.6-002.js +++ b/mozilla/js/tests/ecma_3/Exceptions/15.11.7.6-002.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@fastmail.fm, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 14 April 2003 -* SUMMARY: Prototype of predefined error objects should be DontDelete -* See http://bugzilla.mozilla.org/show_bug.cgi?id=201989 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@fastmail.fm, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 14 April 2003 + * SUMMARY: Prototype of predefined error objects should be DontDelete + * See http://bugzilla.mozilla.org/show_bug.cgi?id=201989 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 201989; diff --git a/mozilla/js/tests/ecma_3/Exceptions/15.11.7.6-003.js b/mozilla/js/tests/ecma_3/Exceptions/15.11.7.6-003.js index 5840427f6f1..d51b0b0101c 100644 --- a/mozilla/js/tests/ecma_3/Exceptions/15.11.7.6-003.js +++ b/mozilla/js/tests/ecma_3/Exceptions/15.11.7.6-003.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@fastmail.fm, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 14 April 2003 -* SUMMARY: Prototype of predefined error objects should be ReadOnly -* See http://bugzilla.mozilla.org/show_bug.cgi?id=201989 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@fastmail.fm, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 14 April 2003 + * SUMMARY: Prototype of predefined error objects should be ReadOnly + * See http://bugzilla.mozilla.org/show_bug.cgi?id=201989 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 201989; diff --git a/mozilla/js/tests/ecma_3/Exceptions/binding-001.js b/mozilla/js/tests/ecma_3/Exceptions/binding-001.js index 72ff55e4d72..bef6074936b 100644 --- a/mozilla/js/tests/ecma_3/Exceptions/binding-001.js +++ b/mozilla/js/tests/ecma_3/Exceptions/binding-001.js @@ -1,35 +1,36 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an -* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): brendan@mozilla.org, pschwartau@netscape.com -* Date: 2001-08-27 -* -* SUMMARY: Testing binding of function names -* -* Brendan: -* -* "... the question is, does Rhino bind 'sum' in the global object -* for the following test? If it does, it's buggy. -* -* var f = function sum(){}; -* print(sum); // should fail with 'sum is not defined' " -* -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an + * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): brendan@mozilla.org, pschwartau@netscape.com + * + * Date: 2001-08-27 + * + * SUMMARY: Testing binding of function names + * + * Brendan: + * + * "... the question is, does Rhino bind 'sum' in the global object + * for the following test? If it does, it's buggy. + * + * var f = function sum(){}; + * print(sum); // should fail with 'sum is not defined' " + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; diff --git a/mozilla/js/tests/ecma_3/Exceptions/regress-181654.js b/mozilla/js/tests/ecma_3/Exceptions/regress-181654.js index d65efff8199..c8b83d464cf 100644 --- a/mozilla/js/tests/ecma_3/Exceptions/regress-181654.js +++ b/mozilla/js/tests/ecma_3/Exceptions/regress-181654.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): joerg.schaible@gmx.de -* -* 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 23 Nov 2002 -* SUMMARY: Calling toString for an object derived from the Error class -* results in an TypeError (Rhino only) -* See http://bugzilla.mozilla.org/show_bug.cgi?id=181654 -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): joerg.schaible@gmx.de + * + * 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 23 Nov 2002 + * SUMMARY: Calling toString for an object derived from the Error class + * results in an TypeError (Rhino only) + * See http://bugzilla.mozilla.org/show_bug.cgi?id=181654 + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = '181654'; diff --git a/mozilla/js/tests/ecma_3/Exceptions/regress-181914.js b/mozilla/js/tests/ecma_3/Exceptions/regress-181914.js index adf0b467183..774f3f3d0cb 100644 --- a/mozilla/js/tests/ecma_3/Exceptions/regress-181914.js +++ b/mozilla/js/tests/ecma_3/Exceptions/regress-181914.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): joerg.schaible@gmx.de, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 25 Nov 2002 -* SUMMARY: Calling a user-defined superconstructor -* See http://bugzilla.mozilla.org/show_bug.cgi?id=181914, esp. Comment 10. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): joerg.schaible@gmx.de, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 25 Nov 2002 + * SUMMARY: Calling a user-defined superconstructor + * See http://bugzilla.mozilla.org/show_bug.cgi?id=181914, esp. Comment 10. + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = '181914'; diff --git a/mozilla/js/tests/ecma_3/Exceptions/regress-58946.js b/mozilla/js/tests/ecma_3/Exceptions/regress-58946.js index e2fc7984028..2ae8fc506b8 100644 --- a/mozilla/js/tests/ecma_3/Exceptions/regress-58946.js +++ b/mozilla/js/tests/ecma_3/Exceptions/regress-58946.js @@ -1,32 +1,32 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* -* -*This test arose from Bugzilla bug 58946. -*The bug was filed when we got the following error (see code below): -* -* "ReferenceError: e is not defined" -* -*There was no error if we replaced "return e" in the code below with "print(e)". -*There should be no error with "return e", either - -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * + *This test arose from Bugzilla bug 58946. + *The bug was filed when we got the following error (see code below): + * + * "ReferenceError: e is not defined" + * + *There was no error if we replaced "return e" in the code below with "print(e)". + *There should be no error with "return e", either - + */ //------------------------------------------------------------------------------------------------- var bug = '58946'; var stat = 'Testing a return statement inside a catch statement inside a function'; diff --git a/mozilla/js/tests/ecma_3/Exceptions/regress-95101.js b/mozilla/js/tests/ecma_3/Exceptions/regress-95101.js index 59b5209788b..6a1c10ef864 100644 --- a/mozilla/js/tests/ecma_3/Exceptions/regress-95101.js +++ b/mozilla/js/tests/ecma_3/Exceptions/regress-95101.js @@ -1,27 +1,28 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 13 August 2001 -* -* SUMMARY: Invoking an undefined function should produce a ReferenceError -* See http://bugzilla.mozilla.org/show_bug.cgi?id=95101 -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 13 August 2001 + * + * SUMMARY: Invoking an undefined function should produce a ReferenceError + * See http://bugzilla.mozilla.org/show_bug.cgi?id=95101 + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 95101; diff --git a/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.3-1.js b/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.3-1.js index a29d2a4d716..4eae62b4dfe 100644 --- a/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.3-1.js +++ b/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.3-1.js @@ -1,47 +1,47 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 11 Feb 2002 -* SUMMARY: Testing functions having duplicate formal parameter names -* -* Note: given function f(x,x,x,x) {return x;}; f(1,2,3,4) should return 4. -* See ECMA-262 3rd Edition Final Section 10.1.3: Variable Instantiation -* -* Also see http://bugzilla.mozilla.org/show_bug.cgi?id=124900 -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 11 Feb 2002 + * SUMMARY: Testing functions having duplicate formal parameter names + * + * Note: given function f(x,x,x,x) {return x;}; f(1,2,3,4) should return 4. + * See ECMA-262 3rd Edition Final Section 10.1.3: Variable Instantiation + * + * Also see http://bugzilla.mozilla.org/show_bug.cgi?id=124900 + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 124900; diff --git a/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.3-2.js b/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.3-2.js index f969ca006bc..809bfd5b202 100644 --- a/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.3-2.js +++ b/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.3-2.js @@ -1,49 +1,49 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 11 Feb 2002 -* SUMMARY: Testing functions having duplicate formal parameter names -* -* SpiderMonkey was crashing on each case below if the parameters had -* the same name. But duplicate parameter names are permitted by ECMA; -* see ECMA-262 3rd Edition Final Section 10.1.3 -* -* NOTE: Rhino does not have toSource() and uneval(); they are non-ECMA -* extensions to the language. So we include a test for them at the beginning - -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 11 Feb 2002 + * SUMMARY: Testing functions having duplicate formal parameter names + * + * SpiderMonkey was crashing on each case below if the parameters had + * the same name. But duplicate parameter names are permitted by ECMA; + * see ECMA-262 3rd Edition Final Section 10.1.3 + * + * NOTE: Rhino does not have toSource() and uneval(); they are non-ECMA + * extensions to the language. So we include a test for them at the beginning - + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; diff --git a/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.3.js b/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.3.js index 468589a96ac..648dc05a585 100644 --- a/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.3.js +++ b/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.3.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ /** diff --git a/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.4-1.js b/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.4-1.js index f4b6f5d9c29..0819e098501 100644 --- a/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.4-1.js +++ b/mozilla/js/tests/ecma_3/ExecutionContexts/10.1.4-1.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ /** diff --git a/mozilla/js/tests/ecma_3/ExecutionContexts/regress-23346.js b/mozilla/js/tests/ecma_3/ExecutionContexts/regress-23346.js index d831720a838..b03e85f26fc 100644 --- a/mozilla/js/tests/ecma_3/ExecutionContexts/regress-23346.js +++ b/mozilla/js/tests/ecma_3/ExecutionContexts/regress-23346.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ var CALL_CALLED = "PASSED"; diff --git a/mozilla/js/tests/ecma_3/Expressions/11.6.1-1.js b/mozilla/js/tests/ecma_3/Expressions/11.6.1-1.js index 0963ef77555..0609f6e1e56 100644 --- a/mozilla/js/tests/ecma_3/Expressions/11.6.1-1.js +++ b/mozilla/js/tests/ecma_3/Expressions/11.6.1-1.js @@ -1,48 +1,48 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): bzbarsky@mit.edu, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 14 Mar 2003 -* SUMMARY: Testing left-associativity of the + operator -* -* See ECMA-262 Ed.3, Section 11.6.1, "The Addition operator" -* See http://bugzilla.mozilla.org/show_bug.cgi?id=196290 -* -* The upshot: |a + b + c| should always equal |(a + b) + c| -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): bzbarsky@mit.edu, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 14 Mar 2003 + * SUMMARY: Testing left-associativity of the + operator + * + * See ECMA-262 Ed.3, Section 11.6.1, "The Addition operator" + * See http://bugzilla.mozilla.org/show_bug.cgi?id=196290 + * + * The upshot: |a + b + c| should always equal |(a + b) + c| + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 196290; diff --git a/mozilla/js/tests/ecma_3/Expressions/11.9.6-1.js b/mozilla/js/tests/ecma_3/Expressions/11.9.6-1.js index 815358595a3..b50d13bcf9f 100644 --- a/mozilla/js/tests/ecma_3/Expressions/11.9.6-1.js +++ b/mozilla/js/tests/ecma_3/Expressions/11.9.6-1.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 20 Feb 2002 -* SUMMARY: Testing the comparison |undefined === null| -* See http://bugzilla.mozilla.org/show_bug.cgi?id=126722 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 20 Feb 2002 + * SUMMARY: Testing the comparison |undefined === null| + * See http://bugzilla.mozilla.org/show_bug.cgi?id=126722 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 126722; diff --git a/mozilla/js/tests/ecma_3/FunExpr/fe-001-n.js b/mozilla/js/tests/ecma_3/FunExpr/fe-001-n.js index 34c37e86dd7..3f17e7b51cf 100644 --- a/mozilla/js/tests/ecma_3/FunExpr/fe-001-n.js +++ b/mozilla/js/tests/ecma_3/FunExpr/fe-001-n.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/ecma_3/FunExpr/fe-001.js b/mozilla/js/tests/ecma_3/FunExpr/fe-001.js index 569a636e48c..a6cd062e132 100644 --- a/mozilla/js/tests/ecma_3/FunExpr/fe-001.js +++ b/mozilla/js/tests/ecma_3/FunExpr/fe-001.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ if (1) function f() {return 1;} diff --git a/mozilla/js/tests/ecma_3/FunExpr/fe-002.js b/mozilla/js/tests/ecma_3/FunExpr/fe-002.js index 35a9925d824..bacd4b32d45 100644 --- a/mozilla/js/tests/ecma_3/FunExpr/fe-002.js +++ b/mozilla/js/tests/ecma_3/FunExpr/fe-002.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ function f() diff --git a/mozilla/js/tests/ecma_3/Function/15.3.4.3-1.js b/mozilla/js/tests/ecma_3/Function/15.3.4.3-1.js index 123b944ef0f..f2fd6895dda 100644 --- a/mozilla/js/tests/ecma_3/Function/15.3.4.3-1.js +++ b/mozilla/js/tests/ecma_3/Function/15.3.4.3-1.js @@ -1,46 +1,46 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor3@apochta.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 21 May 2002 -* SUMMARY: ECMA conformance of Function.prototype.apply -* -* Function.prototype.apply(thisArg, argArray) -* -* See ECMA-262 Edition 3 Final, Section 15.3.4.3 -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor3@apochta.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 21 May 2002 + * SUMMARY: ECMA conformance of Function.prototype.apply + * + * Function.prototype.apply(thisArg, argArray) + * + * See ECMA-262 Edition 3 Final, Section 15.3.4.3 + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 145791; diff --git a/mozilla/js/tests/ecma_3/Function/15.3.4.4-1.js b/mozilla/js/tests/ecma_3/Function/15.3.4.4-1.js index e9e2b64a07d..dffe1566a86 100644 --- a/mozilla/js/tests/ecma_3/Function/15.3.4.4-1.js +++ b/mozilla/js/tests/ecma_3/Function/15.3.4.4-1.js @@ -1,46 +1,46 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor3@apochta.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 21 May 2002 -* SUMMARY: ECMA conformance of Function.prototype.call -* -* Function.prototype.call(thisArg [,arg1 [,arg2, ...]]) -* -* See ECMA-262 Edition 3 Final, Section 15.3.4.4 -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor3@apochta.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 21 May 2002 + * SUMMARY: ECMA conformance of Function.prototype.call + * + * Function.prototype.call(thisArg [,arg1 [,arg2, ...]]) + * + * See ECMA-262 Edition 3 Final, Section 15.3.4.4 + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 145791; diff --git a/mozilla/js/tests/ecma_3/Function/arguments-001.js b/mozilla/js/tests/ecma_3/Function/arguments-001.js index 98aca183e54..f6803334785 100644 --- a/mozilla/js/tests/ecma_3/Function/arguments-001.js +++ b/mozilla/js/tests/ecma_3/Function/arguments-001.js @@ -1,28 +1,29 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): brendan@mozilla.org, pschwartau@netscape.com -* Date: 07 May 2001 -* -* SUMMARY: Testing the arguments object -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=72884 -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): brendan@mozilla.org, pschwartau@netscape.com + * + * Date: 07 May 2001 + * + * SUMMARY: Testing the arguments object + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=72884 + */ //------------------------------------------------------------------------------------------------- var UBound = 0; var bug = 72884; diff --git a/mozilla/js/tests/ecma_3/Function/call-001.js b/mozilla/js/tests/ecma_3/Function/call-001.js index f9bdf62d7fc..6174ab489d0 100644 --- a/mozilla/js/tests/ecma_3/Function/call-001.js +++ b/mozilla/js/tests/ecma_3/Function/call-001.js @@ -1,44 +1,45 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an -* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 2001-07-13 -* -* SUMMARY: Applying Function.prototype.call to the Function object itself -* -* -* ECMA-262 15.3.4.4 Function.prototype.call (thisArg [,arg1 [,arg2,…] ] ) -* -* When applied to the Function object itself, thisArg should be ignored. -* As explained by Waldemar (waldemar@netscape.com): -* -* Function.call(obj, "print(this)") is equivalent to invoking -* Function("print(this)") with this set to obj. Now, Function("print(this)") -* is equivalent to new Function("print(this)") (see 15.3.1.1), and the latter -* ignores the this value that you passed it and constructs a function -* (which we'll call F) which will print the value of the this that will be -* passed in when F will be invoked. -* -* With the last set of () you're invoking F(), which means you're calling it -* with no this value. When you don't provide a this value, it defaults to the -* global object. -* -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an + * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 2001-07-13 + * + * SUMMARY: Applying Function.prototype.call to the Function object itself + * + * + * ECMA-262 15.3.4.4 Function.prototype.call (thisArg [,arg1 [,arg2,…] ] ) + * + * When applied to the Function object itself, thisArg should be ignored. + * As explained by Waldemar (waldemar@netscape.com): + * + * Function.call(obj, "print(this)") is equivalent to invoking + * Function("print(this)") with this set to obj. Now, Function("print(this)") + * is equivalent to new Function("print(this)") (see 15.3.1.1), and the latter + * ignores the this value that you passed it and constructs a function + * (which we'll call F) which will print the value of the this that will be + * passed in when F will be invoked. + * + * With the last set of () you're invoking F(), which means you're calling it + * with no this value. When you don't provide a this value, it defaults to the + * global object. + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; diff --git a/mozilla/js/tests/ecma_3/Function/regress-104584.js b/mozilla/js/tests/ecma_3/Function/regress-104584.js index db984a2d0e2..c07d3ea3956 100644 --- a/mozilla/js/tests/ecma_3/Function/regress-104584.js +++ b/mozilla/js/tests/ecma_3/Function/regress-104584.js @@ -1,31 +1,32 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): jband@netscape.com, pschwartau@netscape.com -* Date: 14 October 2001 -* -* SUMMARY: Regression test for Bugzilla bug 104584 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=104584 -* -* Testing that we don't crash on this code. The idea is to -* call F,G WITHOUT providing an argument. This caused a crash -* on the second call to obj.toString() or print(obj) below - -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): jband@netscape.com, pschwartau@netscape.com + * + * Date: 14 October 2001 + * + * SUMMARY: Regression test for Bugzilla bug 104584 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=104584 + * + * Testing that we don't crash on this code. The idea is to + * call F,G WITHOUT providing an argument. This caused a crash + * on the second call to obj.toString() or print(obj) below - + */ //----------------------------------------------------------------------------- var bug = 104584; var summary = "Testing that we don't crash on this code -"; diff --git a/mozilla/js/tests/ecma_3/Function/regress-131964.js b/mozilla/js/tests/ecma_3/Function/regress-131964.js index d90aa1750ff..d921030f9e2 100644 --- a/mozilla/js/tests/ecma_3/Function/regress-131964.js +++ b/mozilla/js/tests/ecma_3/Function/regress-131964.js @@ -1,46 +1,46 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 19 Mar 2002 -* SUMMARY: Function declarations in global or function scope are {DontDelete}. -* Function declarations in eval scope are not {DontDelete}. -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=131964 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 19 Mar 2002 + * SUMMARY: Function declarations in global or function scope are {DontDelete}. + * Function declarations in eval scope are not {DontDelete}. + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=131964 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 131964; diff --git a/mozilla/js/tests/ecma_3/Function/regress-137181.js b/mozilla/js/tests/ecma_3/Function/regress-137181.js index 14176017273..56a5feb2a32 100644 --- a/mozilla/js/tests/ecma_3/Function/regress-137181.js +++ b/mozilla/js/tests/ecma_3/Function/regress-137181.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): ibukanov8@yahoo.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 12 Apr 2002 -* SUMMARY: delete arguments[i] should break connection to local reference -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=137181 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): ibukanov8@yahoo.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 12 Apr 2002 + * SUMMARY: delete arguments[i] should break connection to local reference + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=137181 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 137181; diff --git a/mozilla/js/tests/ecma_3/Function/regress-193555.js b/mozilla/js/tests/ecma_3/Function/regress-193555.js index cc3c1eb1705..923d2f8ed9a 100644 --- a/mozilla/js/tests/ecma_3/Function/regress-193555.js +++ b/mozilla/js/tests/ecma_3/Function/regress-193555.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@icesoft.no, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 17 February 2003 -* SUMMARY: Testing access to function name from inside function -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=193555 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@icesoft.no, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 17 February 2003 + * SUMMARY: Testing access to function name from inside function + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=193555 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 193555; diff --git a/mozilla/js/tests/ecma_3/Function/regress-49286.js b/mozilla/js/tests/ecma_3/Function/regress-49286.js index 5f7093a8ab7..e0cf7b9c39e 100644 --- a/mozilla/js/tests/ecma_3/Function/regress-49286.js +++ b/mozilla/js/tests/ecma_3/Function/regress-49286.js @@ -1,32 +1,33 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an -* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributors: jlaprise@delanotech.com,pschwartau@netscape.com -* Date: 2001-07-10 -* -* SUMMARY: Invoking try...catch through Function.call -* See http://bugzilla.mozilla.org/show_bug.cgi?id=49286 -* -* 1) Define a function with a try...catch block in it -* 2) Invoke the function via the call method of Function -* 3) Pass bad syntax to the try...catch block -* 4) We should catch the error! -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an + * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributors: jlaprise@delanotech.com,pschwartau@netscape.com + * + * Date: 2001-07-10 + * + * SUMMARY: Invoking try...catch through Function.call + * See http://bugzilla.mozilla.org/show_bug.cgi?id=49286 + * + * 1) Define a function with a try...catch block in it + * 2) Invoke the function via the call method of Function + * 3) Pass bad syntax to the try...catch block + * 4) We should catch the error! + */ //------------------------------------------------------------------------------------------------- var UBound = 0; var bug = 49286; diff --git a/mozilla/js/tests/ecma_3/Function/regress-58274.js b/mozilla/js/tests/ecma_3/Function/regress-58274.js index 8a5c2e65ddb..754a8bd047f 100644 --- a/mozilla/js/tests/ecma_3/Function/regress-58274.js +++ b/mozilla/js/tests/ecma_3/Function/regress-58274.js @@ -1,66 +1,66 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): rogerl@netscape.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 15 July 2002 -* SUMMARY: Testing functions with double-byte names -* See http://bugzilla.mozilla.org/show_bug.cgi?id=58274 -* -* Here is a sample of the problem: -* -* js> function f\u02B1 () {} -* -* js> f\u02B1.toSource(); -* function f¦() {} -* -* js> f\u02B1.toSource().toSource(); -* (new String("function f\xB1() {}")) -* -* -* See how the high-byte information (the 02) has been lost? -* The same thing was happening with the toString() method: -* -* js> f\u02B1.toString(); -* -* function f¦() { -* } -* -* js> f\u02B1.toString().toSource(); -* (new String("\nfunction f\xB1() {\n}\n")) -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): rogerl@netscape.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 15 July 2002 + * SUMMARY: Testing functions with double-byte names + * See http://bugzilla.mozilla.org/show_bug.cgi?id=58274 + * + * Here is a sample of the problem: + * + * js> function f\u02B1 () {} + * + * js> f\u02B1.toSource(); + * function f¦() {} + * + * js> f\u02B1.toSource().toSource(); + * (new String("function f\xB1() {}")) + * + * + * See how the high-byte information (the 02) has been lost? + * The same thing was happening with the toString() method: + * + * js> f\u02B1.toString(); + * + * function f¦() { + * } + * + * js> f\u02B1.toString().toSource(); + * (new String("\nfunction f\xB1() {\n}\n")) + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 58274; diff --git a/mozilla/js/tests/ecma_3/Function/regress-85880.js b/mozilla/js/tests/ecma_3/Function/regress-85880.js index fea243e441b..1d1d5b6291b 100644 --- a/mozilla/js/tests/ecma_3/Function/regress-85880.js +++ b/mozilla/js/tests/ecma_3/Function/regress-85880.js @@ -1,32 +1,33 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 2001-06-14 -* -* SUMMARY: Regression test for Bugzilla bug 85880 -* -* Rhino interpreted mode was nulling out the arguments object of a -* function if it happened to call another function inside its body. -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=85880 -* -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 2001-06-14 + * + * SUMMARY: Regression test for Bugzilla bug 85880 + * + * Rhino interpreted mode was nulling out the arguments object of a + * function if it happened to call another function inside its body. + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=85880 + * + */ //------------------------------------------------------------------------------------------------- var UBound = 0; var bug = 85880; diff --git a/mozilla/js/tests/ecma_3/Function/regress-94506.js b/mozilla/js/tests/ecma_3/Function/regress-94506.js index de4a3a327e5..a3fb4663e85 100644 --- a/mozilla/js/tests/ecma_3/Function/regress-94506.js +++ b/mozilla/js/tests/ecma_3/Function/regress-94506.js @@ -1,29 +1,30 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): deneen@alum.bucknell.edu, shaver@mozilla.org -* Date: 08 August 2001 -* -* SUMMARY: When we invoke a function, the arguments object should take -* a back seat to any local identifier named "arguments". -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=94506 -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): deneen@alum.bucknell.edu, shaver@mozilla.org + * + * Date: 08 August 2001 + * + * SUMMARY: When we invoke a function, the arguments object should take + * a back seat to any local identifier named "arguments". + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=94506 + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 94506; diff --git a/mozilla/js/tests/ecma_3/Function/regress-97921.js b/mozilla/js/tests/ecma_3/Function/regress-97921.js index c982673adbc..a52a16ebe07 100644 --- a/mozilla/js/tests/ecma_3/Function/regress-97921.js +++ b/mozilla/js/tests/ecma_3/Function/regress-97921.js @@ -1,31 +1,32 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): georg@bioshop.de, pschwartau@netscape.com -* Date: 10 September 2001 -* -* SUMMARY: Testing with() statement with nested functions -* See http://bugzilla.mozilla.org/show_bug.cgi?id=97921 -* -* Brendan: "The bug is peculiar to functions that have formal parameters, -* but that are called with fewer actual arguments than the declared number -* of formal parameters." -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): georg@bioshop.de, pschwartau@netscape.com + * + * Date: 10 September 2001 + * + * SUMMARY: Testing with() statement with nested functions + * See http://bugzilla.mozilla.org/show_bug.cgi?id=97921 + * + * Brendan: "The bug is peculiar to functions that have formal parameters, + * but that are called with fewer actual arguments than the declared number + * of formal parameters." + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 97921; diff --git a/mozilla/js/tests/ecma_3/Function/scope-001.js b/mozilla/js/tests/ecma_3/Function/scope-001.js index a9e3d9fa481..1b8ad6a221a 100644 --- a/mozilla/js/tests/ecma_3/Function/scope-001.js +++ b/mozilla/js/tests/ecma_3/Function/scope-001.js @@ -1,35 +1,36 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com, rogerl@netscape.com -* Date: 28 May 2001 -* -* SUMMARY: Functions are scoped statically, not dynamically -* -* See ECMA Section 10.1.4 Scope Chain and Identifier Resolution -* (This section defines the scope chain of an execution context) -* -* See ECMA Section 12.10 The with Statement -* -* See ECMA Section 13 Function Definition -* (This section defines the scope chain of a function object as that -* of the running execution context when the function was declared) -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com, rogerl@netscape.com + * + * Date: 28 May 2001 + * + * SUMMARY: Functions are scoped statically, not dynamically + * + * See ECMA Section 10.1.4 Scope Chain and Identifier Resolution + * (This section defines the scope chain of an execution context) + * + * See ECMA Section 12.10 The with Statement + * + * See ECMA Section 13 Function Definition + * (This section defines the scope chain of a function object as that + * of the running execution context when the function was declared) + */ //------------------------------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; diff --git a/mozilla/js/tests/ecma_3/Function/scope-002.js b/mozilla/js/tests/ecma_3/Function/scope-002.js index 8e4626ef6d2..65b706a5931 100644 --- a/mozilla/js/tests/ecma_3/Function/scope-002.js +++ b/mozilla/js/tests/ecma_3/Function/scope-002.js @@ -1,38 +1,39 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com, rogerl@netscape.com -* Date: 28 May 2001 -* -* SUMMARY: Functions are scoped statically, not dynamically -* -* See ECMA Section 10.1.4 Scope Chain and Identifier Resolution -* (This section defines the scope chain of an execution context) -* -* See ECMA Section 12.10 The with Statement -* -* See ECMA Section 13 Function Definition -* (This section defines the scope chain of a function object as that -* of the running execution context when the function was declared) -* -* Like scope-001.js, but using assignment var f = function expression -* instead of a function declaration: function f() {} etc. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com, rogerl@netscape.com + * + * Date: 28 May 2001 + * + * SUMMARY: Functions are scoped statically, not dynamically + * + * See ECMA Section 10.1.4 Scope Chain and Identifier Resolution + * (This section defines the scope chain of an execution context) + * + * See ECMA Section 12.10 The with Statement + * + * See ECMA Section 13 Function Definition + * (This section defines the scope chain of a function object as that + * of the running execution context when the function was declared) + * + * Like scope-001.js, but using assignment var f = function expression + * instead of a function declaration: function f() {} etc. + */ //------------------------------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; diff --git a/mozilla/js/tests/ecma_3/Number/15.7.4.5-1.js b/mozilla/js/tests/ecma_3/Number/15.7.4.5-1.js index 767ee6e4cc7..94a6b9baf87 100644 --- a/mozilla/js/tests/ecma_3/Number/15.7.4.5-1.js +++ b/mozilla/js/tests/ecma_3/Number/15.7.4.5-1.js @@ -1,30 +1,31 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an -* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 2001-07-15 -* -* SUMMARY: Testing Number.prototype.toFixed(fractionDigits) -* See EMCA 262 Edition 3 Section 15.7.4.5 -* -* Also see http://bugzilla.mozilla.org/show_bug.cgi?id=90551 -* -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an + * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 2001-07-15 + * + * SUMMARY: Testing Number.prototype.toFixed(fractionDigits) + * See EMCA 262 Edition 3 Section 15.7.4.5 + * + * Also see http://bugzilla.mozilla.org/show_bug.cgi?id=90551 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; @@ -64,7 +65,7 @@ status = 'Section C of test: expect RangeError because fractionDigits > 20 '; actual = catchError('testNum.toFixed(21)'); expect = cnIsRangeError; captureThis(); -*************************************************************************/ + *************************************************************************/ status = 'Section D of test: no error intended!'; diff --git a/mozilla/js/tests/ecma_3/Number/15.7.4.6-1.js b/mozilla/js/tests/ecma_3/Number/15.7.4.6-1.js index 9a06f460bc1..44c054ba07b 100644 --- a/mozilla/js/tests/ecma_3/Number/15.7.4.6-1.js +++ b/mozilla/js/tests/ecma_3/Number/15.7.4.6-1.js @@ -1,30 +1,31 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an -* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 2001-07-15 -* -* SUMMARY: Testing Number.prototype.toExponential(fractionDigits) -* See EMCA 262 Edition 3 Section 15.7.4.6 -* -* Also see http://bugzilla.mozilla.org/show_bug.cgi?id=90551 -* -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an + * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 2001-07-15 + * + * SUMMARY: Testing Number.prototype.toExponential(fractionDigits) + * See EMCA 262 Edition 3 Section 15.7.4.6 + * + * Also see http://bugzilla.mozilla.org/show_bug.cgi?id=90551 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; @@ -64,7 +65,7 @@ status = 'Section C of test: expect RangeError because fractionDigits > 20 '; actual = catchError('testNum.toExponential(21)'); expect = cnIsRangeError; captureThis(); -*************************************************************************/ + *************************************************************************/ diff --git a/mozilla/js/tests/ecma_3/Number/15.7.4.7-1.js b/mozilla/js/tests/ecma_3/Number/15.7.4.7-1.js index c29c0afe2e0..26d7121a8fd 100644 --- a/mozilla/js/tests/ecma_3/Number/15.7.4.7-1.js +++ b/mozilla/js/tests/ecma_3/Number/15.7.4.7-1.js @@ -1,30 +1,31 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an -* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 2001-07-15 -* -* SUMMARY: Testing Number.prototype.toPrecision(precision) -* See EMCA 262 Edition 3 Section 15.7.4.7 -* -* Also see http://bugzilla.mozilla.org/show_bug.cgi?id=90551 -* -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an + * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 2001-07-15 + * + * SUMMARY: Testing Number.prototype.toPrecision(precision) + * See EMCA 262 Edition 3 Section 15.7.4.7 + * + * Also see http://bugzilla.mozilla.org/show_bug.cgi?id=90551 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; @@ -69,7 +70,7 @@ status = 'Section D of test: expect RangeError because precision > 21 '; actual = catchError('testNum.toPrecision(22)'); expect = cnIsRangeError; captureThis(); -*************************************************************************/ + *************************************************************************/ diff --git a/mozilla/js/tests/ecma_3/NumberFormatting/tostring-001.js b/mozilla/js/tests/ecma_3/NumberFormatting/tostring-001.js index e99912dd8e0..2d0d0a20c18 100644 --- a/mozilla/js/tests/ecma_3/NumberFormatting/tostring-001.js +++ b/mozilla/js/tests/ecma_3/NumberFormatting/tostring-001.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/ecma_3/Object/8.6.2.6-001.js b/mozilla/js/tests/ecma_3/Object/8.6.2.6-001.js index 1c7ef47709e..19e762bbc28 100644 --- a/mozilla/js/tests/ecma_3/Object/8.6.2.6-001.js +++ b/mozilla/js/tests/ecma_3/Object/8.6.2.6-001.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 09 September 2002 -* SUMMARY: Test for TypeError on invalid default string value of object -* See ECMA reference at http://bugzilla.mozilla.org/show_bug.cgi?id=167325 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 09 September 2002 + * SUMMARY: Test for TypeError on invalid default string value of object + * See ECMA reference at http://bugzilla.mozilla.org/show_bug.cgi?id=167325 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 167325; diff --git a/mozilla/js/tests/ecma_3/Object/class-001.js b/mozilla/js/tests/ecma_3/Object/class-001.js index 6572995ff77..c7b3347666a 100644 --- a/mozilla/js/tests/ecma_3/Object/class-001.js +++ b/mozilla/js/tests/ecma_3/Object/class-001.js @@ -1,29 +1,30 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 14 Mar 2001 -* -* SUMMARY: Testing the internal [[Class]] property of objects -* See ECMA-262 Edition 3 13-Oct-1999, Section 8.6.2 -* -* The getJSClass() function we use is in a utility file, e.g. "shell.js". -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 14 Mar 2001 + * + * SUMMARY: Testing the internal [[Class]] property of objects + * See ECMA-262 Edition 3 13-Oct-1999, Section 8.6.2 + * + * The getJSClass() function we use is in a utility file, e.g. "shell.js". + */ //------------------------------------------------------------------------------------------------- var i = 0; var UBound = 0; diff --git a/mozilla/js/tests/ecma_3/Object/class-002.js b/mozilla/js/tests/ecma_3/Object/class-002.js index bc5a7de6117..f05bcd1171a 100644 --- a/mozilla/js/tests/ecma_3/Object/class-002.js +++ b/mozilla/js/tests/ecma_3/Object/class-002.js @@ -1,32 +1,33 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 14 Mar 2001 -* -* SUMMARY: Testing the [[Class]] property of native constructors. -* See ECMA-262 Edition 3 13-Oct-1999, Section 8.6.2 re [[Class]] property. -* -* Same as class-001.js - but testing the constructors here, not object instances. -* Therefore we expect the [[Class]] property to equal 'Function' in each case. -* -* The getJSClass() function we use is in a utility file, e.g. "shell.js" -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 14 Mar 2001 + * + * SUMMARY: Testing the [[Class]] property of native constructors. + * See ECMA-262 Edition 3 13-Oct-1999, Section 8.6.2 re [[Class]] property. + * + * Same as class-001.js - but testing the constructors here, not object instances. + * Therefore we expect the [[Class]] property to equal 'Function' in each case. + * + * The getJSClass() function we use is in a utility file, e.g. "shell.js" + */ //------------------------------------------------------------------------------------------------- var i = 0; var UBound = 0; diff --git a/mozilla/js/tests/ecma_3/Object/class-003.js b/mozilla/js/tests/ecma_3/Object/class-003.js index 012a1799a9c..dc97652732e 100644 --- a/mozilla/js/tests/ecma_3/Object/class-003.js +++ b/mozilla/js/tests/ecma_3/Object/class-003.js @@ -1,36 +1,37 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 14 Mar 2001 -* -* SUMMARY: Testing the [[Class]] property of native error types. -* See ECMA-262 Edition 3, Section 8.6.2 for the [[Class]] property. -* -* Same as class-001.js - but testing only the native error types here. -* See ECMA-262 Edition 3, Section 15.11.6 for a list of these types. -* -* ECMA expects the [[Class]] property to equal 'Error' in each case. -* See ECMA-262 Edition 3, Sections 15.11.1.1 and 15.11.7.2 for this. -* See http://bugzilla.mozilla.org/show_bug.cgi?id=56868 -* -* The getJSClass() function we use is in a utility file, e.g. "shell.js" -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 14 Mar 2001 + * + * SUMMARY: Testing the [[Class]] property of native error types. + * See ECMA-262 Edition 3, Section 8.6.2 for the [[Class]] property. + * + * Same as class-001.js - but testing only the native error types here. + * See ECMA-262 Edition 3, Section 15.11.6 for a list of these types. + * + * ECMA expects the [[Class]] property to equal 'Error' in each case. + * See ECMA-262 Edition 3, Sections 15.11.1.1 and 15.11.7.2 for this. + * See http://bugzilla.mozilla.org/show_bug.cgi?id=56868 + * + * The getJSClass() function we use is in a utility file, e.g. "shell.js" + */ //------------------------------------------------------------------------------------------------- var i = 0; var UBound = 0; diff --git a/mozilla/js/tests/ecma_3/Object/class-004.js b/mozilla/js/tests/ecma_3/Object/class-004.js index 6c248cb7b1d..cc49f7a6a56 100644 --- a/mozilla/js/tests/ecma_3/Object/class-004.js +++ b/mozilla/js/tests/ecma_3/Object/class-004.js @@ -1,35 +1,36 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 14 Mar 2001 -* -* SUMMARY: Testing [[Class]] property of native error constructors. -* See ECMA-262 Edition 3, Section 8.6.2 for the [[Class]] property. -* -* See ECMA-262 Edition 3, Section 15.11.6 for the native error types. -* See http://bugzilla.mozilla.org/show_bug.cgi?id=56868 -* -* Same as class-003.js - but testing the constructors here, not object instances. -* Therefore we expect the [[Class]] property to equal 'Function' in each case. -* -* The getJSClass() function we use is in a utility file, e.g. "shell.js" -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 14 Mar 2001 + * + * SUMMARY: Testing [[Class]] property of native error constructors. + * See ECMA-262 Edition 3, Section 8.6.2 for the [[Class]] property. + * + * See ECMA-262 Edition 3, Section 15.11.6 for the native error types. + * See http://bugzilla.mozilla.org/show_bug.cgi?id=56868 + * + * Same as class-003.js - but testing the constructors here, not object instances. + * Therefore we expect the [[Class]] property to equal 'Function' in each case. + * + * The getJSClass() function we use is in a utility file, e.g. "shell.js" + */ //------------------------------------------------------------------------------------------------- var i = 0; var UBound = 0; diff --git a/mozilla/js/tests/ecma_3/Object/class-005.js b/mozilla/js/tests/ecma_3/Object/class-005.js index dd238f9b729..687d902750b 100644 --- a/mozilla/js/tests/ecma_3/Object/class-005.js +++ b/mozilla/js/tests/ecma_3/Object/class-005.js @@ -1,32 +1,33 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 14 Mar 2001 -* -* SUMMARY: Testing the internal [[Class]] property of user-defined types. -* See ECMA-262 Edition 3 13-Oct-1999, Section 8.6.2 re [[Class]] property. -* -* Same as class-001.js - but testing user-defined types here, not native types. -* Therefore we expect the [[Class]] property to equal 'Object' in each case - -* -* The getJSClass() function we use is in a utility file, e.g. "shell.js" -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 14 Mar 2001 + * + * SUMMARY: Testing the internal [[Class]] property of user-defined types. + * See ECMA-262 Edition 3 13-Oct-1999, Section 8.6.2 re [[Class]] property. + * + * Same as class-001.js - but testing user-defined types here, not native types. + * Therefore we expect the [[Class]] property to equal 'Object' in each case - + * + * The getJSClass() function we use is in a utility file, e.g. "shell.js" + */ //------------------------------------------------------------------------------------------------- var i = 0; var UBound = 0; diff --git a/mozilla/js/tests/ecma_3/Object/regress-72773.js b/mozilla/js/tests/ecma_3/Object/regress-72773.js index de3f2fcb1e7..ac227a36a78 100644 --- a/mozilla/js/tests/ecma_3/Object/regress-72773.js +++ b/mozilla/js/tests/ecma_3/Object/regress-72773.js @@ -1,34 +1,35 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 09 May 2001 -* -* SUMMARY: Regression test: we shouldn't crash on this code -* See http://bugzilla.mozilla.org/show_bug.cgi?id=72773 -* -* See ECMA-262 Edition 3 13-Oct-1999, Section 8.6.2 re [[Class]] property. -* -* Same as class-001.js - but testing user-defined types here, not native types. -* Therefore we expect the [[Class]] property to equal 'Object' in each case - -* -* The getJSClass() function we use is in a utility file, e.g. "shell.js" -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 09 May 2001 + * + * SUMMARY: Regression test: we shouldn't crash on this code + * See http://bugzilla.mozilla.org/show_bug.cgi?id=72773 + * + * See ECMA-262 Edition 3 13-Oct-1999, Section 8.6.2 re [[Class]] property. + * + * Same as class-001.js - but testing user-defined types here, not native types. + * Therefore we expect the [[Class]] property to equal 'Object' in each case - + * + * The getJSClass() function we use is in a utility file, e.g. "shell.js" + */ //------------------------------------------------------------------------------------------------- var bug = 72773; var summary = "Regression test: we shouldn't crash on this code"; diff --git a/mozilla/js/tests/ecma_3/Object/regress-79129-001.js b/mozilla/js/tests/ecma_3/Object/regress-79129-001.js index a5ff87cb9e2..b1845a0c07a 100644 --- a/mozilla/js/tests/ecma_3/Object/regress-79129-001.js +++ b/mozilla/js/tests/ecma_3/Object/regress-79129-001.js @@ -1,28 +1,29 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 06 May 2001 -* -* SUMMARY: Regression test: we shouldn't crash on this code -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=79129 -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 06 May 2001 + * + * SUMMARY: Regression test: we shouldn't crash on this code + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=79129 + */ //------------------------------------------------------------------------------------------------- var bug = 79129; var summary = "Regression test: we shouldn't crash on this code"; diff --git a/mozilla/js/tests/ecma_3/Object/shell.js b/mozilla/js/tests/ecma_3/Object/shell.js index b92ffd28d72..705d7cc89ce 100644 --- a/mozilla/js/tests/ecma_3/Object/shell.js +++ b/mozilla/js/tests/ecma_3/Object/shell.js @@ -1,38 +1,39 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 14 Mar 2001 -* -* SUMMARY: Utility functions for testing objects - -* -* Suppose obj is an instance of a native type, e.g. Number. -* Then obj.toString() invokes Number.prototype.toString(). -* We would also like to access Object.prototype.toString(). -* -* The difference is this: suppose obj = new Number(7). -* Invoking Number.prototype.toString() on this just returns 7. -* Object.prototype.toString() on this returns '[object Number]'. -* -* The getJSType() function below will return '[object Number]' for us. -* The getJSClass() function returns 'Number', the [[Class]] property of obj. -* See ECMA-262 Edition 3, 13-Oct-1999, Section 8.6.2 -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 14 Mar 2001 + * + * SUMMARY: Utility functions for testing objects - + * + * Suppose obj is an instance of a native type, e.g. Number. + * Then obj.toString() invokes Number.prototype.toString(). + * We would also like to access Object.prototype.toString(). + * + * The difference is this: suppose obj = new Number(7). + * Invoking Number.prototype.toString() on this just returns 7. + * Object.prototype.toString() on this returns '[object Number]'. + * + * The getJSType() function below will return '[object Number]' for us. + * The getJSClass() function returns 'Number', the [[Class]] property of obj. + * See ECMA-262 Edition 3, 13-Oct-1999, Section 8.6.2 + */ //------------------------------------------------------------------------------------------------- var cnNoObject = 'Unexpected Error!!! Parameter to this function must be an object'; var cnNoClass = 'Unexpected Error!!! Cannot find Class property'; diff --git a/mozilla/js/tests/ecma_3/Operators/11.13.1-001.js b/mozilla/js/tests/ecma_3/Operators/11.13.1-001.js index 89b0c05fda3..d1038eb2c5a 100644 --- a/mozilla/js/tests/ecma_3/Operators/11.13.1-001.js +++ b/mozilla/js/tests/ecma_3/Operators/11.13.1-001.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): brendan@mozilla.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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 08 May 2003 -* SUMMARY: JS should evaluate RHS before binding LHS implicit variable -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=204919 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): brendan@mozilla.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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 08 May 2003 + * SUMMARY: JS should evaluate RHS before binding LHS implicit variable + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=204919 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 204919; diff --git a/mozilla/js/tests/ecma_3/Operators/11.4.1-001.js b/mozilla/js/tests/ecma_3/Operators/11.4.1-001.js index 7edffd298d7..1ea085f7793 100644 --- a/mozilla/js/tests/ecma_3/Operators/11.4.1-001.js +++ b/mozilla/js/tests/ecma_3/Operators/11.4.1-001.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@fastmail.fm, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 14 April 2003 -* SUMMARY: |delete x.y| should return |true| if |x| has no property |y| -* See http://bugzilla.mozilla.org/show_bug.cgi?id=201987 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@fastmail.fm, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 14 April 2003 + * SUMMARY: |delete x.y| should return |true| if |x| has no property |y| + * See http://bugzilla.mozilla.org/show_bug.cgi?id=201987 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 201987; diff --git a/mozilla/js/tests/ecma_3/RegExp/15.10.2-1.js b/mozilla/js/tests/ecma_3/RegExp/15.10.2-1.js index f35c487072c..773747d9cc3 100644 --- a/mozilla/js/tests/ecma_3/RegExp/15.10.2-1.js +++ b/mozilla/js/tests/ecma_3/RegExp/15.10.2-1.js @@ -1,46 +1,46 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): rogerl@netscape.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 09 July 2002 -* SUMMARY: RegExp conformance test -* -* These testcases are derived from the examples in the ECMA-262 Ed.3 spec -* scattered through section 15.10.2. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): rogerl@netscape.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 09 July 2002 + * SUMMARY: RegExp conformance test + * + * These testcases are derived from the examples in the ECMA-262 Ed.3 spec + * scattered through section 15.10.2. + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = '(none)'; diff --git a/mozilla/js/tests/ecma_3/RegExp/15.10.3.1-1.js b/mozilla/js/tests/ecma_3/RegExp/15.10.3.1-1.js index b12a14c3950..0006f161028 100644 --- a/mozilla/js/tests/ecma_3/RegExp/15.10.3.1-1.js +++ b/mozilla/js/tests/ecma_3/RegExp/15.10.3.1-1.js @@ -1,47 +1,48 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 26 November 2000 -* -* -* SUMMARY: Passing (RegExp object, flag) to RegExp() function. -* This test arose from Bugzilla bug 61266. The ECMA3 section is: -* -* 15.10.3 The RegExp Constructor Called as a Function -* -* 15.10.3.1 RegExp(pattern, flags) -* -* If pattern is an object R whose [[Class]] property is "RegExp" -* and flags is undefined, then return R unchanged. Otherwise -* call the RegExp constructor (section 15.10.4.1), passing it the -* pattern and flags arguments and return the object constructed -* by that constructor. -* -* -* The current test will check the first scenario outlined above: -* -* "pattern" is itself a RegExp object R -* "flags" is undefined -* -* The flags parameter will be undefined in the sense of not being -* provided. We check that RegExp(R) returns R - -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 26 November 2000 + * + * + * SUMMARY: Passing (RegExp object, flag) to RegExp() function. + * This test arose from Bugzilla bug 61266. The ECMA3 section is: + * + * 15.10.3 The RegExp Constructor Called as a Function + * + * 15.10.3.1 RegExp(pattern, flags) + * + * If pattern is an object R whose [[Class]] property is "RegExp" + * and flags is undefined, then return R unchanged. Otherwise + * call the RegExp constructor (section 15.10.4.1), passing it the + * pattern and flags arguments and return the object constructed + * by that constructor. + * + * + * The current test will check the first scenario outlined above: + * + * "pattern" is itself a RegExp object R + * "flags" is undefined + * + * The flags parameter will be undefined in the sense of not being + * provided. We check that RegExp(R) returns R - + */ //------------------------------------------------------------------------------------------------- var bug = '61266'; var summary = 'Passing (RegExp object,flag) to RegExp() function'; diff --git a/mozilla/js/tests/ecma_3/RegExp/15.10.3.1-2.js b/mozilla/js/tests/ecma_3/RegExp/15.10.3.1-2.js index ed309b04663..2719a75a2fb 100644 --- a/mozilla/js/tests/ecma_3/RegExp/15.10.3.1-2.js +++ b/mozilla/js/tests/ecma_3/RegExp/15.10.3.1-2.js @@ -1,55 +1,56 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 26 November 2000 -* -* -* SUMMARY: Passing (RegExp object, flag) to RegExp() function. -* This test arose from Bugzilla bug 61266. The ECMA3 section is: -* -* 15.10.3 The RegExp Constructor Called as a Function -* -* 15.10.3.1 RegExp(pattern, flags) -* -* If pattern is an object R whose [[Class]] property is "RegExp" -* and flags is undefined, then return R unchanged. Otherwise -* call the RegExp constructor (section 15.10.4.1), passing it the -* pattern and flags arguments and return the object constructed -* by that constructor. -* -* -* The current test will check the first scenario outlined above: -* -* "pattern" is itself a RegExp object R -* "flags" is undefined -* -* This test is identical to test 15.10.3.1-1.js, except here we do: -* -* RegExp(R, undefined); -* -* instead of: -* -* RegExp(R); -* -* -* We check that RegExp(R, undefined) returns R - -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 26 November 2000 + * + * + * SUMMARY: Passing (RegExp object, flag) to RegExp() function. + * This test arose from Bugzilla bug 61266. The ECMA3 section is: + * + * 15.10.3 The RegExp Constructor Called as a Function + * + * 15.10.3.1 RegExp(pattern, flags) + * + * If pattern is an object R whose [[Class]] property is "RegExp" + * and flags is undefined, then return R unchanged. Otherwise + * call the RegExp constructor (section 15.10.4.1), passing it the + * pattern and flags arguments and return the object constructed + * by that constructor. + * + * + * The current test will check the first scenario outlined above: + * + * "pattern" is itself a RegExp object R + * "flags" is undefined + * + * This test is identical to test 15.10.3.1-1.js, except here we do: + * + * RegExp(R, undefined); + * + * instead of: + * + * RegExp(R); + * + * + * We check that RegExp(R, undefined) returns R - + */ //------------------------------------------------------------------------------------------------- var bug = '61266'; var summary = 'Passing (RegExp object,flag) to RegExp() function'; diff --git a/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-1.js b/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-1.js index c122abba2c4..e66aa5e59c2 100644 --- a/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-1.js +++ b/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-1.js @@ -1,51 +1,52 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 26 November 2000 -* -* -*SUMMARY: Passing a RegExp object to a RegExp() constructor. -*This test arose from Bugzilla bug 61266. The ECMA3 section is: -* -* 15.10.4.1 new RegExp(pattern, flags) -* -* If pattern is an object R whose [[Class]] property is "RegExp" and -* flags is undefined, then let P be the pattern used to construct R -* and let F be the flags used to construct R. If pattern is an object R -* whose [[Class]] property is "RegExp" and flags is not undefined, -* then throw a TypeError exception. Otherwise, let P be the empty string -* if pattern is undefined and ToString(pattern) otherwise, and let F be -* the empty string if flags is undefined and ToString(flags) otherwise. -* -* -*The current test will check the first scenario outlined above: -* -* "pattern" is itself a RegExp object R -* "flags" is undefined -* -* We check that a new RegExp object obj2 defined from these parameters -* is morally the same as the original RegExp object obj1. Of course, they -* can't be equal as objects - so we check their enumerable properties... -* -* In this test, the initial RegExp object obj1 will not include a flag. The flags -* parameter for obj2 will be undefined in the sense of not being provided. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 26 November 2000 + * + * + *SUMMARY: Passing a RegExp object to a RegExp() constructor. + *This test arose from Bugzilla bug 61266. The ECMA3 section is: + * + * 15.10.4.1 new RegExp(pattern, flags) + * + * If pattern is an object R whose [[Class]] property is "RegExp" and + * flags is undefined, then let P be the pattern used to construct R + * and let F be the flags used to construct R. If pattern is an object R + * whose [[Class]] property is "RegExp" and flags is not undefined, + * then throw a TypeError exception. Otherwise, let P be the empty string + * if pattern is undefined and ToString(pattern) otherwise, and let F be + * the empty string if flags is undefined and ToString(flags) otherwise. + * + * + *The current test will check the first scenario outlined above: + * + * "pattern" is itself a RegExp object R + * "flags" is undefined + * + * We check that a new RegExp object obj2 defined from these parameters + * is morally the same as the original RegExp object obj1. Of course, they + * can't be equal as objects - so we check their enumerable properties... + * + * In this test, the initial RegExp object obj1 will not include a flag. The flags + * parameter for obj2 will be undefined in the sense of not being provided. + */ //------------------------------------------------------------------------------------------------- var bug = '61266'; var summary = 'Passing a RegExp object to a RegExp() constructor'; diff --git a/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-2.js b/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-2.js index e8613a47c39..83607d653f6 100644 --- a/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-2.js +++ b/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-2.js @@ -1,57 +1,58 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 26 November 2000 -* -* -*SUMMARY: Passing a RegExp object to a RegExp() constructor. -*This test arose from Bugzilla bug 61266. The ECMA3 section is: -* -* 15.10.4.1 new RegExp(pattern, flags) -* -* If pattern is an object R whose [[Class]] property is "RegExp" and -* flags is undefined, then let P be the pattern used to construct R -* and let F be the flags used to construct R. If pattern is an object R -* whose [[Class]] property is "RegExp" and flags is not undefined, -* then throw a TypeError exception. Otherwise, let P be the empty string -* if pattern is undefined and ToString(pattern) otherwise, and let F be -* the empty string if flags is undefined and ToString(flags) otherwise. -* -* -*The current test will check the first scenario outlined above: -* -* "pattern" is itself a RegExp object R -* "flags" is undefined -* -* We check that a new RegExp object obj2 defined from these parameters -* is morally the same as the original RegExp object obj1. Of course, they -* can't be equal as objects - so we check their enumerable properties... -* -* In this test, the initial RegExp object obj1 will not include a flag. This test is -* identical to test 15.10.4.1-1.js, except that here we use this syntax: -* -* obj2 = new RegExp(obj1, undefined); -* -* instead of: -* -* obj2 = new RegExp(obj1); -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 26 November 2000 + * + * + *SUMMARY: Passing a RegExp object to a RegExp() constructor. + *This test arose from Bugzilla bug 61266. The ECMA3 section is: + * + * 15.10.4.1 new RegExp(pattern, flags) + * + * If pattern is an object R whose [[Class]] property is "RegExp" and + * flags is undefined, then let P be the pattern used to construct R + * and let F be the flags used to construct R. If pattern is an object R + * whose [[Class]] property is "RegExp" and flags is not undefined, + * then throw a TypeError exception. Otherwise, let P be the empty string + * if pattern is undefined and ToString(pattern) otherwise, and let F be + * the empty string if flags is undefined and ToString(flags) otherwise. + * + * + *The current test will check the first scenario outlined above: + * + * "pattern" is itself a RegExp object R + * "flags" is undefined + * + * We check that a new RegExp object obj2 defined from these parameters + * is morally the same as the original RegExp object obj1. Of course, they + * can't be equal as objects - so we check their enumerable properties... + * + * In this test, the initial RegExp object obj1 will not include a flag. This test is + * identical to test 15.10.4.1-1.js, except that here we use this syntax: + * + * obj2 = new RegExp(obj1, undefined); + * + * instead of: + * + * obj2 = new RegExp(obj1); + */ //------------------------------------------------------------------------------------------------- var bug = '61266'; var summary = 'Passing a RegExp object to a RegExp() constructor'; diff --git a/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-3.js b/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-3.js index 03c44989aa9..092e8713284 100644 --- a/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-3.js +++ b/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-3.js @@ -1,51 +1,52 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 26 November 2000 -* -* -*SUMMARY: Passing a RegExp object to a RegExp() constructor. -*This test arose from Bugzilla bug 61266. The ECMA3 section is: -* -* 15.10.4.1 new RegExp(pattern, flags) -* -* If pattern is an object R whose [[Class]] property is "RegExp" and -* flags is undefined, then let P be the pattern used to construct R -* and let F be the flags used to construct R. If pattern is an object R -* whose [[Class]] property is "RegExp" and flags is not undefined, -* then throw a TypeError exception. Otherwise, let P be the empty string -* if pattern is undefined and ToString(pattern) otherwise, and let F be -* the empty string if flags is undefined and ToString(flags) otherwise. -* -* -*The current test will check the first scenario outlined above: -* -* "pattern" is itself a RegExp object R -* "flags" is undefined -* -* We check that a new RegExp object obj2 defined from these parameters -* is morally the same as the original RegExp object obj1. Of course, they -* can't be equal as objects - so we check their enumerable properties... -* -* In this test, the initial RegExp obj1 will include a flag. The flags -* parameter for obj2 will be undefined in the sense of not being provided. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 26 November 2000 + * + * + *SUMMARY: Passing a RegExp object to a RegExp() constructor. + *This test arose from Bugzilla bug 61266. The ECMA3 section is: + * + * 15.10.4.1 new RegExp(pattern, flags) + * + * If pattern is an object R whose [[Class]] property is "RegExp" and + * flags is undefined, then let P be the pattern used to construct R + * and let F be the flags used to construct R. If pattern is an object R + * whose [[Class]] property is "RegExp" and flags is not undefined, + * then throw a TypeError exception. Otherwise, let P be the empty string + * if pattern is undefined and ToString(pattern) otherwise, and let F be + * the empty string if flags is undefined and ToString(flags) otherwise. + * + * + *The current test will check the first scenario outlined above: + * + * "pattern" is itself a RegExp object R + * "flags" is undefined + * + * We check that a new RegExp object obj2 defined from these parameters + * is morally the same as the original RegExp object obj1. Of course, they + * can't be equal as objects - so we check their enumerable properties... + * + * In this test, the initial RegExp obj1 will include a flag. The flags + * parameter for obj2 will be undefined in the sense of not being provided. + */ //------------------------------------------------------------------------------------------------- var bug = '61266'; var summary = 'Passing a RegExp object to a RegExp() constructor'; diff --git a/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-4.js b/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-4.js index e767a696ff0..af4924045cc 100644 --- a/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-4.js +++ b/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-4.js @@ -1,57 +1,58 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 26 November 2000 -* -* -*SUMMARY: Passing a RegExp object to a RegExp() constructor. -*This test arose from Bugzilla bug 61266. The ECMA3 section is: -* -* 15.10.4.1 new RegExp(pattern, flags) -* -* If pattern is an object R whose [[Class]] property is "RegExp" and -* flags is undefined, then let P be the pattern used to construct R -* and let F be the flags used to construct R. If pattern is an object R -* whose [[Class]] property is "RegExp" and flags is not undefined, -* then throw a TypeError exception. Otherwise, let P be the empty string -* if pattern is undefined and ToString(pattern) otherwise, and let F be -* the empty string if flags is undefined and ToString(flags) otherwise. -* -* -*The current test will check the first scenario outlined above: -* -* "pattern" is itself a RegExp object R -* "flags" is undefined -* -* We check that a new RegExp object obj2 defined from these parameters -* is morally the same as the original RegExp object obj1. Of course, they -* can't be equal as objects - so we check their enumerable properties... -* -* In this test, the initial RegExp object obj1 will include a flag. This test is -* identical to test 15.10.4.1-3.js, except that here we use this syntax: -* -* obj2 = new RegExp(obj1, undefined); -* -* instead of: -* -* obj2 = new RegExp(obj1); -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 26 November 2000 + * + * + *SUMMARY: Passing a RegExp object to a RegExp() constructor. + *This test arose from Bugzilla bug 61266. The ECMA3 section is: + * + * 15.10.4.1 new RegExp(pattern, flags) + * + * If pattern is an object R whose [[Class]] property is "RegExp" and + * flags is undefined, then let P be the pattern used to construct R + * and let F be the flags used to construct R. If pattern is an object R + * whose [[Class]] property is "RegExp" and flags is not undefined, + * then throw a TypeError exception. Otherwise, let P be the empty string + * if pattern is undefined and ToString(pattern) otherwise, and let F be + * the empty string if flags is undefined and ToString(flags) otherwise. + * + * + *The current test will check the first scenario outlined above: + * + * "pattern" is itself a RegExp object R + * "flags" is undefined + * + * We check that a new RegExp object obj2 defined from these parameters + * is morally the same as the original RegExp object obj1. Of course, they + * can't be equal as objects - so we check their enumerable properties... + * + * In this test, the initial RegExp object obj1 will include a flag. This test is + * identical to test 15.10.4.1-3.js, except that here we use this syntax: + * + * obj2 = new RegExp(obj1, undefined); + * + * instead of: + * + * obj2 = new RegExp(obj1); + */ //------------------------------------------------------------------------------------------------- var bug = '61266'; var summary = 'Passing a RegExp object to a RegExp() constructor'; diff --git a/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-5-n.js b/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-5-n.js index 5868e7739dc..917cc8b434b 100644 --- a/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-5-n.js +++ b/mozilla/js/tests/ecma_3/RegExp/15.10.4.1-5-n.js @@ -1,47 +1,48 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 26 November 2000 -* -* -*SUMMARY: Passing a RegExp object to a RegExp() constructor. -*This test arose from Bugzilla bug 61266. The ECMA3 section is: -* -* 15.10.4.1 new RegExp(pattern, flags) -* -* If pattern is an object R whose [[Class]] property is "RegExp" and -* flags is undefined, then let P be the pattern used to construct R -* and let F be the flags used to construct R. If pattern is an object R -* whose [[Class]] property is "RegExp" and flags is not undefined, -* then throw a TypeError exception. Otherwise, let P be the empty string -* if pattern is undefined and ToString(pattern) otherwise, and let F be -* the empty string if flags is undefined and ToString(flags) otherwise. -* -* -*The current test will check the second scenario outlined above: -* -* "pattern" is itself a RegExp object R -* "flags" is NOT undefined -* -* This should throw an exception ... we test for this. -* -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 26 November 2000 + * + * + *SUMMARY: Passing a RegExp object to a RegExp() constructor. + *This test arose from Bugzilla bug 61266. The ECMA3 section is: + * + * 15.10.4.1 new RegExp(pattern, flags) + * + * If pattern is an object R whose [[Class]] property is "RegExp" and + * flags is undefined, then let P be the pattern used to construct R + * and let F be the flags used to construct R. If pattern is an object R + * whose [[Class]] property is "RegExp" and flags is not undefined, + * then throw a TypeError exception. Otherwise, let P be the empty string + * if pattern is undefined and ToString(pattern) otherwise, and let F be + * the empty string if flags is undefined and ToString(flags) otherwise. + * + * + *The current test will check the second scenario outlined above: + * + * "pattern" is itself a RegExp object R + * "flags" is NOT undefined + * + * This should throw an exception ... we test for this. + * + */ //------------------------------------------------------------------------------------------------- var bug = '61266'; var summary = 'Negative test: Passing (RegExp object, flag) to RegExp() constructor'; diff --git a/mozilla/js/tests/ecma_3/RegExp/15.10.6.2-1.js b/mozilla/js/tests/ecma_3/RegExp/15.10.6.2-1.js index 365e32d6f6c..4c88e161db2 100644 --- a/mozilla/js/tests/ecma_3/RegExp/15.10.6.2-1.js +++ b/mozilla/js/tests/ecma_3/RegExp/15.10.6.2-1.js @@ -1,64 +1,65 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 23 October 2001 -* -* SUMMARY: Testing regexps with the global flag set. -* NOT every substring fitting the given pattern will be matched. -* The parent string is CONSUMED as successive matches are found. -* -* From the ECMA-262 Final spec: -* -* 15.10.6.2 RegExp.prototype.exec(string) -* Performs a regular expression match of string against the regular -* expression and returns an Array object containing the results of -* the match, or null if the string did not match. -* -* The string ToString(string) is searched for an occurrence of the -* regular expression pattern as follows: -* -* 1. Let S be the value of ToString(string). -* 2. Let length be the length of S. -* 3. Let lastIndex be the value of the lastIndex property. -* 4. Let i be the value of ToInteger(lastIndex). -* 5. If the global property is false, let i = 0. -* 6. If i < 0 or i > length then set lastIndex to 0 and return null. -* 7. Call [[Match]], giving it the arguments S and i. -* If [[Match]] returned failure, go to step 8; -* otherwise let r be its State result and go to step 10. -* 8. Let i = i+1. -* 9. Go to step 6. -* 10. Let e be r's endIndex value. -* 11. If the global property is true, set lastIndex to e. -* -* etc. -* -* -* So when the global flag is set, |lastIndex| is incremented every time -* there is a match; not from i to i+1, but from i to "endIndex" e: -* -* e = (index of last input character matched so far by the pattern) + 1 -* -* Thus in the example below, the first endIndex e occurs after the -* first match 'a b'. The next match will begin AFTER this, and so -* will NOT be 'b c', but rather 'c d'. Similarly, 'd e' won't be matched. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 23 October 2001 + * + * SUMMARY: Testing regexps with the global flag set. + * NOT every substring fitting the given pattern will be matched. + * The parent string is CONSUMED as successive matches are found. + * + * From the ECMA-262 Final spec: + * + * 15.10.6.2 RegExp.prototype.exec(string) + * Performs a regular expression match of string against the regular + * expression and returns an Array object containing the results of + * the match, or null if the string did not match. + * + * The string ToString(string) is searched for an occurrence of the + * regular expression pattern as follows: + * + * 1. Let S be the value of ToString(string). + * 2. Let length be the length of S. + * 3. Let lastIndex be the value of the lastIndex property. + * 4. Let i be the value of ToInteger(lastIndex). + * 5. If the global property is false, let i = 0. + * 6. If i < 0 or i > length then set lastIndex to 0 and return null. + * 7. Call [[Match]], giving it the arguments S and i. + * If [[Match]] returned failure, go to step 8; + * otherwise let r be its State result and go to step 10. + * 8. Let i = i+1. + * 9. Go to step 6. + * 10. Let e be r's endIndex value. + * 11. If the global property is true, set lastIndex to e. + * + * etc. + * + * + * So when the global flag is set, |lastIndex| is incremented every time + * there is a match; not from i to i+1, but from i to "endIndex" e: + * + * e = (index of last input character matched so far by the pattern) + 1 + * + * Thus in the example below, the first endIndex e occurs after the + * first match 'a b'. The next match will begin AFTER this, and so + * will NOT be 'b c', but rather 'c d'. Similarly, 'd e' won't be matched. + */ //----------------------------------------------------------------------------- var i = 0; var bug = '(none)'; diff --git a/mozilla/js/tests/ecma_3/RegExp/15.10.6.2-2.js b/mozilla/js/tests/ecma_3/RegExp/15.10.6.2-2.js index cce4c2ce627..8f0d01fae9d 100644 --- a/mozilla/js/tests/ecma_3/RegExp/15.10.6.2-2.js +++ b/mozilla/js/tests/ecma_3/RegExp/15.10.6.2-2.js @@ -1,96 +1,96 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 18 Feb 2002 -* SUMMARY: Testing re.exec(str) when re.lastIndex is < 0 or > str.length -* -* Case 1: If re has the global flag set, then re(str) should be null -* Case 2: If re doesn't have this set, then re(str) should be unaffected -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=76717 -* -* -* From the ECMA-262 Final spec: -* -* 15.10.6.2 RegExp.prototype.exec(string) -* Performs a regular expression match of string against the regular -* expression and returns an Array object containing the results of -* the match, or null if the string did not match. -* -* The string ToString(string) is searched for an occurrence of the -* regular expression pattern as follows: -* -* 1. Let S be the value of ToString(string). -* 2. Let length be the length of S. -* 3. Let lastIndex be the value of the lastIndex property. -* 4. Let i be the value of ToInteger(lastIndex). -* 5. If the global property is false, let i = 0. -* 6. If i < 0 or i > length then set lastIndex to 0 and return null. -* 7. Call [[Match]], giving it the arguments S and i. -* If [[Match]] returned failure, go to step 8; -* otherwise let r be its State result and go to step 10. -* 8. Let i = i+1. -* 9. Go to step 6. -* 10. Let e be r's endIndex value. -* 11. If the global property is true, set lastIndex to e. -* -* etc. -* -* -* So: -* -* A. If the global flag is not set, |lastIndex| is set to 0 -* before the match is attempted; thus the match is unaffected. -* -* B. If the global flag IS set and re.lastIndex is >= 0 and <= str.length, -* |lastIndex| is incremented every time there is a match; not from -* i to i+1, but from i to "endIndex" e: -* -* e = (index of last input character matched so far by the pattern) + 1 -* -* The match is then attempted from this position in the string (Step 7). -* -* C. When the global flag IS set and re.lastIndex is < 0 or > str.length, -* |lastIndex| is set to 0 and the match returns null. -* -* -* Note the |lastIndex| property is writeable, and may be set arbitrarily -* by the programmer - and we will do that below. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 18 Feb 2002 + * SUMMARY: Testing re.exec(str) when re.lastIndex is < 0 or > str.length + * + * Case 1: If re has the global flag set, then re(str) should be null + * Case 2: If re doesn't have this set, then re(str) should be unaffected + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=76717 + * + * + * From the ECMA-262 Final spec: + * + * 15.10.6.2 RegExp.prototype.exec(string) + * Performs a regular expression match of string against the regular + * expression and returns an Array object containing the results of + * the match, or null if the string did not match. + * + * The string ToString(string) is searched for an occurrence of the + * regular expression pattern as follows: + * + * 1. Let S be the value of ToString(string). + * 2. Let length be the length of S. + * 3. Let lastIndex be the value of the lastIndex property. + * 4. Let i be the value of ToInteger(lastIndex). + * 5. If the global property is false, let i = 0. + * 6. If i < 0 or i > length then set lastIndex to 0 and return null. + * 7. Call [[Match]], giving it the arguments S and i. + * If [[Match]] returned failure, go to step 8; + * otherwise let r be its State result and go to step 10. + * 8. Let i = i+1. + * 9. Go to step 6. + * 10. Let e be r's endIndex value. + * 11. If the global property is true, set lastIndex to e. + * + * etc. + * + * + * So: + * + * A. If the global flag is not set, |lastIndex| is set to 0 + * before the match is attempted; thus the match is unaffected. + * + * B. If the global flag IS set and re.lastIndex is >= 0 and <= str.length, + * |lastIndex| is incremented every time there is a match; not from + * i to i+1, but from i to "endIndex" e: + * + * e = (index of last input character matched so far by the pattern) + 1 + * + * The match is then attempted from this position in the string (Step 7). + * + * C. When the global flag IS set and re.lastIndex is < 0 or > str.length, + * |lastIndex| is set to 0 and the match returns null. + * + * + * Note the |lastIndex| property is writeable, and may be set arbitrarily + * by the programmer - and we will do that below. + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 76717; diff --git a/mozilla/js/tests/ecma_3/RegExp/octal-001.js b/mozilla/js/tests/ecma_3/RegExp/octal-001.js index 34b3e34655c..dc41513f431 100644 --- a/mozilla/js/tests/ecma_3/RegExp/octal-001.js +++ b/mozilla/js/tests/ecma_3/RegExp/octal-001.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 18 July 2002 -* SUMMARY: Testing octal sequences in regexps -* See http://bugzilla.mozilla.org/show_bug.cgi?id=141078 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 18 July 2002 + * SUMMARY: Testing octal sequences in regexps + * See http://bugzilla.mozilla.org/show_bug.cgi?id=141078 + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 141078; diff --git a/mozilla/js/tests/ecma_3/RegExp/octal-002.js b/mozilla/js/tests/ecma_3/RegExp/octal-002.js index 6d75e48a5b2..f45b9eacf7c 100644 --- a/mozilla/js/tests/ecma_3/RegExp/octal-002.js +++ b/mozilla/js/tests/ecma_3/RegExp/octal-002.js @@ -1,62 +1,62 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 31 July 2002 -* SUMMARY: Testing regexps containing octal escape sequences -* This is an elaboration of mozilla/js/tests/ecma_2/RegExp/octal-003.js -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=141078 -* for a reference on octal escape sequences in regexps. -* -* NOTE: -* We will use the identities '\011' === '\u0009' === '\x09' === '\t' -* -* The first is an octal escape sequence (\(0-3)OO; O an octal digit). -* See ECMA-262 Edition 2, Section 7.7.4 "String Literals". These were -* dropped in Edition 3 but we support them for backward compatibility. -* -* The second is a Unicode escape sequence (\uHHHH; H a hex digit). -* Since octal 11 = hex 9, the two escapes define the same character. -* -* The third is a hex escape sequence (\xHH; H a hex digit). -* Since hex 09 = hex 0009, this defines the same character. -* -* The fourth is the familiar escape sequence for a horizontal tab, -* defined in the ECMA spec as having Unicode value \u0009. -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 31 July 2002 + * SUMMARY: Testing regexps containing octal escape sequences + * This is an elaboration of mozilla/js/tests/ecma_2/RegExp/octal-003.js + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=141078 + * for a reference on octal escape sequences in regexps. + * + * NOTE: + * We will use the identities '\011' === '\u0009' === '\x09' === '\t' + * + * The first is an octal escape sequence (\(0-3)OO; O an octal digit). + * See ECMA-262 Edition 2, Section 7.7.4 "String Literals". These were + * dropped in Edition 3 but we support them for backward compatibility. + * + * The second is a Unicode escape sequence (\uHHHH; H a hex digit). + * Since octal 11 = hex 9, the two escapes define the same character. + * + * The third is a hex escape sequence (\xHH; H a hex digit). + * Since hex 09 = hex 0009, this defines the same character. + * + * The fourth is the familiar escape sequence for a horizontal tab, + * defined in the ECMA spec as having Unicode value \u0009. + */ //----------------------------------------------------------------------------- var i = 0; var bug = 141078; diff --git a/mozilla/js/tests/ecma_3/RegExp/perlstress-001.js b/mozilla/js/tests/ecma_3/RegExp/perlstress-001.js index fd544c2281d..3668e2b2b31 100644 --- a/mozilla/js/tests/ecma_3/RegExp/perlstress-001.js +++ b/mozilla/js/tests/ecma_3/RegExp/perlstress-001.js @@ -1,55 +1,55 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com, rogerl@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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 2002-07-07 -* SUMMARY: Testing JS RegExp engine against Perl 5 RegExp engine. -* Adjust cnLBOUND, cnUBOUND below to restrict which sections are tested. -* -* This test was created by running various patterns and strings through the -* Perl 5 RegExp engine. We saved the results below to test the JS engine. -* -* NOTE: ECMA/JS and Perl do differ on certain points. We have either commented -* out such sections altogether, or modified them to fit what we expect from JS. -* -* EXAMPLES: -* -* - In JS, regexp captures (/(a) etc./) must hold |undefined| if not used. -* See http://bugzilla.mozilla.org/show_bug.cgi?id=123437. -* By contrast, in Perl, unmatched captures hold the empty string. -* We have modified such sections accordingly. Example: + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com, rogerl@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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 2002-07-07 + * SUMMARY: Testing JS RegExp engine against Perl 5 RegExp engine. + * Adjust cnLBOUND, cnUBOUND below to restrict which sections are tested. + * + * This test was created by running various patterns and strings through the + * Perl 5 RegExp engine. We saved the results below to test the JS engine. + * + * NOTE: ECMA/JS and Perl do differ on certain points. We have either commented + * out such sections altogether, or modified them to fit what we expect from JS. + * + * EXAMPLES: + * + * - In JS, regexp captures (/(a) etc./) must hold |undefined| if not used. + * See http://bugzilla.mozilla.org/show_bug.cgi?id=123437. + * By contrast, in Perl, unmatched captures hold the empty string. + * We have modified such sections accordingly. Example: pattern = /^([^a-z])|(\^)$/; string = '.'; @@ -59,29 +59,29 @@ addThis(); -* - In JS, you can't refer to a capture before it's encountered & completed -* -* - Perl supports ] & ^] inside a [], ECMA does not -* -* - ECMA does support (?: (?= and (?! operators, but doesn't support (?< etc. -* -* - ECMA doesn't support (?imsx or (?-imsx -* -* - ECMA doesn't support (?(condition) -* -* - Perl has \Z has end-of-line, ECMA doesn't -* -* - In ECMA, ^ matches only the empty string before the first character -* -* - In ECMA, $ matches only the empty string at end of input (unless multiline) -* -* - ECMA spec says that each atom in a range must be a single character -* -* - ECMA doesn't support \A -* -* - ECMA doesn't have rules for [: -* -*/ + * - In JS, you can't refer to a capture before it's encountered & completed + * + * - Perl supports ] & ^] inside a [], ECMA does not + * + * - ECMA does support (?: (?= and (?! operators, but doesn't support (?< etc. + * + * - ECMA doesn't support (?imsx or (?-imsx + * + * - ECMA doesn't support (?(condition) + * + * - Perl has \Z has end-of-line, ECMA doesn't + * + * - In ECMA, ^ matches only the empty string before the first character + * + * - In ECMA, $ matches only the empty string at end of input (unless multiline) + * + * - ECMA spec says that each atom in a range must be a single character + * + * - ECMA doesn't support \A + * + * - ECMA doesn't have rules for [: + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 85721; @@ -346,7 +346,7 @@ string = 'a]b'; actualmatch = string.match(pattern); expectedmatch = Array('a]b'); addThis(); -*/ + */ status = inSection(36); pattern = /a[^bc]d/; @@ -369,7 +369,7 @@ string = 'adc'; actualmatch = string.match(pattern); expectedmatch = Array('adc'); addThis(); -*/ + */ status = inSection(39); pattern = /\ba\b/; @@ -889,7 +889,7 @@ string = 'bbaababbabaaaaabbaaaabba'; actualmatch = string.match(pattern); expectedmatch = Array('bbaaaabba', 'bba', 'b', 'a'); addThis(); -*/ + */ status = inSection(113); pattern = /abc/i; @@ -1122,7 +1122,7 @@ string = 'A]B'; actualmatch = string.match(pattern); expectedmatch = Array('A]B'); addThis(); -*/ + */ status = inSection(146); pattern = /a[^bc]d/i; @@ -1145,7 +1145,7 @@ string = 'ADC'; actualmatch = string.match(pattern); expectedmatch = Array('ADC'); addThis(); -*/ + */ status = inSection(149); pattern = /ab|cd/i; @@ -1725,7 +1725,7 @@ string = 'aaaaaaaaaa'; actualmatch = string.match(pattern); expectedmatch = Array('aaaaaaaaaa', 'aaaa'); addThis(); -*/ + */ status = inSection(231); pattern = /((a{4})+)/; @@ -1784,7 +1784,7 @@ string = 'b'; actualmatch = string.match(pattern); expectedmatch = Array('b'); addThis(); -*/ + */ status = inSection(239); pattern = /(?:..)*a/; @@ -2012,7 +2012,7 @@ string = 'a\nB'; actualmatch = string.match(pattern); expectedmatch = Array('a\nB', 'a\n'); addThis(); -*/ + */ status = inSection(269); pattern = /(?:c|d)(?:)(?:a(?:)(?:b)(?:b(?:))(?:b(?:)(?:b)))/; @@ -2063,7 +2063,7 @@ string = 'aaac'; actualmatch = string.match(pattern); expectedmatch = Array('aaac'); addThis(); -*/ + */ /* ECMA doesn't support (?< etc status = inSection(276); @@ -2163,7 +2163,7 @@ string = 'a\nb\nc\n'; actualmatch = string.match(pattern); expectedmatch = Array('b', 'b'); addThis(); -*/ + */ /* ECMA doesn't support (?(condition) status = inSection(290); @@ -2235,7 +2235,7 @@ string = 'a'; actualmatch = string.match(pattern); expectedmatch = Array('a'); addThis(); -*/ + */ status = inSection(300); pattern = /(?=(a+?))(\1ab)/; @@ -2258,7 +2258,7 @@ string = 'a'; actualmatch = string.match(pattern); expectedmatch = Array('', 'a'); addThis(); -*/ + */ status = inSection(303); pattern = /(?=(a+?))(\1ab)/; @@ -2327,7 +2327,7 @@ string = 'aaab'; actualmatch = string.match(pattern); expectedmatch = Array('aaab'); addThis(); -*/ + */ status = inSection(312); pattern = /([[:]+)/; @@ -2357,7 +2357,7 @@ string = 'abc'; actualmatch = string.match(pattern); expectedmatch = Array('abc'); addThis(); -*/ + */ /* ECMA doesn't support (?> status = inSection(316); @@ -2380,7 +2380,7 @@ string = '((abc(ade)ufh()()x'; actualmatch = string.match(pattern); expectedmatch = Array('abc(ade)ufh()()x', 'x'); addThis(); -*/ + */ /* Perl has \Z has end-of-line, ECMA doesn't status = inSection(319); @@ -2396,7 +2396,7 @@ string = 'a\nb\n'; actualmatch = string.match(pattern); expectedmatch = Array(''); addThis(); -*/ + */ status = inSection(321); pattern = /$/; @@ -2419,7 +2419,7 @@ string = 'b\na\n'; actualmatch = string.match(pattern); expectedmatch = Array(''); addThis(); -*/ + */ status = inSection(324); pattern = /$/; @@ -2442,7 +2442,7 @@ string = 'b\na'; actualmatch = string.match(pattern); expectedmatch = Array(''); addThis(); -*/ + */ status = inSection(327); pattern = /$/; @@ -2465,7 +2465,7 @@ string = 'a\nb\n'; actualmatch = string.match(pattern); expectedmatch = Array(''); addThis(); -*/ + */ status = inSection(330); pattern = /$/m; @@ -2488,7 +2488,7 @@ string = 'b\na\n'; actualmatch = string.match(pattern); expectedmatch = Array(''); addThis(); -*/ + */ status = inSection(333); pattern = /$/m; @@ -2511,7 +2511,7 @@ string = 'b\na'; actualmatch = string.match(pattern); expectedmatch = Array(''); addThis(); -*/ + */ status = inSection(336); pattern = /$/m; @@ -2527,7 +2527,7 @@ string = 'b\na\n'; actualmatch = string.match(pattern); expectedmatch = Array('a'); addThis(); -*/ + */ /* $ only matches end of input unless multiline status = inSection(338); @@ -2536,7 +2536,7 @@ string = 'b\na\n'; actualmatch = string.match(pattern); expectedmatch = Array('a'); addThis(); -*/ + */ /* Perl has \Z has end-of-line, ECMA doesn't status = inSection(339); @@ -2552,7 +2552,7 @@ string = 'b\na'; actualmatch = string.match(pattern); expectedmatch = Array('a'); addThis(); -*/ + */ status = inSection(341); pattern = /a$/; @@ -2575,7 +2575,7 @@ string = 'b\na\n'; actualmatch = string.match(pattern); expectedmatch = Array('a'); addThis(); -*/ + */ status = inSection(344); pattern = /a$/m; @@ -2598,7 +2598,7 @@ string = 'b\na'; actualmatch = string.match(pattern); expectedmatch = Array('a'); addThis(); -*/ + */ status = inSection(347); pattern = /a$/m; @@ -2614,7 +2614,7 @@ string = 'b\naa\n'; actualmatch = string.match(pattern); expectedmatch = Array('aa'); addThis(); -*/ + */ /* $ only matches end of input unless multiline status = inSection(349); @@ -2623,7 +2623,7 @@ string = 'b\naa\n'; actualmatch = string.match(pattern); expectedmatch = Array('aa'); addThis(); -*/ + */ /* Perl has \Z has end-of-line, ECMA doesn't status = inSection(350); @@ -2639,7 +2639,7 @@ string = 'b\naa'; actualmatch = string.match(pattern); expectedmatch = Array('aa'); addThis(); -*/ + */ status = inSection(352); pattern = /aa$/; @@ -2662,7 +2662,7 @@ string = 'b\naa\n'; actualmatch = string.match(pattern); expectedmatch = Array('aa'); addThis(); -*/ + */ status = inSection(355); pattern = /aa$/m; @@ -2685,7 +2685,7 @@ string = 'b\naa'; actualmatch = string.match(pattern); expectedmatch = Array('aa'); addThis(); -*/ + */ status = inSection(358); pattern = /aa$/m; @@ -2701,7 +2701,7 @@ string = 'b\nab\n'; actualmatch = string.match(pattern); expectedmatch = Array('ab'); addThis(); -*/ + */ /* $ only matches end of input unless multiline status = inSection(360); @@ -2710,7 +2710,7 @@ string = 'b\nab\n'; actualmatch = string.match(pattern); expectedmatch = Array('ab'); addThis(); -*/ + */ /* Perl has \Z has end-of-line, ECMA doesn't status = inSection(361); @@ -2726,7 +2726,7 @@ string = 'b\nab'; actualmatch = string.match(pattern); expectedmatch = Array('ab'); addThis(); -*/ + */ status = inSection(363); pattern = /ab$/; @@ -2749,7 +2749,7 @@ string = 'b\nab\n'; actualmatch = string.match(pattern); expectedmatch = Array('ab'); addThis(); -*/ + */ status = inSection(366); pattern = /ab$/m; @@ -2772,7 +2772,7 @@ string = 'b\nab'; actualmatch = string.match(pattern); expectedmatch = Array('ab'); addThis(); -*/ + */ status = inSection(369); pattern = /ab$/m; @@ -2788,7 +2788,7 @@ string = 'b\nabb\n'; actualmatch = string.match(pattern); expectedmatch = Array('abb'); addThis(); -*/ + */ /* $ only matches end of input unless multiline status = inSection(371); @@ -2797,7 +2797,7 @@ string = 'b\nabb\n'; actualmatch = string.match(pattern); expectedmatch = Array('abb'); addThis(); -*/ + */ /* Perl has \Z has end-of-line, ECMA doesn't status = inSection(372); @@ -2813,7 +2813,7 @@ string = 'b\nabb'; actualmatch = string.match(pattern); expectedmatch = Array('abb'); addThis(); -*/ + */ status = inSection(374); pattern = /abb$/; @@ -2836,7 +2836,7 @@ string = 'b\nabb\n'; actualmatch = string.match(pattern); expectedmatch = Array('abb'); addThis(); -*/ + */ status = inSection(377); pattern = /abb$/m; @@ -2859,7 +2859,7 @@ string = 'b\nabb'; actualmatch = string.match(pattern); expectedmatch = Array('abb'); addThis(); -*/ + */ status = inSection(380); pattern = /abb$/m; @@ -2910,7 +2910,7 @@ string = 'a0-za'; actualmatch = string.match(pattern); expectedmatch = Array('0-z', '0-z'); addThis(); -*/ + */ /* ECMA doesn't support [: status = inSection(387); @@ -2933,7 +2933,7 @@ string = '=0-z='; actualmatch = string.match(pattern); expectedmatch = Array('0-z', '0-z'); addThis(); -*/ + */ status = inSection(390); pattern = /(\d+\.\d+)/; @@ -3089,7 +3089,7 @@ string = 'a\nxb\n'; actualmatch = string.match(pattern); expectedmatch = Array('\n'); addThis(); -*/ + */ status = inSection(412); pattern = /^(a(b)?)+$/; @@ -3133,7 +3133,7 @@ string = 'aaaaaa'; actualmatch = string.match(pattern); expectedmatch = Array('aaaaaa', 'aaa'); addThis(); -*/ + */ status = inSection(418); pattern = /^(0+)?(?:x(1))?/; diff --git a/mozilla/js/tests/ecma_3/RegExp/perlstress-002.js b/mozilla/js/tests/ecma_3/RegExp/perlstress-002.js index 44cfbb51754..c5d6ffac8ca 100644 --- a/mozilla/js/tests/ecma_3/RegExp/perlstress-002.js +++ b/mozilla/js/tests/ecma_3/RegExp/perlstress-002.js @@ -1,59 +1,59 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com, rogerl@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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 2002-07-07 -* SUMMARY: Testing JS RegExp engine against Perl 5 RegExp engine. -* Adjust cnLBOUND, cnUBOUND below to restrict which sections are tested. -* -* This test was created by running various patterns and strings through the -* Perl 5 RegExp engine. We saved the results below to test the JS engine. -* -* Each of the examples below is a negative test; that is, each produces a -* null match in Perl. Thus we set |expectedmatch| = |null| in each section. -* -* NOTE: ECMA/JS and Perl do differ on certain points. We have either commented -* out such sections altogether, or modified them to fit what we expect from JS. -* -* EXAMPLES: -* -* - ECMA does support (?: (?= and (?! operators, but doesn't support (?< etc. -* -* - ECMA doesn't support (?(condition) -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com, rogerl@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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 2002-07-07 + * SUMMARY: Testing JS RegExp engine against Perl 5 RegExp engine. + * Adjust cnLBOUND, cnUBOUND below to restrict which sections are tested. + * + * This test was created by running various patterns and strings through the + * Perl 5 RegExp engine. We saved the results below to test the JS engine. + * + * Each of the examples below is a negative test; that is, each produces a + * null match in Perl. Thus we set |expectedmatch| = |null| in each section. + * + * NOTE: ECMA/JS and Perl do differ on certain points. We have either commented + * out such sections altogether, or modified them to fit what we expect from JS. + * + * EXAMPLES: + * + * - ECMA does support (?: (?= and (?! operators, but doesn't support (?< etc. + * + * - ECMA doesn't support (?(condition) + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 85721; @@ -546,7 +546,7 @@ string = 'aaaaaaaaaaa'; actualmatch = string.match(pattern); expectedmatch = null; addThis(); -*/ + */ /* ECMA doesn't support (?< status = inSection(68); @@ -569,7 +569,7 @@ string = 'cb'; actualmatch = string.match(pattern); expectedmatch = null; addThis(); -*/ + */ /* ECMA doesn't support (?(condition) status = inSection(71); @@ -669,7 +669,7 @@ string = 'B\nB'; actualmatch = string.match(pattern); expectedmatch = null; addThis(); -*/ + */ /* ECMA doesn't support (?< status = inSection(85); @@ -685,7 +685,7 @@ string = 'dbcb'; actualmatch = string.match(pattern); expectedmatch = null; addThis(); -*/ + */ status = inSection(87); pattern = /^(?:a?b?)*$/; @@ -785,7 +785,7 @@ string = 'a'; actualmatch = string.match(pattern); expectedmatch = null; addThis(); -*/ + */ status = inSection(101); pattern = /^(?=(a+?))\1ab/; @@ -1788,7 +1788,7 @@ string = 'a'; actualmatch = string.match(pattern); expectedmatch = null; addThis(); -*/ + */ diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-100199.js b/mozilla/js/tests/ecma_3/RegExp/regress-100199.js index 8380499e5ac..b8672466aa4 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-100199.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-100199.js @@ -1,34 +1,35 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 17 September 2001 -* -* SUMMARY: Regression test for Bugzilla bug 100199 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=100199 -* -* The empty character class [] is a valid RegExp construct: the condition -* that a given character belong to a set containing no characters. As such, -* it can never be met and is always FALSE. Similarly, [^] is a condition -* that matches any given character and is always TRUE. -* -* Neither one of these conditions should cause syntax errors in a RegExp. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 17 September 2001 + * + * SUMMARY: Regression test for Bugzilla bug 100199 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=100199 + * + * The empty character class [] is a valid RegExp construct: the condition + * that a given character belong to a set containing no characters. As such, + * it can never be met and is always FALSE. Similarly, [^] is a condition + * that matches any given character and is always TRUE. + * + * Neither one of these conditions should cause syntax errors in a RegExp. + */ //----------------------------------------------------------------------------- var i = 0; var bug = 100199; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-103087.js b/mozilla/js/tests/ecma_3/RegExp/regress-103087.js index 8cfc6622631..3c79afb2d9f 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-103087.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-103087.js @@ -1,33 +1,34 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): bedney@technicalpursuit.com, pschwartau@netscape.com -* Date: 04 October 2001 -* -* SUMMARY: Arose from Bugzilla bug 103087: -* "The RegExp MarkupSPE in demo crashes Mozilla" -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=103087 -* The SpiderMonkey shell crashed on some of these regexps. -* -* The reported crash was on i=24 below ('MarkupSPE' regexp) -* I crashed on that, and also on i=43 ('XML_SPE' regexp) -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): bedney@technicalpursuit.com, pschwartau@netscape.com + * + * Date: 04 October 2001 + * + * SUMMARY: Arose from Bugzilla bug 103087: + * "The RegExp MarkupSPE in demo crashes Mozilla" + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=103087 + * The SpiderMonkey shell crashed on some of these regexps. + * + * The reported crash was on i=24 below ('MarkupSPE' regexp) + * I crashed on that, and also on i=43 ('XML_SPE' regexp) + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 103087; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-105972.js b/mozilla/js/tests/ecma_3/RegExp/regress-105972.js index 9f0cdb5c8fd..6ef9356c4af 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-105972.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-105972.js @@ -1,29 +1,30 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): mozilla@pdavis.cx, pschwartau@netscape.com -* Date: 22 October 2001 -* -* SUMMARY: Regression test for Bugzilla bug 105972: -* "/^.*?$/ will not match anything" -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=105972 -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): mozilla@pdavis.cx, pschwartau@netscape.com + * + * Date: 22 October 2001 + * + * SUMMARY: Regression test for Bugzilla bug 105972: + * "/^.*?$/ will not match anything" + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=105972 + */ //----------------------------------------------------------------------------- var i = 0; var bug = 105972; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-119909.js b/mozilla/js/tests/ecma_3/RegExp/regress-119909.js index 8cd595f7ebe..bfd8030f523 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-119909.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-119909.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2001 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 1010mozilla@Ostermiller.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 14 Jan 2002 -* SUMMARY: Shouldn't crash on regexps with many nested parentheses -* See http://bugzilla.mozilla.org/show_bug.cgi?id=119909 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2001 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 1010mozilla@Ostermiller.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 14 Jan 2002 + * SUMMARY: Shouldn't crash on regexps with many nested parentheses + * See http://bugzilla.mozilla.org/show_bug.cgi?id=119909 + * + */ //----------------------------------------------------------------------------- var bug = 119909; var summary = "Shouldn't crash on regexps with many nested parentheses"; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-122076.js b/mozilla/js/tests/ecma_3/RegExp/regress-122076.js index ed2afc34b03..5cbc9fd6991 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-122076.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-122076.js @@ -1,52 +1,52 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 12 Feb 2002 -* SUMMARY: Don't crash on invalid regexp literals / \\/ / -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=122076 -* The function checkURL() below sometimes caused a compile-time error: -* -* SyntaxError: unterminated parenthetical (: -* -* However, sometimes it would cause a crash instead. The presence of -* other functions below is merely fodder to help provoke the crash. -* The constant |STRESS| is number of times we'll try to crash on this. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 12 Feb 2002 + * SUMMARY: Don't crash on invalid regexp literals / \\/ / + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=122076 + * The function checkURL() below sometimes caused a compile-time error: + * + * SyntaxError: unterminated parenthetical (: + * + * However, sometimes it would cause a crash instead. The presence of + * other functions below is merely fodder to help provoke the crash. + * The constant |STRESS| is number of times we'll try to crash on this. + * + */ //----------------------------------------------------------------------------- var bug = 122076; var summary = "Don't crash on invalid regexp literals / \\/ /"; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-123437.js b/mozilla/js/tests/ecma_3/RegExp/regress-123437.js index 77194fe009c..08782372686 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-123437.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-123437.js @@ -1,46 +1,46 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): waldemar, rogerl, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 04 Feb 2002 -* SUMMARY: regexp backreferences must hold |undefined| if not used -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=123437 (SpiderMonkey) -* See http://bugzilla.mozilla.org/show_bug.cgi?id=123439 (Rhino) -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): waldemar, rogerl, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 04 Feb 2002 + * SUMMARY: regexp backreferences must hold |undefined| if not used + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=123437 (SpiderMonkey) + * See http://bugzilla.mozilla.org/show_bug.cgi?id=123439 (Rhino) + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 123437; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-165353.js b/mozilla/js/tests/ecma_3/RegExp/regress-165353.js index 10a235f206f..28e1b6de9aa 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-165353.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-165353.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): franky@pacificconnections.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 31 August 2002 -* SUMMARY: RegExp conformance test -* See http://bugzilla.mozilla.org/show_bug.cgi?id=165353 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): franky@pacificconnections.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 31 August 2002 + * SUMMARY: RegExp conformance test + * See http://bugzilla.mozilla.org/show_bug.cgi?id=165353 + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 165353; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-169497.js b/mozilla/js/tests/ecma_3/RegExp/regress-169497.js index 0069bfd51f2..4a846c21cfb 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-169497.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-169497.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): martin.honnen@t-online.de, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 31 August 2002 -* SUMMARY: RegExp conformance test -* See http://bugzilla.mozilla.org/show_bug.cgi?id=169497 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): martin.honnen@t-online.de, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 31 August 2002 + * SUMMARY: RegExp conformance test + * See http://bugzilla.mozilla.org/show_bug.cgi?id=169497 + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 169497; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-169534.js b/mozilla/js/tests/ecma_3/RegExp/regress-169534.js index c29d11e5e6f..14ee48a39a0 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-169534.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-169534.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 20 Sep 2002 -* SUMMARY: RegExp conformance test -* See http://bugzilla.mozilla.org/show_bug.cgi?id=169534 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 20 Sep 2002 + * SUMMARY: RegExp conformance test + * See http://bugzilla.mozilla.org/show_bug.cgi?id=169534 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 169534; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-187133.js b/mozilla/js/tests/ecma_3/RegExp/regress-187133.js index bffcda8ca8a..80b8b8c75dd 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-187133.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-187133.js @@ -1,58 +1,58 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): ji_bo@yahoo.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 06 January 2003 -* SUMMARY: RegExp conformance test -* See http://bugzilla.mozilla.org/show_bug.cgi?id=187133 -* -* The tests here employ the regular expression construct: -* -* (?!pattern) -* -* This is a "zero-width lookahead negative assertion". -* From the Perl documentation: -* -* For example, /foo(?!bar)/ matches any occurrence -* of 'foo' that isn't followed by 'bar'. -* -* It is "zero-width" means that it does not consume any characters and that -* the parens are non-capturing. A non-null match array in the example above -* will have only have length 1, not 2. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): ji_bo@yahoo.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 06 January 2003 + * SUMMARY: RegExp conformance test + * See http://bugzilla.mozilla.org/show_bug.cgi?id=187133 + * + * The tests here employ the regular expression construct: + * + * (?!pattern) + * + * This is a "zero-width lookahead negative assertion". + * From the Perl documentation: + * + * For example, /foo(?!bar)/ matches any occurrence + * of 'foo' that isn't followed by 'bar'. + * + * It is "zero-width" means that it does not consume any characters and that + * the parens are non-capturing. A non-null match array in the example above + * will have only have length 1, not 2. + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 187133; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-188206.js b/mozilla/js/tests/ecma_3/RegExp/regress-188206.js index 6fae0e1e295..e41fa6010fe 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-188206.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-188206.js @@ -1,47 +1,47 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): scole@planetweb.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 21 January 2003 -* SUMMARY: Invalid use of regexp quantifiers should generate SyntaxErrors -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=188206 -* and http://bugzilla.mozilla.org/show_bug.cgi?id=85721#c48 etc. -* and http://bugzilla.mozilla.org/show_bug.cgi?id=190685 -* and http://bugzilla.mozilla.org/show_bug.cgi?id=197451 -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): scole@planetweb.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 21 January 2003 + * SUMMARY: Invalid use of regexp quantifiers should generate SyntaxErrors + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=188206 + * and http://bugzilla.mozilla.org/show_bug.cgi?id=85721#c48 etc. + * and http://bugzilla.mozilla.org/show_bug.cgi?id=190685 + * and http://bugzilla.mozilla.org/show_bug.cgi?id=197451 + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 188206; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-191479.js b/mozilla/js/tests/ecma_3/RegExp/regress-191479.js index a3d8b39e4e0..e468020c78d 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-191479.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-191479.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): flying@dom.natm.ru, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 31 January 2003 -* SUMMARY: Testing regular expressions of form /(x|y){n,}/ -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=191479 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): flying@dom.natm.ru, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 31 January 2003 + * SUMMARY: Testing regular expressions of form /(x|y){n,}/ + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=191479 + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 191479; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-202564.js b/mozilla/js/tests/ecma_3/RegExp/regress-202564.js index 14722c33063..40021793122 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-202564.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-202564.js @@ -1,49 +1,49 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): drbrain-bugzilla@segment7.net, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 18 April 2003 -* SUMMARY: Testing regexp with many backreferences -* See http://bugzilla.mozilla.org/show_bug.cgi?id=202564 -* -* Note that in Section 1 below, we expect the 1st and 4th backreferences -* to hold |undefined| instead of the empty strings one gets in Perl and IE6. -* This is because per ECMA, regexp backreferences must hold |undefined| -* if not used. See http://bugzilla.mozilla.org/show_bug.cgi?id=123437. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): drbrain-bugzilla@segment7.net, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 18 April 2003 + * SUMMARY: Testing regexp with many backreferences + * See http://bugzilla.mozilla.org/show_bug.cgi?id=202564 + * + * Note that in Section 1 below, we expect the 1st and 4th backreferences + * to hold |undefined| instead of the empty strings one gets in Perl and IE6. + * This is because per ECMA, regexp backreferences must hold |undefined| + * if not used. See http://bugzilla.mozilla.org/show_bug.cgi?id=123437. + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 202564; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-209067.js b/mozilla/js/tests/ecma_3/RegExp/regress-209067.js index ba4c1e1fc0d..2d0e5f67b21 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-209067.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-209067.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 12 June 2003 -* SUMMARY: Testing complicated str.replace() -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=209067 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 12 June 2003 + * SUMMARY: Testing complicated str.replace() + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=209067 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 209067; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-209919.js b/mozilla/js/tests/ecma_3/RegExp/regress-209919.js index e1bb76cac25..3f7134f1bee 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-209919.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-209919.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): sagdjb@softwareag.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 19 June 2003 -* SUMMARY: Testing regexp submatches with quantifiers -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=209919 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): sagdjb@softwareag.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 19 June 2003 + * SUMMARY: Testing regexp submatches with quantifiers + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=209919 + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 209919; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-216591.js b/mozilla/js/tests/ecma_3/RegExp/regress-216591.js index cc86d739522..7f1cf3e3a53 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-216591.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-216591.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): okin7@yahoo.fr, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 19 August 2003 -* SUMMARY: Regexp conformance test -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=216591 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): okin7@yahoo.fr, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 19 August 2003 + * SUMMARY: Regexp conformance test + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=216591 + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 216591; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-220367-001.js b/mozilla/js/tests/ecma_3/RegExp/regress-220367-001.js index e6a767ec69d..a04994d2193 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-220367-001.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-220367-001.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@fastmail.fm, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 26 September 2003 -* SUMMARY: Regexp conformance test -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=220367 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@fastmail.fm, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 26 September 2003 + * SUMMARY: Regexp conformance test + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=220367 + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 220367; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-220367-002.js b/mozilla/js/tests/ecma_3/RegExp/regress-220367-002.js index 62eec23b7e0..59fae89f6dc 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-220367-002.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-220367-002.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@fastmail.fm, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 26 September 2003 -* SUMMARY: Regexp conformance test -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=220367 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@fastmail.fm, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 26 September 2003 + * SUMMARY: Regexp conformance test + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=220367 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 220367; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-223273.js b/mozilla/js/tests/ecma_3/RegExp/regress-223273.js index befd4838d27..15e5e8d2ce8 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-223273.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-223273.js @@ -1,57 +1,57 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 23 October 2003 -* SUMMARY: Unescaped, unbalanced parens in a regexp should cause SyntaxError. -* -* The same would also be true for unescaped, unbalanced brackets or braces -* if we followed the ECMA-262 Ed. 3 spec on this. But it was decided for -* backward compatibility reasons to follow Perl 5, which permits -* -* 1. an unescaped, unbalanced right bracket ] -* 2. an unescaped, unbalanced left brace { -* 3. an unescaped, unbalanced right brace } -* -* If any of these should occur, Perl treats each as a literal character. -* Therefore we permit all three of these cases, even though not ECMA-compliant. -* Note Perl errors on an unescaped, unbalanced left bracket; so will we. -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=223273 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 23 October 2003 + * SUMMARY: Unescaped, unbalanced parens in a regexp should cause SyntaxError. + * + * The same would also be true for unescaped, unbalanced brackets or braces + * if we followed the ECMA-262 Ed. 3 spec on this. But it was decided for + * backward compatibility reasons to follow Perl 5, which permits + * + * 1. an unescaped, unbalanced right bracket ] + * 2. an unescaped, unbalanced left brace { + * 3. an unescaped, unbalanced right brace } + * + * If any of these should occur, Perl treats each as a literal character. + * Therefore we permit all three of these cases, even though not ECMA-compliant. + * Note Perl errors on an unescaped, unbalanced left bracket; so will we. + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=223273 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 223273; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-223535.js b/mozilla/js/tests/ecma_3/RegExp/regress-223535.js index 0dacf7459f6..2b46da7f7fc 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-223535.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-223535.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): zack-weg@gmx.de, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 24 October 2003 -* SUMMARY: Testing regexps with empty alternatives -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=223535 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): zack-weg@gmx.de, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 24 October 2003 + * SUMMARY: Testing regexps with empty alternatives + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=223535 + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 223535; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-224676.js b/mozilla/js/tests/ecma_3/RegExp/regress-224676.js index bd2a6af37bb..db74927df8f 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-224676.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-224676.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): zack-weg@gmx.de, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 04 November 2003 -* SUMMARY: Testing regexps with various disjunction + character class patterns -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=224676 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): zack-weg@gmx.de, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 04 November 2003 + * SUMMARY: Testing regexps with various disjunction + character class patterns + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=224676 + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 224676; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-225289.js b/mozilla/js/tests/ecma_3/RegExp/regress-225289.js index f3592e6b09b..a1c6e093deb 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-225289.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-225289.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): PhilSchwartau@aol.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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 10 November 2003 -* SUMMARY: Testing regexps with complementary alternatives -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=225289 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): PhilSchwartau@aol.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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 10 November 2003 + * SUMMARY: Testing regexps with complementary alternatives + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=225289 + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 225289; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-225343.js b/mozilla/js/tests/ecma_3/RegExp/regress-225343.js index 874a77d86ab..520d5f56abe 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-225343.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-225343.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): PhilSchwartau@aol.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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 11 November 2003 -* SUMMARY: Testing regexp character classes and the case-insensitive flag -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=225343 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): PhilSchwartau@aol.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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 11 November 2003 + * SUMMARY: Testing regexp character classes and the case-insensitive flag + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=225343 + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 225343; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-228087.js b/mozilla/js/tests/ecma_3/RegExp/regress-228087.js index 96929f03bc0..cbd62ac2119 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-228087.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-228087.js @@ -1,49 +1,49 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): bex@xaotec.com, PhilSchwartau@aol.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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 12 December 2003 -* SUMMARY: Testing regexps with unescaped braces -* See http://bugzilla.mozilla.org/show_bug.cgi?id=228087 -* -* Note: unbalanced, unescaped braces are not permitted by ECMA-262 Ed.3, -* but we decided to follow Perl and IE and allow this for compatibility. -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=188206 and its testcase. -* See http://bugzilla.mozilla.org/show_bug.cgi?id=223273 and its testcase. -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): bex@xaotec.com, PhilSchwartau@aol.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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 12 December 2003 + * SUMMARY: Testing regexps with unescaped braces + * See http://bugzilla.mozilla.org/show_bug.cgi?id=228087 + * + * Note: unbalanced, unescaped braces are not permitted by ECMA-262 Ed.3, + * but we decided to follow Perl and IE and allow this for compatibility. + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=188206 and its testcase. + * See http://bugzilla.mozilla.org/show_bug.cgi?id=223273 and its testcase. + */ //----------------------------------------------------------------------------- var i = 0; var bug = 228087; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-24712.js b/mozilla/js/tests/ecma_3/RegExp/regress-24712.js index 41c17f69dff..9514a8847ab 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-24712.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-24712.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-28686.js b/mozilla/js/tests/ecma_3/RegExp/regress-28686.js index 599f613ac17..ffc0a0e5a43 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-28686.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-28686.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-31316.js b/mozilla/js/tests/ecma_3/RegExp/regress-31316.js index b68e42a9503..8fb3705a280 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-31316.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-31316.js @@ -1,29 +1,30 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 01 May 2001 -* -* SUMMARY: Regression test for Bugzilla bug 31316: -* "Rhino: Regexp matches return garbage" -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=31316 -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 01 May 2001 + * + * SUMMARY: Regression test for Bugzilla bug 31316: + * "Rhino: Regexp matches return garbage" + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=31316 + */ //------------------------------------------------------------------------------------------------- var i = 0; var bug = 31316; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-57572.js b/mozilla/js/tests/ecma_3/RegExp/regress-57572.js index de9834a06fa..56811b1d68e 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-57572.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-57572.js @@ -1,30 +1,31 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 28 December 2000 -* -* SUMMARY: Testing regular expressions containing the ? character. -* Arose from Bugzilla bug 57572: "RegExp with ? matches incorrectly" -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=57572 -* -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 28 December 2000 + * + * SUMMARY: Testing regular expressions containing the ? character. + * Arose from Bugzilla bug 57572: "RegExp with ? matches incorrectly" + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=57572 + * + */ //----------------------------------------------------------------------------- var i = 0; var bug = 57572; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-57631.js b/mozilla/js/tests/ecma_3/RegExp/regress-57631.js index 612e6f21a94..090af1e482b 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-57631.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-57631.js @@ -1,31 +1,32 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com, zack-weg@gmx.de -* Date: 26 November 2000 -* -* -* SUMMARY: This test arose from Bugzilla bug 57631: -* "RegExp with invalid pattern or invalid flag causes segfault" -* -* Either error should throw an exception of type SyntaxError, -* and we check to see that it does... -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com, zack-weg@gmx.de + * + * Date: 26 November 2000 + * + * + * SUMMARY: This test arose from Bugzilla bug 57631: + * "RegExp with invalid pattern or invalid flag causes segfault" + * + * Either error should throw an exception of type SyntaxError, + * and we check to see that it does... + */ //------------------------------------------------------------------------------------------------- var bug = '57631'; var summary = 'Testing new RegExp(pattern,flag) with illegal pattern or flag'; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-67773.js b/mozilla/js/tests/ecma_3/RegExp/regress-67773.js index e3990507384..c115f08884c 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-67773.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-67773.js @@ -1,30 +1,31 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 06 February 2001 -* -* SUMMARY: Arose from Bugzilla bug 67773: -* "Regular subexpressions followed by + failing to run to completion" -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=67773 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=69989 -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 06 February 2001 + * + * SUMMARY: Arose from Bugzilla bug 67773: + * "Regular subexpressions followed by + failing to run to completion" + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=67773 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=69989 + */ //------------------------------------------------------------------------------------------------- var i = 0; var bug = 67773; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-72964.js b/mozilla/js/tests/ecma_3/RegExp/regress-72964.js index 596531313b5..100c24954ee 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-72964.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-72964.js @@ -1,29 +1,30 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 2001-07-17 -* -* SUMMARY: Regression test for Bugzilla bug 72964: -* "String method for pattern matching failed for Chinese Simplified (GB2312)" -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=72964 -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 2001-07-17 + * + * SUMMARY: Regression test for Bugzilla bug 72964: + * "String method for pattern matching failed for Chinese Simplified (GB2312)" + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=72964 + */ //----------------------------------------------------------------------------- var i = 0; var bug = 72964; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-76683.js b/mozilla/js/tests/ecma_3/RegExp/regress-76683.js index 59b95b973a0..761b68cf773 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-76683.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-76683.js @@ -1,29 +1,30 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 01 May 2001 -* -* SUMMARY: Regression test for Bugzilla bug 76683 on Rhino: -* "RegExp regression (NullPointerException)" -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=76683 -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 01 May 2001 + * + * SUMMARY: Regression test for Bugzilla bug 76683 on Rhino: + * "RegExp regression (NullPointerException)" + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=76683 + */ //------------------------------------------------------------------------------------------------- var i = 0; var bug = 76683; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-78156.js b/mozilla/js/tests/ecma_3/RegExp/regress-78156.js index 08947cecfce..cdff796c607 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-78156.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-78156.js @@ -1,32 +1,33 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 06 February 2001 -* -* SUMMARY: Arose from Bugzilla bug 78156: -* "m flag of regular expression does not work with $" -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=78156 -* -* The m flag means a regular expression should search strings -* across multiple lines, i.e. across '\n', '\r'. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 06 February 2001 + * + * SUMMARY: Arose from Bugzilla bug 78156: + * "m flag of regular expression does not work with $" + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=78156 + * + * The m flag means a regular expression should search strings + * across multiple lines, i.e. across '\n', '\r'. + */ //------------------------------------------------------------------------------------------------- var i = 0; var bug = 78156; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-85721.js b/mozilla/js/tests/ecma_3/RegExp/regress-85721.js index 41f5bc07a67..19419821cc5 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-85721.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-85721.js @@ -1,47 +1,47 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): rogerl@netscape.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 14 Feb 2002 -* SUMMARY: Performance: Regexp performance degraded from 4.7 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=85721 -* -* Adjust this testcase if necessary. The FAST constant defines -* an upper bound in milliseconds for any execution to take. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): rogerl@netscape.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 14 Feb 2002 + * SUMMARY: Performance: Regexp performance degraded from 4.7 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=85721 + * + * Adjust this testcase if necessary. The FAST constant defines + * an upper bound in milliseconds for any execution to take. + * + */ //----------------------------------------------------------------------------- var bug = 85721; var summary = 'Performance: execution of regular expression'; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-87231.js b/mozilla/js/tests/ecma_3/RegExp/regress-87231.js index 7fde4ff2f64..30fef180332 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-87231.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-87231.js @@ -1,41 +1,42 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 22 June 2001 -* -* SUMMARY: Regression test for Bugzilla bug 87231: -* "Regular expression /(A)?(A.*)/ picks 'A' twice" -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=87231 -* Key case: -* -* pattern = /^(A)?(A.*)$/; -* string = 'A'; -* expectedmatch = Array('A', '', 'A'); -* -* -* We expect the 1st subexpression (A)? NOT to consume the single 'A'. -* Recall that "?" means "match 0 or 1 times". Here, it should NOT do -* greedy matching: it should match 0 times instead of 1. This allows -* the 2nd subexpression to make the only match it can: the single 'A'. -* Such "altruism" is the only way there can be a successful global match... -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 22 June 2001 + * + * SUMMARY: Regression test for Bugzilla bug 87231: + * "Regular expression /(A)?(A.*)/ picks 'A' twice" + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=87231 + * Key case: + * + * pattern = /^(A)?(A.*)$/; + * string = 'A'; + * expectedmatch = Array('A', '', 'A'); + * + * + * We expect the 1st subexpression (A)? NOT to consume the single 'A'. + * Recall that "?" means "match 0 or 1 times". Here, it should NOT do + * greedy matching: it should match 0 times instead of 1. This allows + * the 2nd subexpression to make the only match it can: the single 'A'. + * Such "altruism" is the only way there can be a successful global match... + */ //------------------------------------------------------------------------------------------------- var i = 0; var bug = 87231; diff --git a/mozilla/js/tests/ecma_3/RegExp/regress-98306.js b/mozilla/js/tests/ecma_3/RegExp/regress-98306.js index e812ebf3097..4f70e64a59c 100644 --- a/mozilla/js/tests/ecma_3/RegExp/regress-98306.js +++ b/mozilla/js/tests/ecma_3/RegExp/regress-98306.js @@ -1,29 +1,30 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): jrgm@netscape.com, pschwartau@netscape.com -* Date: 04 September 2001 -* -* SUMMARY: Regression test for Bugzilla bug 98306 -* "JS parser crashes in ParseAtom for script using Regexp()" -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=98306 -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): jrgm@netscape.com, pschwartau@netscape.com + * + * Date: 04 September 2001 + * + * SUMMARY: Regression test for Bugzilla bug 98306 + * "JS parser crashes in ParseAtom for script using Regexp()" + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=98306 + */ //----------------------------------------------------------------------------- var bug = 98306; var summary = "Testing that we don't crash on this code -"; diff --git a/mozilla/js/tests/ecma_3/RegExp/shell.js b/mozilla/js/tests/ecma_3/RegExp/shell.js index 8dec83c0f11..04803642a6d 100644 --- a/mozilla/js/tests/ecma_3/RegExp/shell.js +++ b/mozilla/js/tests/ecma_3/RegExp/shell.js @@ -1,26 +1,27 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 07 February 2001 -* -* Functionality common to RegExp testing - -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 07 February 2001 + * + * Functionality common to RegExp testing - + */ //------------------------------------------------------------------------------------------------- var MSG_PATTERN = '\nregexp = '; var MSG_STRING = '\nstring = '; diff --git a/mozilla/js/tests/ecma_3/Statements/regress-121744.js b/mozilla/js/tests/ecma_3/Statements/regress-121744.js index ca4653ae90e..affa129ea83 100644 --- a/mozilla/js/tests/ecma_3/Statements/regress-121744.js +++ b/mozilla/js/tests/ecma_3/Statements/regress-121744.js @@ -1,58 +1,58 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 30 Jan 2002 -* Revised: 10 Apr 2002 -* Revised: 14 July 2002 -* -* SUMMARY: JS should error on |for(i in undefined)|, |for(i in null)| -* See http://bugzilla.mozilla.org/show_bug.cgi?id=121744 -* -* ECMA-262 3rd Edition Final spec says such statements should error. See: -* -* Section 12.6.4 The for-in Statement -* Section 9.9 ToObject -* -* -* BUT: SpiderMonkey has decided NOT to follow this; it's a bug in the spec. -* See http://bugzilla.mozilla.org/show_bug.cgi?id=131348 -* -* UPDATE: Rhino has also decided not to follow the spec on this. -* See http://bugzilla.mozilla.org/show_bug.cgi?id=136893 -* + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 30 Jan 2002 + * Revised: 10 Apr 2002 + * Revised: 14 July 2002 + * + * SUMMARY: JS should error on |for(i in undefined)|, |for(i in null)| + * See http://bugzilla.mozilla.org/show_bug.cgi?id=121744 + * + * ECMA-262 3rd Edition Final spec says such statements should error. See: + * + * Section 12.6.4 The for-in Statement + * Section 9.9 ToObject + * + * + * BUT: SpiderMonkey has decided NOT to follow this; it's a bug in the spec. + * See http://bugzilla.mozilla.org/show_bug.cgi?id=131348 + * + * UPDATE: Rhino has also decided not to follow the spec on this. + * See http://bugzilla.mozilla.org/show_bug.cgi?id=136893 + * |--------------------------------------------------------------------| | | @@ -60,8 +60,8 @@ | | |--------------------------------------------------------------------| -* -*/ + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 121744; diff --git a/mozilla/js/tests/ecma_3/Statements/regress-131348.js b/mozilla/js/tests/ecma_3/Statements/regress-131348.js index 73153739de5..acc00ab6a1c 100644 --- a/mozilla/js/tests/ecma_3/Statements/regress-131348.js +++ b/mozilla/js/tests/ecma_3/Statements/regress-131348.js @@ -1,56 +1,56 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 10 Apr 2002 -* Revised: 14 July 2002 -* -* SUMMARY: JS should NOT error on |for(i in undefined)|, |for(i in null)| -* -* ECMA-262 3rd Edition Final spec says such statements SHOULD error. See: -* -* Section 12.6.4 The for-in Statement -* Section 9.9 ToObject -* -* -* But SpiderMonkey has decided NOT to follow this; it's a bug in the spec. -* See http://bugzilla.mozilla.org/show_bug.cgi?id=131348 -* -* Update: Rhino has also decided not to follow the spec on this -* See http://bugzilla.mozilla.org/show_bug.cgi?id=136893 -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 10 Apr 2002 + * Revised: 14 July 2002 + * + * SUMMARY: JS should NOT error on |for(i in undefined)|, |for(i in null)| + * + * ECMA-262 3rd Edition Final spec says such statements SHOULD error. See: + * + * Section 12.6.4 The for-in Statement + * Section 9.9 ToObject + * + * + * But SpiderMonkey has decided NOT to follow this; it's a bug in the spec. + * See http://bugzilla.mozilla.org/show_bug.cgi?id=131348 + * + * Update: Rhino has also decided not to follow the spec on this + * See http://bugzilla.mozilla.org/show_bug.cgi?id=136893 + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 131348; diff --git a/mozilla/js/tests/ecma_3/Statements/regress-157509.js b/mozilla/js/tests/ecma_3/Statements/regress-157509.js index ad6bd77ab7a..eec8c4a7a15 100644 --- a/mozilla/js/tests/ecma_3/Statements/regress-157509.js +++ b/mozilla/js/tests/ecma_3/Statements/regress-157509.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor3@apochta.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 15 July 2002 -* SUMMARY: Testing for SyntaxError on usage of '\' in identifiers -* See http://bugzilla.mozilla.org/show_bug.cgi?id=157509 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor3@apochta.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 15 July 2002 + * SUMMARY: Testing for SyntaxError on usage of '\' in identifiers + * See http://bugzilla.mozilla.org/show_bug.cgi?id=157509 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 157509; diff --git a/mozilla/js/tests/ecma_3/Statements/regress-194364.js b/mozilla/js/tests/ecma_3/Statements/regress-194364.js index 830a6c6bc5b..fb71415990b 100644 --- a/mozilla/js/tests/ecma_3/Statements/regress-194364.js +++ b/mozilla/js/tests/ecma_3/Statements/regress-194364.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@icesoft.no, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 21 February 2003 -* SUMMARY: Testing eval statements containing conditional function expressions -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=194364 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@icesoft.no, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 21 February 2003 + * SUMMARY: Testing eval statements containing conditional function expressions + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=194364 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 194364; diff --git a/mozilla/js/tests/ecma_3/Statements/regress-226517.js b/mozilla/js/tests/ecma_3/Statements/regress-226517.js index 858d0d696a3..ef0313411cd 100644 --- a/mozilla/js/tests/ecma_3/Statements/regress-226517.js +++ b/mozilla/js/tests/ecma_3/Statements/regress-226517.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@fastmail.fm, PhilSchwartau@aol.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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 04 Dec 2003 -* SUMMARY: |finally| statement should execute even after a |return| -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=226517 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@fastmail.fm, PhilSchwartau@aol.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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 04 Dec 2003 + * SUMMARY: |finally| statement should execute even after a |return| + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=226517 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 226517; diff --git a/mozilla/js/tests/ecma_3/Statements/regress-74474-001.js b/mozilla/js/tests/ecma_3/Statements/regress-74474-001.js index d592264dc51..0ff5b414309 100644 --- a/mozilla/js/tests/ecma_3/Statements/regress-74474-001.js +++ b/mozilla/js/tests/ecma_3/Statements/regress-74474-001.js @@ -1,30 +1,31 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 01 May 2001 -* -* SUMMARY: Regression test for Bugzilla bug 74474 -*"switch() misbehaves with duplicated labels" -* -* See ECMA3 Section 12.11, "The switch Statement" -* See http://bugzilla.mozilla.org/show_bug.cgi?id=74474 -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 01 May 2001 + * + * SUMMARY: Regression test for Bugzilla bug 74474 + *"switch() misbehaves with duplicated labels" + * + * See ECMA3 Section 12.11, "The switch Statement" + * See http://bugzilla.mozilla.org/show_bug.cgi?id=74474 + */ //------------------------------------------------------------------------------------------------- var UBound = 0; var bug = 74474; diff --git a/mozilla/js/tests/ecma_3/Statements/regress-74474-002.js b/mozilla/js/tests/ecma_3/Statements/regress-74474-002.js index 52f8787e24f..31beb31364d 100644 --- a/mozilla/js/tests/ecma_3/Statements/regress-74474-002.js +++ b/mozilla/js/tests/ecma_3/Statements/regress-74474-002.js @@ -1,30 +1,31 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): brendan@mozilla.org, pschwartau@netscape.com -* Date: 09 May 2001 -* -* SUMMARY: Regression test for Bugzilla bug 74474 -* "switch() misbehaves with duplicated labels" -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=74474 -* See ECMA3 Section 12.11, "The switch Statement" -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): brendan@mozilla.org, pschwartau@netscape.com + * + * Date: 09 May 2001 + * + * SUMMARY: Regression test for Bugzilla bug 74474 + * "switch() misbehaves with duplicated labels" + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=74474 + * See ECMA3 Section 12.11, "The switch Statement" + */ //------------------------------------------------------------------------------------------------- var UBound = 0; var bug = 74474; diff --git a/mozilla/js/tests/ecma_3/Statements/regress-74474-003.js b/mozilla/js/tests/ecma_3/Statements/regress-74474-003.js index 681fb3f3af9..987cb91537f 100644 --- a/mozilla/js/tests/ecma_3/Statements/regress-74474-003.js +++ b/mozilla/js/tests/ecma_3/Statements/regress-74474-003.js @@ -1,30 +1,31 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): brendan@mozilla.org, pschwartau@netscape.com -* Date: 09 May 2001 -* -* SUMMARY: Regression test for Bugzilla bug 74474 -* "switch() misbehaves with duplicated labels" -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=74474 -* See ECMA3 Section 12.11, "The switch Statement" -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): brendan@mozilla.org, pschwartau@netscape.com + * + * Date: 09 May 2001 + * + * SUMMARY: Regression test for Bugzilla bug 74474 + * "switch() misbehaves with duplicated labels" + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=74474 + * See ECMA3 Section 12.11, "The switch Statement" + */ //------------------------------------------------------------------------------------------------- var UBound = 0; var bug = 74474; diff --git a/mozilla/js/tests/ecma_3/Statements/regress-83532-001.js b/mozilla/js/tests/ecma_3/Statements/regress-83532-001.js index 8bde123f4d2..ba6ddd891ec 100644 --- a/mozilla/js/tests/ecma_3/Statements/regress-83532-001.js +++ b/mozilla/js/tests/ecma_3/Statements/regress-83532-001.js @@ -1,28 +1,29 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 01 June 2001 -* -* SUMMARY: Testing that we don't crash on switch case -1... -* See http://bugzilla.mozilla.org/show_bug.cgi?id=83532 -* -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 01 June 2001 + * + * SUMMARY: Testing that we don't crash on switch case -1... + * See http://bugzilla.mozilla.org/show_bug.cgi?id=83532 + * + */ //------------------------------------------------------------------------------------------------- var bug = 83532; var summary = "Testing that we don't crash on switch case -1"; diff --git a/mozilla/js/tests/ecma_3/Statements/regress-83532-002.js b/mozilla/js/tests/ecma_3/Statements/regress-83532-002.js index 085eebf7dfd..afb925f7938 100644 --- a/mozilla/js/tests/ecma_3/Statements/regress-83532-002.js +++ b/mozilla/js/tests/ecma_3/Statements/regress-83532-002.js @@ -1,28 +1,29 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 01 June 2001 -* -* SUMMARY: Testing that we don't crash on switch case -1... -* See http://bugzilla.mozilla.org/show_bug.cgi?id=83532 -* -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 01 June 2001 + * + * SUMMARY: Testing that we don't crash on switch case -1... + * See http://bugzilla.mozilla.org/show_bug.cgi?id=83532 + * + */ //------------------------------------------------------------------------------------------------- var bug = 83532; var summary = "Testing that we don't crash on switch case -1"; diff --git a/mozilla/js/tests/ecma_3/Statements/switch-001.js b/mozilla/js/tests/ecma_3/Statements/switch-001.js index 5dd8b4731f3..640efcd3e9f 100644 --- a/mozilla/js/tests/ecma_3/Statements/switch-001.js +++ b/mozilla/js/tests/ecma_3/Statements/switch-001.js @@ -1,28 +1,29 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 07 May 2001 -* -* SUMMARY: Testing the switch statement -* -* See ECMA3 Section 12.11, "The switch Statement" -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 07 May 2001 + * + * SUMMARY: Testing the switch statement + * + * See ECMA3 Section 12.11, "The switch Statement" + */ //------------------------------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; diff --git a/mozilla/js/tests/ecma_3/String/regress-104375.js b/mozilla/js/tests/ecma_3/String/regress-104375.js index 42b5ce23bd8..7b8c8ed118d 100644 --- a/mozilla/js/tests/ecma_3/String/regress-104375.js +++ b/mozilla/js/tests/ecma_3/String/regress-104375.js @@ -1,27 +1,28 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): k.mike@gmx.net, pschwartau@netscape.com -* Date: 12 October 2001 -* -* SUMMARY: Regression test for string.replace bug 104375 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=104375 -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): k.mike@gmx.net, pschwartau@netscape.com + * + * Date: 12 October 2001 + * + * SUMMARY: Regression test for string.replace bug 104375 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=104375 + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 104375; diff --git a/mozilla/js/tests/ecma_3/String/regress-189898.js b/mozilla/js/tests/ecma_3/String/regress-189898.js index e237152db81..7e516d7bebb 100644 --- a/mozilla/js/tests/ecma_3/String/regress-189898.js +++ b/mozilla/js/tests/ecma_3/String/regress-189898.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@icesoft.no, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 21 January 2003 -* SUMMARY: Regression test for bug 189898 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=189898 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@icesoft.no, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 21 January 2003 + * SUMMARY: Regression test for bug 189898 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=189898 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 189898; diff --git a/mozilla/js/tests/ecma_3/String/regress-83293.js b/mozilla/js/tests/ecma_3/String/regress-83293.js index 02a78343112..6350c3b1ee5 100644 --- a/mozilla/js/tests/ecma_3/String/regress-83293.js +++ b/mozilla/js/tests/ecma_3/String/regress-83293.js @@ -1,51 +1,52 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com, jim@jibbering.com -* Creation Date: 30 May 2001 -* Correction Date: 14 Aug 2001 -* -* SUMMARY: Regression test for bugs 83293, 103351 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=83293 -* http://bugzilla.mozilla.org/show_bug.cgi?id=103351 -* http://bugzilla.mozilla.org/show_bug.cgi?id=92942 -* -* -* ******************** CORRECTION !!! ***************************** -* -* When I originally wrote this test, I thought this was true: -* str.replace(strA, strB) == str.replace(new RegExp(strA),strB). -* See ECMA-262 Final Draft, 15.5.4.11 String.prototype.replace -* -* However, in http://bugzilla.mozilla.org/show_bug.cgi?id=83293 -* Jim Ley points out the ECMA-262 Final Edition changed on this. -* String.prototype.replace (searchValue, replaceValue), if provided -* a searchValue that is not a RegExp, is NO LONGER to replace it with -* -* new RegExp(searchValue) -* but rather: -* String(searchValue) -* -* This puts the replace() method at variance with search() and match(), -* which continue to follow the RegExp conversion of the Final Draft. -* It also makes most of this testcase, as originally written, invalid. -********************************************************************** -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com, jim@jibbering.com + * + * Creation Date: 30 May 2001 + * Correction Date: 14 Aug 2001 + * + * SUMMARY: Regression test for bugs 83293, 103351 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=83293 + * http://bugzilla.mozilla.org/show_bug.cgi?id=103351 + * http://bugzilla.mozilla.org/show_bug.cgi?id=92942 + * + * + * ******************** CORRECTION !!! ***************************** + * + * When I originally wrote this test, I thought this was true: + * str.replace(strA, strB) == str.replace(new RegExp(strA),strB). + * See ECMA-262 Final Draft, 15.5.4.11 String.prototype.replace + * + * However, in http://bugzilla.mozilla.org/show_bug.cgi?id=83293 + * Jim Ley points out the ECMA-262 Final Edition changed on this. + * String.prototype.replace (searchValue, replaceValue), if provided + * a searchValue that is not a RegExp, is NO LONGER to replace it with + * + * new RegExp(searchValue) + * but rather: + * String(searchValue) + * + * This puts the replace() method at variance with search() and match(), + * which continue to follow the RegExp conversion of the Final Draft. + * It also makes most of this testcase, as originally written, invalid. + ********************************************************************** + */ //----------------------------------------------------------------------------- var bug = 103351; // <--- (Outgrowth of original bug 83293) var summ_OLD = 'Testing str.replace(strA, strB) == str.replace(new RegExp(strA),strB)'; @@ -139,7 +140,7 @@ function test() expect = str.replace(new RegExp(strA), strB); reportCompare(expect, actual, status); -************************* END OF INCORRECT CASES ****************************/ + ************************* END OF INCORRECT CASES ****************************/ ////////////////////////// OK, LET'S START OVER ////////////////////////////// diff --git a/mozilla/js/tests/ecma_3/Unicode/uc-001-n.js b/mozilla/js/tests/ecma_3/Unicode/uc-001-n.js index 6527c1623af..82c39041f1c 100644 --- a/mozilla/js/tests/ecma_3/Unicode/uc-001-n.js +++ b/mozilla/js/tests/ecma_3/Unicode/uc-001-n.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/ecma_3/Unicode/uc-001.js b/mozilla/js/tests/ecma_3/Unicode/uc-001.js index 470e8bc7611..5b045ad1529 100644 --- a/mozilla/js/tests/ecma_3/Unicode/uc-001.js +++ b/mozilla/js/tests/ecma_3/Unicode/uc-001.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/ecma_3/Unicode/uc-002-n.js b/mozilla/js/tests/ecma_3/Unicode/uc-002-n.js index 9c54a267cad..6fc66e9a6f6 100644 --- a/mozilla/js/tests/ecma_3/Unicode/uc-002-n.js +++ b/mozilla/js/tests/ecma_3/Unicode/uc-002-n.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/ecma_3/Unicode/uc-002.js b/mozilla/js/tests/ecma_3/Unicode/uc-002.js index 3b05d83806e..410b1e5aaec 100644 --- a/mozilla/js/tests/ecma_3/Unicode/uc-002.js +++ b/mozilla/js/tests/ecma_3/Unicode/uc-002.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/ecma_3/Unicode/uc-003.js b/mozilla/js/tests/ecma_3/Unicode/uc-003.js index 7004cf4bce5..dbd84a6e316 100644 --- a/mozilla/js/tests/ecma_3/Unicode/uc-003.js +++ b/mozilla/js/tests/ecma_3/Unicode/uc-003.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/ecma_3/Unicode/uc-004.js b/mozilla/js/tests/ecma_3/Unicode/uc-004.js index 2518124c5e3..f44bdeef386 100644 --- a/mozilla/js/tests/ecma_3/Unicode/uc-004.js +++ b/mozilla/js/tests/ecma_3/Unicode/uc-004.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/ecma_3/Unicode/uc-005.js b/mozilla/js/tests/ecma_3/Unicode/uc-005.js index 5b1be03f51c..2dfecc0a332 100644 --- a/mozilla/js/tests/ecma_3/Unicode/uc-005.js +++ b/mozilla/js/tests/ecma_3/Unicode/uc-005.js @@ -1,66 +1,66 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): rogerl@netscape.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 15 July 2002 -* SUMMARY: Testing identifiers with double-byte names -* See http://bugzilla.mozilla.org/show_bug.cgi?id=58274 -* -* Here is a sample of the problem: -* -* js> function f\u02B1 () {} -* -* js> f\u02B1.toSource(); -* function f¦() {} -* -* js> f\u02B1.toSource().toSource(); -* (new String("function f\xB1() {}")) -* -* -* See how the high-byte information (the 02) has been lost? -* The same thing was happening with the toString() method: -* -* js> f\u02B1.toString(); -* -* function f¦() { -* } -* -* js> f\u02B1.toString().toSource(); -* (new String("\nfunction f\xB1() {\n}\n")) -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): rogerl@netscape.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 15 July 2002 + * SUMMARY: Testing identifiers with double-byte names + * See http://bugzilla.mozilla.org/show_bug.cgi?id=58274 + * + * Here is a sample of the problem: + * + * js> function f\u02B1 () {} + * + * js> f\u02B1.toSource(); + * function f¦() {} + * + * js> f\u02B1.toSource().toSource(); + * (new String("function f\xB1() {}")) + * + * + * See how the high-byte information (the 02) has been lost? + * The same thing was happening with the toString() method: + * + * js> f\u02B1.toString(); + * + * function f¦() { + * } + * + * js> f\u02B1.toString().toSource(); + * (new String("\nfunction f\xB1() {\n}\n")) + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 58274; diff --git a/mozilla/js/tests/ecma_3/shell.js b/mozilla/js/tests/ecma_3/shell.js index 4fde9bccb23..07c2035a014 100644 --- a/mozilla/js/tests/ecma_3/shell.js +++ b/mozilla/js/tests/ecma_3/shell.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ var FAILED = "FAILED!: "; diff --git a/mozilla/js/tests/js1_1/browser.js b/mozilla/js/tests/js1_1/browser.js index 5bbdf7c6b99..36192eb77fd 100644 --- a/mozilla/js/tests/js1_1/browser.js +++ b/mozilla/js/tests/js1_1/browser.js @@ -1,23 +1,23 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ /* * JavaScript test library shared functions file for running the tests diff --git a/mozilla/js/tests/js1_1/shell.js b/mozilla/js/tests/js1_1/shell.js index 191e8e77864..44d37eddda8 100644 --- a/mozilla/js/tests/js1_1/shell.js +++ b/mozilla/js/tests/js1_1/shell.js @@ -1,23 +1,23 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ var completed = false; var testcases; diff --git a/mozilla/js/tests/js1_2/regexp/regress-6359.js b/mozilla/js/tests/js1_2/regexp/regress-6359.js index 20ac50ff9d3..301a38c77a9 100644 --- a/mozilla/js/tests/js1_2/regexp/regress-6359.js +++ b/mozilla/js/tests/js1_2/regexp/regress-6359.js @@ -1,23 +1,23 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ /** * File Name: regress-6359.js diff --git a/mozilla/js/tests/js1_2/regexp/regress-9141.js b/mozilla/js/tests/js1_2/regexp/regress-9141.js index 3601bcfdf4e..6e3d124cb2d 100644 --- a/mozilla/js/tests/js1_2/regexp/regress-9141.js +++ b/mozilla/js/tests/js1_2/regexp/regress-9141.js @@ -1,23 +1,23 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ /** * File Name: regress-9141.js diff --git a/mozilla/js/tests/js1_2/regress/regress-144834.js b/mozilla/js/tests/js1_2/regress/regress-144834.js index cfbfc1b1b78..898eeb1271c 100644 --- a/mozilla/js/tests/js1_2/regress/regress-144834.js +++ b/mozilla/js/tests/js1_2/regress/regress-144834.js @@ -1,46 +1,46 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): bzbarsky@mit.edu, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 05 July 2002 -* SUMMARY: Testing local var having same name as switch label inside function -* -* The code below crashed while compiling in JS1.1 or JS1.2 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=144834 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): bzbarsky@mit.edu, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 05 July 2002 + * SUMMARY: Testing local var having same name as switch label inside function + * + * The code below crashed while compiling in JS1.1 or JS1.2 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=144834 + * + */ //----------------------------------------------------------------------------- var bug = 144834; var summary = 'Local var having same name as switch label inside function'; diff --git a/mozilla/js/tests/js1_2/regress/regress-7703.js b/mozilla/js/tests/js1_2/regress/regress-7703.js index 7808d9b55cc..41f992aa654 100644 --- a/mozilla/js/tests/js1_2/regress/regress-7703.js +++ b/mozilla/js/tests/js1_2/regress/regress-7703.js @@ -1,23 +1,23 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ /** * File Name: regress-7703.js diff --git a/mozilla/js/tests/js1_2/version120/regress-99663.js b/mozilla/js/tests/js1_2/version120/regress-99663.js index 75131ee2390..78195cd73f9 100644 --- a/mozilla/js/tests/js1_2/version120/regress-99663.js +++ b/mozilla/js/tests/js1_2/version120/regress-99663.js @@ -1,50 +1,51 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): brendan@mozilla.org, pschwartau@netscape.com -* Date: 09 October 2001 -* -* SUMMARY: Regression test for Bugzilla bug 99663 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=99663 -* -******************************************************************************* -******************************************************************************* -* ESSENTIAL!: this test should contain, or be loaded after, a call to -* -* version(120); -* -* Only JS version 1.2 or less has the behavior we're expecting here - -* -* Brendan: "The JS_SetVersion stickiness is necessary for tests such as -* this one to work properly. I think the existing js/tests have been lucky -* in dodging the buggy way that JS_SetVersion's effect can be undone by -* function return." -* -* Note: it is the function statements for f1(), etc. that MUST be compiled -* in JS version 1.2 or less for the test to pass - -* -******************************************************************************* -******************************************************************************* -* -* -* NOTE: the test uses the |it| object of SpiderMonkey; don't run it in Rhino - -* -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): brendan@mozilla.org, pschwartau@netscape.com + * + * Date: 09 October 2001 + * + * SUMMARY: Regression test for Bugzilla bug 99663 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=99663 + * + ******************************************************************************* + ******************************************************************************* + * ESSENTIAL!: this test should contain, or be loaded after, a call to + * + * version(120); + * + * Only JS version 1.2 or less has the behavior we're expecting here - + * + * Brendan: "The JS_SetVersion stickiness is necessary for tests such as + * this one to work properly. I think the existing js/tests have been lucky + * in dodging the buggy way that JS_SetVersion's effect can be undone by + * function return." + * + * Note: it is the function statements for f1(), etc. that MUST be compiled + * in JS version 1.2 or less for the test to pass - + * + ******************************************************************************* + ******************************************************************************* + * + * + * NOTE: the test uses the |it| object of SpiderMonkey; don't run it in Rhino - + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 99663; diff --git a/mozilla/js/tests/js1_2/version120/shell.js b/mozilla/js/tests/js1_2/version120/shell.js index e453344ae3d..d5d5b78e1df 100644 --- a/mozilla/js/tests/js1_2/version120/shell.js +++ b/mozilla/js/tests/js1_2/version120/shell.js @@ -1,23 +1,23 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ /* all files in this dir need version(120) called before they are *loaded* */ diff --git a/mozilla/js/tests/js1_4/Regress/regress-7224.js b/mozilla/js/tests/js1_4/Regress/regress-7224.js index b63ecaafed0..7657ef56ca3 100644 --- a/mozilla/js/tests/js1_4/Regress/regress-7224.js +++ b/mozilla/js/tests/js1_4/Regress/regress-7224.js @@ -1,23 +1,23 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ /** * File Name: regress-7224.js diff --git a/mozilla/js/tests/js1_4/browser.js b/mozilla/js/tests/js1_4/browser.js index 5bbdf7c6b99..36192eb77fd 100644 --- a/mozilla/js/tests/js1_4/browser.js +++ b/mozilla/js/tests/js1_4/browser.js @@ -1,23 +1,23 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ /* * JavaScript test library shared functions file for running the tests diff --git a/mozilla/js/tests/js1_5/Array/array-001.js b/mozilla/js/tests/js1_5/Array/array-001.js index fbb644047d8..73db8a01081 100644 --- a/mozilla/js/tests/js1_5/Array/array-001.js +++ b/mozilla/js/tests/js1_5/Array/array-001.js @@ -1,27 +1,28 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): igor@icesoft.no, pschwartau@netscape.com -* Date: 24 September 2001 -* -* SUMMARY: Truncating arrays that have decimal property names. -* From correspondence with Igor Bukanov : -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): igor@icesoft.no, pschwartau@netscape.com + * + * Date: 24 September 2001 + * + * SUMMARY: Truncating arrays that have decimal property names. + * From correspondence with Igor Bukanov : + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; diff --git a/mozilla/js/tests/js1_5/Array/regress-101964.js b/mozilla/js/tests/js1_5/Array/regress-101964.js index 72232f8c718..f60b0c1bc73 100644 --- a/mozilla/js/tests/js1_5/Array/regress-101964.js +++ b/mozilla/js/tests/js1_5/Array/regress-101964.js @@ -1,30 +1,31 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 27 September 2001 -* -* SUMMARY: Performance: truncating even very large arrays should be fast! -* See http://bugzilla.mozilla.org/show_bug.cgi?id=101964 -* -* Adjust this testcase if necessary. The FAST constant defines -* an upper bound in milliseconds for any truncation to take. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 27 September 2001 + * + * SUMMARY: Performance: truncating even very large arrays should be fast! + * See http://bugzilla.mozilla.org/show_bug.cgi?id=101964 + * + * Adjust this testcase if necessary. The FAST constant defines + * an upper bound in milliseconds for any truncation to take. + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 101964; diff --git a/mozilla/js/tests/js1_5/Array/regress-107138.js b/mozilla/js/tests/js1_5/Array/regress-107138.js index 41527df8993..0cb1dd8692f 100644 --- a/mozilla/js/tests/js1_5/Array/regress-107138.js +++ b/mozilla/js/tests/js1_5/Array/regress-107138.js @@ -1,32 +1,33 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): morse@netscape.com, pschwartau@netscape.com -* Date: 29 October 2001 -* -* SUMMARY: Regression test for bug 107138 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=107138 -* -* The bug: arr['1'] == undefined instead of arr['1'] == 'one'. -* The bug was intermittent and did not always occur... -* -* The cnSTRESS constant defines how many times to repeat this test. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): morse@netscape.com, pschwartau@netscape.com + * + * Date: 29 October 2001 + * + * SUMMARY: Regression test for bug 107138 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=107138 + * + * The bug: arr['1'] == undefined instead of arr['1'] == 'one'. + * The bug was intermittent and did not always occur... + * + * The cnSTRESS constant defines how many times to repeat this test. + */ //----------------------------------------------------------------------------- var UBound = 0; var cnSTRESS = 10; diff --git a/mozilla/js/tests/js1_5/Array/regress-108440.js b/mozilla/js/tests/js1_5/Array/regress-108440.js index f3d83fb4008..902bdeec9ca 100644 --- a/mozilla/js/tests/js1_5/Array/regress-108440.js +++ b/mozilla/js/tests/js1_5/Array/regress-108440.js @@ -1,49 +1,49 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2001 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com, Liorean@user.bip.net -* -* 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 30 October 2001 -* SUMMARY: Regression test for bug 108440 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=108440 -* -* We shouldn't crash trying to add an array as an element of itself (!) -* -* Brendan: "...it appears that Array.prototype.toString is unsafe, -* and what's more, ECMA-262 Edition 3 has no helpful words about -* avoiding recursive death on a cycle." -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2001 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com, Liorean@user.bip.net + * + * 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 30 October 2001 + * SUMMARY: Regression test for bug 108440 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=108440 + * + * We shouldn't crash trying to add an array as an element of itself (!) + * + * Brendan: "...it appears that Array.prototype.toString is unsafe, + * and what's more, ECMA-262 Edition 3 has no helpful words about + * avoiding recursive death on a cycle." + */ //----------------------------------------------------------------------------- var bug = 108440; var summary = "Shouldn't crash trying to add an array as an element of itself"; diff --git a/mozilla/js/tests/js1_5/Array/regress-154338.js b/mozilla/js/tests/js1_5/Array/regress-154338.js index ced8ef5244c..e03303d0546 100644 --- a/mozilla/js/tests/js1_5/Array/regress-154338.js +++ b/mozilla/js/tests/js1_5/Array/regress-154338.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 26 June 2002 -* SUMMARY: Testing array.join() when separator is a variable, not a literal -* See http://bugzilla.mozilla.org/show_bug.cgi?id=154338 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 26 June 2002 + * SUMMARY: Testing array.join() when separator is a variable, not a literal + * See http://bugzilla.mozilla.org/show_bug.cgi?id=154338 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 154338; diff --git a/mozilla/js/tests/js1_5/Array/regress-157652.js b/mozilla/js/tests/js1_5/Array/regress-157652.js index fee4b364c64..6238e968c76 100644 --- a/mozilla/js/tests/js1_5/Array/regress-157652.js +++ b/mozilla/js/tests/js1_5/Array/regress-157652.js @@ -1,114 +1,114 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): zen-parse@gmx.net, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 16 July 2002 -* SUMMARY: Testing that Array.sort() doesn't crash on very large arrays -* See http://bugzilla.mozilla.org/show_bug.cgi?id=157652 -* -* How large can a JavaScript array be? -* ECMA-262 Ed.3 Final, Section 15.4.2.2 : new Array(len) -* -* This states that |len| must be a a uint32 (unsigned 32-bit integer). -* Note the UBound for uint32's is 2^32 -1 = 0xFFFFFFFF = 4,294,967,295. -* -* Check: -* js> var arr = new Array(0xFFFFFFFF) -* js> arr.length -* 4294967295 -* -* js> var arr = new Array(0x100000000) -* RangeError: invalid array length -* -* -* We'll try the largest possible array first, then a couple others. -* We're just testing that we don't crash on Array.sort(). -* -* Try to be good about memory by nulling each array variable after it is -* used. This will tell the garbage collector the memory is no longer needed. -* -* As of 2002-08-13, the JS shell runs out of memory no matter what we do, -* when trying to sort such large arrays. -* -* We only want to test that we don't CRASH on the sort. So it will be OK -* if we get the JS "out of memory" error. Note this terminates the test -* with exit code 3. Therefore we put -* -* |expectExitCode(3);| -* -* The only problem will arise if the JS shell ever DOES have enough memory -* to do the sort. Then this test will terminate with the normal exit code 0 -* and fail. -* -* Right now, I can't see any other way to do this, because "out of memory" -* is not a catchable error: it cannot be trapped with try...catch. -* -* -* FURTHER HEADACHE: Rhino can't seem to handle the largest array: it hangs. -* So we skip this case in Rhino. Here is correspondence with Igor Bukanov. -* He explains that Rhino isn't actually hanging; it's doing the huge sort: -* -* Philip Schwartau wrote: -* -* > Hi, -* > -* > I'm getting a graceful OOM message on trying to sort certain large -* > arrays. But if the array is too big, Rhino simply hangs. Note that ECMA -* > allows array lengths to be anything less than Math.pow(2,32), so the -* > arrays I'm sorting are legal. -* > -* > Note below, I'm getting an instantaneous OOM error on arr.sort() for LEN -* > = Math.pow(2, 30). So shouldn't I also get one for every LEN between -* > that and Math.pow(2, 32)? For some reason, I start to hang with 100% CPU -* > as LEN hits, say, Math.pow(2, 31) and higher. SpiderMonkey gives OOM -* > messages for all of these. Should I file a bug on this? -* -* Igor Bukanov wrote: -* -* This is due to different sorting algorithm Rhino uses when sorting -* arrays with length > Integer.MAX_VALUE. If length can fit Java int, -* Rhino first copies internal spare array to a temporary buffer, and then -* sorts it, otherwise it sorts array directly. In case of very spare -* arrays, that Array(big_number) generates, it is rather inefficient and -* generates OutOfMemory if length fits int. It may be worth in your case -* to optimize sorting to take into account array spareness, but then it -* would be a good idea to file a bug about ineficient sorting of spare -* arrays both in case of Rhino and SpiderMonkey as SM always uses a -* temporary buffer. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): zen-parse@gmx.net, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 16 July 2002 + * SUMMARY: Testing that Array.sort() doesn't crash on very large arrays + * See http://bugzilla.mozilla.org/show_bug.cgi?id=157652 + * + * How large can a JavaScript array be? + * ECMA-262 Ed.3 Final, Section 15.4.2.2 : new Array(len) + * + * This states that |len| must be a a uint32 (unsigned 32-bit integer). + * Note the UBound for uint32's is 2^32 -1 = 0xFFFFFFFF = 4,294,967,295. + * + * Check: + * js> var arr = new Array(0xFFFFFFFF) + * js> arr.length + * 4294967295 + * + * js> var arr = new Array(0x100000000) + * RangeError: invalid array length + * + * + * We'll try the largest possible array first, then a couple others. + * We're just testing that we don't crash on Array.sort(). + * + * Try to be good about memory by nulling each array variable after it is + * used. This will tell the garbage collector the memory is no longer needed. + * + * As of 2002-08-13, the JS shell runs out of memory no matter what we do, + * when trying to sort such large arrays. + * + * We only want to test that we don't CRASH on the sort. So it will be OK + * if we get the JS "out of memory" error. Note this terminates the test + * with exit code 3. Therefore we put + * + * |expectExitCode(3);| + * + * The only problem will arise if the JS shell ever DOES have enough memory + * to do the sort. Then this test will terminate with the normal exit code 0 + * and fail. + * + * Right now, I can't see any other way to do this, because "out of memory" + * is not a catchable error: it cannot be trapped with try...catch. + * + * + * FURTHER HEADACHE: Rhino can't seem to handle the largest array: it hangs. + * So we skip this case in Rhino. Here is correspondence with Igor Bukanov. + * He explains that Rhino isn't actually hanging; it's doing the huge sort: + * + * Philip Schwartau wrote: + * + * > Hi, + * > + * > I'm getting a graceful OOM message on trying to sort certain large + * > arrays. But if the array is too big, Rhino simply hangs. Note that ECMA + * > allows array lengths to be anything less than Math.pow(2,32), so the + * > arrays I'm sorting are legal. + * > + * > Note below, I'm getting an instantaneous OOM error on arr.sort() for LEN + * > = Math.pow(2, 30). So shouldn't I also get one for every LEN between + * > that and Math.pow(2, 32)? For some reason, I start to hang with 100% CPU + * > as LEN hits, say, Math.pow(2, 31) and higher. SpiderMonkey gives OOM + * > messages for all of these. Should I file a bug on this? + * + * Igor Bukanov wrote: + * + * This is due to different sorting algorithm Rhino uses when sorting + * arrays with length > Integer.MAX_VALUE. If length can fit Java int, + * Rhino first copies internal spare array to a temporary buffer, and then + * sorts it, otherwise it sorts array directly. In case of very spare + * arrays, that Array(big_number) generates, it is rather inefficient and + * generates OutOfMemory if length fits int. It may be worth in your case + * to optimize sorting to take into account array spareness, but then it + * would be a good idea to file a bug about ineficient sorting of spare + * arrays both in case of Rhino and SpiderMonkey as SM always uses a + * temporary buffer. + * + */ //----------------------------------------------------------------------------- var bug = 157652; var summary = "Testing that Array.sort() doesn't crash on very large arrays"; diff --git a/mozilla/js/tests/js1_5/Array/regress-178722.js b/mozilla/js/tests/js1_5/Array/regress-178722.js index 994b3810084..0c07f225bbf 100644 --- a/mozilla/js/tests/js1_5/Array/regress-178722.js +++ b/mozilla/js/tests/js1_5/Array/regress-178722.js @@ -1,60 +1,60 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 06 November 2002 -* SUMMARY: arr.sort() should not output |undefined| when |arr| is empty -* See http://bugzilla.mozilla.org/show_bug.cgi?id=178722 -* -* ECMA-262 Ed.3: 15.4.4.11 Array.prototype.sort (comparefn) -* -* 1. Call the [[Get]] method of this object with argument "length". -* 2. Call ToUint32(Result(1)). -* 3. Perform an implementation-dependent sequence of calls to the [[Get]], -* [[Put]], and [[Delete]] methods of this object, etc. etc. -* 4. Return this object. -* -* -* Note that sort() is done in-place on |arr|. In other words, sort() is a -* "destructive" method rather than a "functional" method. The return value -* of |arr.sort()| and |arr| are the same object. -* -* If |arr| is an empty array, the return value of |arr.sort()| should be -* an empty array, not the value |undefined| as was occurring in bug 178722. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 06 November 2002 + * SUMMARY: arr.sort() should not output |undefined| when |arr| is empty + * See http://bugzilla.mozilla.org/show_bug.cgi?id=178722 + * + * ECMA-262 Ed.3: 15.4.4.11 Array.prototype.sort (comparefn) + * + * 1. Call the [[Get]] method of this object with argument "length". + * 2. Call ToUint32(Result(1)). + * 3. Perform an implementation-dependent sequence of calls to the [[Get]], + * [[Put]], and [[Delete]] methods of this object, etc. etc. + * 4. Return this object. + * + * + * Note that sort() is done in-place on |arr|. In other words, sort() is a + * "destructive" method rather than a "functional" method. The return value + * of |arr.sort()| and |arr| are the same object. + * + * If |arr| is an empty array, the return value of |arr.sort()| should be + * an empty array, not the value |undefined| as was occurring in bug 178722. + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 178722; diff --git a/mozilla/js/tests/js1_5/Array/regress-94257.js b/mozilla/js/tests/js1_5/Array/regress-94257.js index 28ab6675289..c8fa615b012 100644 --- a/mozilla/js/tests/js1_5/Array/regress-94257.js +++ b/mozilla/js/tests/js1_5/Array/regress-94257.js @@ -1,31 +1,32 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): wtam@bigfoot.com, pschwartau@netscape.com -* Date: 30 October 2001 -* -* SUMMARY: Regression test for bug 94257 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=94257 -* -* Rhino used to crash on this code; specifically, on the line -* -* arr[1+1] += 2; -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): wtam@bigfoot.com, pschwartau@netscape.com + * + * Date: 30 October 2001 + * + * SUMMARY: Regression test for bug 94257 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=94257 + * + * Rhino used to crash on this code; specifically, on the line + * + * arr[1+1] += 2; + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 94257; diff --git a/mozilla/js/tests/js1_5/Exceptions/catchguard-001-n.js b/mozilla/js/tests/js1_5/Exceptions/catchguard-001-n.js index 37b10ae304d..a5a211b8a0a 100644 --- a/mozilla/js/tests/js1_5/Exceptions/catchguard-001-n.js +++ b/mozilla/js/tests/js1_5/Exceptions/catchguard-001-n.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/js1_5/Exceptions/catchguard-001.js b/mozilla/js/tests/js1_5/Exceptions/catchguard-001.js index e65723e8bd8..0976ea34a4e 100644 --- a/mozilla/js/tests/js1_5/Exceptions/catchguard-001.js +++ b/mozilla/js/tests/js1_5/Exceptions/catchguard-001.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/js1_5/Exceptions/catchguard-002-n.js b/mozilla/js/tests/js1_5/Exceptions/catchguard-002-n.js index 4446dd4b5df..2874b101cd1 100644 --- a/mozilla/js/tests/js1_5/Exceptions/catchguard-002-n.js +++ b/mozilla/js/tests/js1_5/Exceptions/catchguard-002-n.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ function test() diff --git a/mozilla/js/tests/js1_5/Exceptions/catchguard-002.js b/mozilla/js/tests/js1_5/Exceptions/catchguard-002.js index 4e890781df6..71a1efc496f 100644 --- a/mozilla/js/tests/js1_5/Exceptions/catchguard-002.js +++ b/mozilla/js/tests/js1_5/Exceptions/catchguard-002.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/js1_5/Exceptions/catchguard-003-n.js b/mozilla/js/tests/js1_5/Exceptions/catchguard-003-n.js index b5fca0216f0..9d257ff7c6e 100644 --- a/mozilla/js/tests/js1_5/Exceptions/catchguard-003-n.js +++ b/mozilla/js/tests/js1_5/Exceptions/catchguard-003-n.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/js1_5/Exceptions/catchguard-003.js b/mozilla/js/tests/js1_5/Exceptions/catchguard-003.js index 2cb64a68ebc..1be14813c90 100644 --- a/mozilla/js/tests/js1_5/Exceptions/catchguard-003.js +++ b/mozilla/js/tests/js1_5/Exceptions/catchguard-003.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ test(); diff --git a/mozilla/js/tests/js1_5/Exceptions/errstack-001.js b/mozilla/js/tests/js1_5/Exceptions/errstack-001.js index 4850d20662e..acd764ad5f0 100644 --- a/mozilla/js/tests/js1_5/Exceptions/errstack-001.js +++ b/mozilla/js/tests/js1_5/Exceptions/errstack-001.js @@ -1,59 +1,59 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): brendan@mozilla.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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 28 Feb 2002 -* SUMMARY: Testing that Error.stack distinguishes between: -* -* A) top-level calls: myFunc(); -* B) no-name function calls: function() { myFunc();} () -* -* The stack frame for A) should begin with '@' -* The stack frame for B) should begin with '()' -* -* This behavior was coded by Brendan during his fix for bug 127136. -* See http://bugzilla.mozilla.org/show_bug.cgi?id=127136#c13 -* -* Note: our function getStackFrames(err) orders the array of stack frames -* so that the 0th element will correspond to the highest frame, i.e. will -* correspond to a line in top-level code. The 1st element will correspond -* to the function that is called first, and so on... -* -* NOTE: At present Rhino does not have an Error.stack property. It is an -* ECMA extension, see http://bugzilla.mozilla.org/show_bug.cgi?id=123177 -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): brendan@mozilla.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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 28 Feb 2002 + * SUMMARY: Testing that Error.stack distinguishes between: + * + * A) top-level calls: myFunc(); + * B) no-name function calls: function() { myFunc();} () + * + * The stack frame for A) should begin with '@' + * The stack frame for B) should begin with '()' + * + * This behavior was coded by Brendan during his fix for bug 127136. + * See http://bugzilla.mozilla.org/show_bug.cgi?id=127136#c13 + * + * Note: our function getStackFrames(err) orders the array of stack frames + * so that the 0th element will correspond to the highest frame, i.e. will + * correspond to a line in top-level code. The 1st element will correspond + * to the function that is called first, and so on... + * + * NOTE: At present Rhino does not have an Error.stack property. It is an + * ECMA extension, see http://bugzilla.mozilla.org/show_bug.cgi?id=123177 + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; diff --git a/mozilla/js/tests/js1_5/Exceptions/regress-121658.js b/mozilla/js/tests/js1_5/Exceptions/regress-121658.js index 73287491b76..55e104432aa 100644 --- a/mozilla/js/tests/js1_5/Exceptions/regress-121658.js +++ b/mozilla/js/tests/js1_5/Exceptions/regress-121658.js @@ -1,47 +1,47 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): timeless@mac.com,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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 24 Jan 2002 -* SUMMARY: "Too much recursion" errors should be safely caught by try...catch -* See http://bugzilla.mozilla.org/show_bug.cgi?id=121658 -* -* In the cases below, we expect i>0. The bug was filed because we were getting -* i===0; i.e. |i| did not retain the value it had at the location of the error. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): timeless@mac.com,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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 24 Jan 2002 + * SUMMARY: "Too much recursion" errors should be safely caught by try...catch + * See http://bugzilla.mozilla.org/show_bug.cgi?id=121658 + * + * In the cases below, we expect i>0. The bug was filed because we were getting + * i===0; i.e. |i| did not retain the value it had at the location of the error. + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 121658; diff --git a/mozilla/js/tests/js1_5/Exceptions/regress-123002.js b/mozilla/js/tests/js1_5/Exceptions/regress-123002.js index 338d1d10ad2..6a5d1cd0647 100644 --- a/mozilla/js/tests/js1_5/Exceptions/regress-123002.js +++ b/mozilla/js/tests/js1_5/Exceptions/regress-123002.js @@ -1,58 +1,58 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 01 Feb 2002 -* SUMMARY: Testing Error.length -* See http://bugzilla.mozilla.org/show_bug.cgi?id=123002 -* -* NOTE: Error.length should equal the length of FormalParameterList of the -* Error constructor. This is currently 1 in Rhino, 3 in SpiderMonkey. -* -* The difference is due to http://bugzilla.mozilla.org/show_bug.cgi?id=50447. -* As a result of that bug, SpiderMonkey has extended ECMA to allow two new -* parameters to Error constructors: -* -* Rhino: new Error (message) -* SpiderMonkey: new Error (message, fileName, lineNumber) -* -* NOTE: since we have hard-coded the length expectations, this testcase will -* have to be changed if the Error FormalParameterList is ever changed again. -* -* To do this, just change the two LENGTH constants below - -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 01 Feb 2002 + * SUMMARY: Testing Error.length + * See http://bugzilla.mozilla.org/show_bug.cgi?id=123002 + * + * NOTE: Error.length should equal the length of FormalParameterList of the + * Error constructor. This is currently 1 in Rhino, 3 in SpiderMonkey. + * + * The difference is due to http://bugzilla.mozilla.org/show_bug.cgi?id=50447. + * As a result of that bug, SpiderMonkey has extended ECMA to allow two new + * parameters to Error constructors: + * + * Rhino: new Error (message) + * SpiderMonkey: new Error (message, fileName, lineNumber) + * + * NOTE: since we have hard-coded the length expectations, this testcase will + * have to be changed if the Error FormalParameterList is ever changed again. + * + * To do this, just change the two LENGTH constants below - + */ //----------------------------------------------------------------------------- var LENGTH_RHINO = 1; var LENGTH_SPIDERMONKEY = 3; diff --git a/mozilla/js/tests/js1_5/Exceptions/regress-50447.js b/mozilla/js/tests/js1_5/Exceptions/regress-50447.js index 8f03bc8b81c..20ef4bb41a6 100644 --- a/mozilla/js/tests/js1_5/Exceptions/regress-50447.js +++ b/mozilla/js/tests/js1_5/Exceptions/regress-50447.js @@ -1,30 +1,30 @@ /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- -* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is Mozilla Communicator client code, released March -* 31, 1998. -* -* The Initial Developer of the Original Code is Netscape Communications -* Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): Rob Ginda rginda@netscape.com -* -* SUMMARY: New properties fileName, lineNumber have been added to Error objects -* in SpiderMonkey. These are non-ECMA extensions and do not exist in Rhino. -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=50447 -*/ + * + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is Mozilla Communicator client code, released March + * 31, 1998. + * + * The Initial Developer of the Original Code is Netscape Communications + * Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): Rob Ginda rginda@netscape.com + * + * SUMMARY: New properties fileName, lineNumber have been added to Error objects + * in SpiderMonkey. These are non-ECMA extensions and do not exist in Rhino. + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=50447 + */ //----------------------------------------------------------------------------- var bug = 50447; var summary = 'Test (non-ECMA) Error object properties fileName, lineNumber'; diff --git a/mozilla/js/tests/js1_5/Expressions/regress-192288.js b/mozilla/js/tests/js1_5/Expressions/regress-192288.js index 830ec7dd0a4..8f1a7246ed7 100644 --- a/mozilla/js/tests/js1_5/Expressions/regress-192288.js +++ b/mozilla/js/tests/js1_5/Expressions/regress-192288.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@icesoft.no, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 07 February 2003 -* SUMMARY: Testing 0/0 inside functions -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=192288 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@icesoft.no, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 07 February 2003 + * SUMMARY: Testing 0/0 inside functions + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=192288 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 192288; diff --git a/mozilla/js/tests/js1_5/Expressions/regress-96526-argsub.js b/mozilla/js/tests/js1_5/Expressions/regress-96526-argsub.js index 13806bb070e..8ffb0a1aebd 100644 --- a/mozilla/js/tests/js1_5/Expressions/regress-96526-argsub.js +++ b/mozilla/js/tests/js1_5/Expressions/regress-96526-argsub.js @@ -1,48 +1,48 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): brendan@mozilla.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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 29 Oct 2002 -* SUMMARY: Testing "use" and "set" operations on expressions like a[i][j][k] -* See http://bugzilla.mozilla.org/show_bug.cgi?id=96526#c52 -* -* Brendan: "The idea is to cover all the 'use' and 'set' (as in modify) -* operations you can do on an expression like a[i][j][k], including variations -* where you replace |a| with arguments (literally) and |i| with 0, 1, 2, etc. -* (to hit the optimization for arguments[0]... that uses JSOP_ARGSUB)." -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): brendan@mozilla.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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 29 Oct 2002 + * SUMMARY: Testing "use" and "set" operations on expressions like a[i][j][k] + * See http://bugzilla.mozilla.org/show_bug.cgi?id=96526#c52 + * + * Brendan: "The idea is to cover all the 'use' and 'set' (as in modify) + * operations you can do on an expression like a[i][j][k], including variations + * where you replace |a| with arguments (literally) and |i| with 0, 1, 2, etc. + * (to hit the optimization for arguments[0]... that uses JSOP_ARGSUB)." + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 96526; diff --git a/mozilla/js/tests/js1_5/Expressions/regress-96526-delelem.js b/mozilla/js/tests/js1_5/Expressions/regress-96526-delelem.js index 940bd7961ab..9c1de4cd96c 100644 --- a/mozilla/js/tests/js1_5/Expressions/regress-96526-delelem.js +++ b/mozilla/js/tests/js1_5/Expressions/regress-96526-delelem.js @@ -1,48 +1,48 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): brendan@mozilla.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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 29 Oct 2002 -* SUMMARY: Testing "use" and "set" operations on expressions like a[i][j][k] -* See http://bugzilla.mozilla.org/show_bug.cgi?id=96526#c52 -* -* Brendan: "The idea is to cover all the 'use' and 'set' (as in modify) -* operations you can do on an expression like a[i][j][k], including variations -* where you replace |a| with arguments (literally) and |i| with 0, 1, 2, etc. -* (to hit the optimization for arguments[0]... that uses JSOP_ARGSUB)." -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): brendan@mozilla.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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 29 Oct 2002 + * SUMMARY: Testing "use" and "set" operations on expressions like a[i][j][k] + * See http://bugzilla.mozilla.org/show_bug.cgi?id=96526#c52 + * + * Brendan: "The idea is to cover all the 'use' and 'set' (as in modify) + * operations you can do on an expression like a[i][j][k], including variations + * where you replace |a| with arguments (literally) and |i| with 0, 1, 2, etc. + * (to hit the optimization for arguments[0]... that uses JSOP_ARGSUB)." + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 96526; diff --git a/mozilla/js/tests/js1_5/Expressions/regress-96526-noargsub.js b/mozilla/js/tests/js1_5/Expressions/regress-96526-noargsub.js index 33c28a3e823..2fbb289fa30 100644 --- a/mozilla/js/tests/js1_5/Expressions/regress-96526-noargsub.js +++ b/mozilla/js/tests/js1_5/Expressions/regress-96526-noargsub.js @@ -1,48 +1,48 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): brendan@mozilla.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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 29 Oct 2002 -* SUMMARY: Testing "use" and "set" operations on expressions like a[i][j][k] -* See http://bugzilla.mozilla.org/show_bug.cgi?id=96526#c52 -* -* Brendan: "The idea is to cover all the 'use' and 'set' (as in modify) -* operations you can do on an expression like a[i][j][k], including variations -* where you replace |a| with arguments (literally) and |i| with 0, 1, 2, etc. -* (to hit the optimization for arguments[0]... that uses JSOP_ARGSUB)." -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): brendan@mozilla.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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 29 Oct 2002 + * SUMMARY: Testing "use" and "set" operations on expressions like a[i][j][k] + * See http://bugzilla.mozilla.org/show_bug.cgi?id=96526#c52 + * + * Brendan: "The idea is to cover all the 'use' and 'set' (as in modify) + * operations you can do on an expression like a[i][j][k], including variations + * where you replace |a| with arguments (literally) and |i| with 0, 1, 2, etc. + * (to hit the optimization for arguments[0]... that uses JSOP_ARGSUB)." + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 96526; diff --git a/mozilla/js/tests/js1_5/Expressions/shell.js b/mozilla/js/tests/js1_5/Expressions/shell.js index 83cf7710c7d..743d963ff60 100644 --- a/mozilla/js/tests/js1_5/Expressions/shell.js +++ b/mozilla/js/tests/js1_5/Expressions/shell.js @@ -1,26 +1,27 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 07 February 2001 -* -* Functionality common to Array testing - -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 07 February 2001 + * + * Functionality common to Array testing - + */ //------------------------------------------------------------------------------------------------- var CHAR_LBRACKET = '['; var CHAR_RBRACKET = ']'; diff --git a/mozilla/js/tests/js1_5/Function/regress-222029-001.js b/mozilla/js/tests/js1_5/Function/regress-222029-001.js index 6f5a579a751..5a8eb5f4b1c 100644 --- a/mozilla/js/tests/js1_5/Function/regress-222029-001.js +++ b/mozilla/js/tests/js1_5/Function/regress-222029-001.js @@ -1,55 +1,55 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): Adrian Herscu, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 13 Oct 2003 -* SUMMARY: Make our f.caller property match IE's wrt f.apply and f.call -* See http://bugzilla.mozilla.org/show_bug.cgi?id=222029 -* -* Below, when gg calls f via |f.call|, we have this call chain: -* -* calls calls -* gg() ---------> Function.prototype.call() ---------> f() -* -* -* The question this bug addresses is, "What should we say |f.caller| is?" -* -* Before this fix, SpiderMonkey said it was |Function.prototype.call|. -* After this fix, SpiderMonkey emulates IE and says |gg| instead. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): Adrian Herscu, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 13 Oct 2003 + * SUMMARY: Make our f.caller property match IE's wrt f.apply and f.call + * See http://bugzilla.mozilla.org/show_bug.cgi?id=222029 + * + * Below, when gg calls f via |f.call|, we have this call chain: + * + * calls calls + * gg() ---------> Function.prototype.call() ---------> f() + * + * + * The question this bug addresses is, "What should we say |f.caller| is?" + * + * Before this fix, SpiderMonkey said it was |Function.prototype.call|. + * After this fix, SpiderMonkey emulates IE and says |gg| instead. + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 222029; diff --git a/mozilla/js/tests/js1_5/Function/regress-222029-002.js b/mozilla/js/tests/js1_5/Function/regress-222029-002.js index 49c788934f1..203753e9b6a 100644 --- a/mozilla/js/tests/js1_5/Function/regress-222029-002.js +++ b/mozilla/js/tests/js1_5/Function/regress-222029-002.js @@ -1,55 +1,55 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): brendan@mozilla.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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 13 Oct 2003 -* SUMMARY: Make our f.caller property match IE's wrt f.apply and f.call -* See http://bugzilla.mozilla.org/show_bug.cgi?id=222029 -* -* Below, when gg calls f via |f.call|, we have this call chain: -* -* calls calls -* gg() ---------> Function.prototype.call() ---------> f() -* -* -* The question this bug addresses is, "What should we say |f.caller| is?" -* -* Before this fix, SpiderMonkey said it was |Function.prototype.call|. -* After this fix, SpiderMonkey emulates IE and says |gg| instead. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): brendan@mozilla.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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 13 Oct 2003 + * SUMMARY: Make our f.caller property match IE's wrt f.apply and f.call + * See http://bugzilla.mozilla.org/show_bug.cgi?id=222029 + * + * Below, when gg calls f via |f.call|, we have this call chain: + * + * calls calls + * gg() ---------> Function.prototype.call() ---------> f() + * + * + * The question this bug addresses is, "What should we say |f.caller| is?" + * + * Before this fix, SpiderMonkey said it was |Function.prototype.call|. + * After this fix, SpiderMonkey emulates IE and says |gg| instead. + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 222029; diff --git a/mozilla/js/tests/js1_5/GetSet/getset-001.js b/mozilla/js/tests/js1_5/GetSet/getset-001.js index 2331398425b..ff875cedded 100644 --- a/mozilla/js/tests/js1_5/GetSet/getset-001.js +++ b/mozilla/js/tests/js1_5/GetSet/getset-001.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ function TestObject () diff --git a/mozilla/js/tests/js1_5/GetSet/getset-002.js b/mozilla/js/tests/js1_5/GetSet/getset-002.js index 07d32ed12b8..bb26c1f2d3a 100644 --- a/mozilla/js/tests/js1_5/GetSet/getset-002.js +++ b/mozilla/js/tests/js1_5/GetSet/getset-002.js @@ -19,7 +19,7 @@ * Rights Reserved. * * Contributor(s): - * Rob Ginda rginda@netscape.com + * Rob Ginda rginda@netscape.com */ var t = { diff --git a/mozilla/js/tests/js1_5/GetSet/getset-003.js b/mozilla/js/tests/js1_5/GetSet/getset-003.js index 952d3d778c6..f950957659c 100644 --- a/mozilla/js/tests/js1_5/GetSet/getset-003.js +++ b/mozilla/js/tests/js1_5/GetSet/getset-003.js @@ -1,27 +1,28 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 14 April 2001 -* -* SUMMARY: Testing obj.prop getter/setter -* Note: this is a non-ECMA extension to the language. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 14 April 2001 + * + * SUMMARY: Testing obj.prop getter/setter + * Note: this is a non-ECMA extension to the language. + */ //------------------------------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; diff --git a/mozilla/js/tests/js1_5/GetSet/getset-004.js b/mozilla/js/tests/js1_5/GetSet/getset-004.js index 4445e80f772..0d315ad0180 100644 --- a/mozilla/js/tests/js1_5/GetSet/getset-004.js +++ b/mozilla/js/tests/js1_5/GetSet/getset-004.js @@ -1,27 +1,28 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 14 April 2001 -* -* SUMMARY: Testing obj.__defineSetter__(), obj.__defineGetter__() -* Note: this is a non-ECMA language extension -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 14 April 2001 + * + * SUMMARY: Testing obj.__defineSetter__(), obj.__defineGetter__() + * Note: this is a non-ECMA language extension + */ //------------------------------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; diff --git a/mozilla/js/tests/js1_5/GetSet/getset-005.js b/mozilla/js/tests/js1_5/GetSet/getset-005.js index c0e61f9ff75..ba73b2fec22 100644 --- a/mozilla/js/tests/js1_5/GetSet/getset-005.js +++ b/mozilla/js/tests/js1_5/GetSet/getset-005.js @@ -1,30 +1,31 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 14 April 2001 -* -* SUMMARY: Testing obj.__defineSetter__(), obj.__defineGetter__() -* Note: this is a non-ECMA language extension -* -* This test is the same as getset-004.js, except that here we -* store the getter/setter functions in global variables. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 14 April 2001 + * + * SUMMARY: Testing obj.__defineSetter__(), obj.__defineGetter__() + * Note: this is a non-ECMA language extension + * + * This test is the same as getset-004.js, except that here we + * store the getter/setter functions in global variables. + */ //------------------------------------------------------------------------------------------------- var UBound = 0; var bug = '(none)'; diff --git a/mozilla/js/tests/js1_5/GetSet/getset-006.js b/mozilla/js/tests/js1_5/GetSet/getset-006.js index 8d35bc9cf40..fee578d542b 100644 --- a/mozilla/js/tests/js1_5/GetSet/getset-006.js +++ b/mozilla/js/tests/js1_5/GetSet/getset-006.js @@ -1,31 +1,32 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" -* basis, WITHOUT WARRANTY OF ANY KIND, either expressed -* or implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 14 April 2001 -* -* SUMMARY: Testing obj.__lookupGetter__(), obj.__lookupSetter__() -* See http://bugzilla.mozilla.org/show_bug.cgi?id=71992 -* -* Brendan: "I see no need to provide more than the minimum: -* o.__lookupGetter__('p') returns the getter function for o.p, -* or undefined if o.p has no getter. Users can wrap and layer." -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either expressed + * or implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 14 April 2001 + * + * SUMMARY: Testing obj.__lookupGetter__(), obj.__lookupSetter__() + * See http://bugzilla.mozilla.org/show_bug.cgi?id=71992 + * + * Brendan: "I see no need to provide more than the minimum: + * o.__lookupGetter__('p') returns the getter function for o.p, + * or undefined if o.p has no getter. Users can wrap and layer." + */ //------------------------------------------------------------------------------------------------- var UBound = 0; var bug = 71992; diff --git a/mozilla/js/tests/js1_5/LexicalConventions/lexical-001.js b/mozilla/js/tests/js1_5/LexicalConventions/lexical-001.js index 42e947d588d..c74d6634bdf 100644 --- a/mozilla/js/tests/js1_5/LexicalConventions/lexical-001.js +++ b/mozilla/js/tests/js1_5/LexicalConventions/lexical-001.js @@ -1,39 +1,39 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. All -* Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* 26 November 2000 -* -* -*SUMMARY: Testing numeric literals that begin with 0. -*This test arose from Bugzilla bug 49233. -*The best explanation is from jsscan.c: -* -* "We permit 08 and 09 as decimal numbers, which makes -* our behaviour a superset of the ECMA numeric grammar. -* We might not always be so permissive, so we warn about it." -* -*Thus an expression 010 will evaluate, as always, as an octal (to 8). -*However, 018 will evaluate as a decimal, to 18. Even though the -*user began the expression as an octal, he later used a non-octal -*digit. We forgive this and assume he intended a decimal. If the -*JavaScript "strict" option is set though, we will give a warning. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * 26 November 2000 + * + * + *SUMMARY: Testing numeric literals that begin with 0. + *This test arose from Bugzilla bug 49233. + *The best explanation is from jsscan.c: + * + * "We permit 08 and 09 as decimal numbers, which makes + * our behaviour a superset of the ECMA numeric grammar. + * We might not always be so permissive, so we warn about it." + * + *Thus an expression 010 will evaluate, as always, as an octal (to 8). + *However, 018 will evaluate as a decimal, to 18. Even though the + *user began the expression as an octal, he later used a non-octal + *digit. We forgive this and assume he intended a decimal. If the + *JavaScript "strict" option is set though, we will give a warning. + */ //------------------------------------------------------------------------------------------------- var bug = '49233'; var summary = 'Testing numeric literals that begin with 0'; diff --git a/mozilla/js/tests/js1_5/LexicalConventions/regress-177314.js b/mozilla/js/tests/js1_5/LexicalConventions/regress-177314.js index b085dfb8e55..f2e7ff9c9e2 100644 --- a/mozilla/js/tests/js1_5/LexicalConventions/regress-177314.js +++ b/mozilla/js/tests/js1_5/LexicalConventions/regress-177314.js @@ -1,48 +1,48 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 30 Oct 2002 -* SUMMARY: '\400' should lex as a 2-digit octal escape + '0' -* See http://bugzilla.mozilla.org/show_bug.cgi?id=177314 -* -* Bug was that Rhino interpreted '\400' as a 3-digit octal escape. As such -* it is invalid, since octal escapes may only run from '\0' to '\377'. But -* the lexer should interpret this as '\40' + '0' instead, and throw no error. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 30 Oct 2002 + * SUMMARY: '\400' should lex as a 2-digit octal escape + '0' + * See http://bugzilla.mozilla.org/show_bug.cgi?id=177314 + * + * Bug was that Rhino interpreted '\400' as a 3-digit octal escape. As such + * it is invalid, since octal escapes may only run from '\0' to '\377'. But + * the lexer should interpret this as '\40' + '0' instead, and throw no error. + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 177314; diff --git a/mozilla/js/tests/js1_5/Object/regress-137000.js b/mozilla/js/tests/js1_5/Object/regress-137000.js index 20a8a8e274a..7b5c1585b05 100644 --- a/mozilla/js/tests/js1_5/Object/regress-137000.js +++ b/mozilla/js/tests/js1_5/Object/regress-137000.js @@ -1,48 +1,48 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 03 June 2002 -* SUMMARY: Function param or local var with same name as a function property -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=137000 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=138708 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=150032 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=150859 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 03 June 2002 + * SUMMARY: Function param or local var with same name as a function property + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=137000 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=138708 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=150032 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=150859 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 137000; diff --git a/mozilla/js/tests/js1_5/Object/regress-192105.js b/mozilla/js/tests/js1_5/Object/regress-192105.js index fa19d8c4ccb..12c353b6d08 100644 --- a/mozilla/js/tests/js1_5/Object/regress-192105.js +++ b/mozilla/js/tests/js1_5/Object/regress-192105.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@icesoft.no, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 06 February 2003 -* SUMMARY: Using |instanceof| to check if function is called as a constructor -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=192105 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@icesoft.no, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 06 February 2003 + * SUMMARY: Using |instanceof| to check if function is called as a constructor + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=192105 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 192105; diff --git a/mozilla/js/tests/js1_5/Object/regress-90596-001.js b/mozilla/js/tests/js1_5/Object/regress-90596-001.js index 3b0fad61226..d2dd9879eb0 100644 --- a/mozilla/js/tests/js1_5/Object/regress-90596-001.js +++ b/mozilla/js/tests/js1_5/Object/regress-90596-001.js @@ -1,30 +1,31 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 28 August 2001 -* -* SUMMARY: A [DontEnum] prop, if overridden, should appear in toSource(). -* See http://bugzilla.mozilla.org/show_bug.cgi?id=90596 -* -* NOTE: some inefficiencies in the test are made for the sake of readability. -* Sorting properties alphabetically is done for definiteness in comparisons. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 28 August 2001 + * + * SUMMARY: A [DontEnum] prop, if overridden, should appear in toSource(). + * See http://bugzilla.mozilla.org/show_bug.cgi?id=90596 + * + * NOTE: some inefficiencies in the test are made for the sake of readability. + * Sorting properties alphabetically is done for definiteness in comparisons. + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 90596; diff --git a/mozilla/js/tests/js1_5/Object/regress-90596-002.js b/mozilla/js/tests/js1_5/Object/regress-90596-002.js index 0d809a20203..b90cdf80337 100644 --- a/mozilla/js/tests/js1_5/Object/regress-90596-002.js +++ b/mozilla/js/tests/js1_5/Object/regress-90596-002.js @@ -1,30 +1,31 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 28 August 2001 -* -* SUMMARY: A [DontEnum] prop, if overridden, should appear in uneval(). -* See http://bugzilla.mozilla.org/show_bug.cgi?id=90596 -* -* NOTE: some inefficiencies in the test are made for the sake of readability. -* Sorting properties alphabetically is done for definiteness in comparisons. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 28 August 2001 + * + * SUMMARY: A [DontEnum] prop, if overridden, should appear in uneval(). + * See http://bugzilla.mozilla.org/show_bug.cgi?id=90596 + * + * NOTE: some inefficiencies in the test are made for the sake of readability. + * Sorting properties alphabetically is done for definiteness in comparisons. + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 90596; diff --git a/mozilla/js/tests/js1_5/Object/regress-90596-003.js b/mozilla/js/tests/js1_5/Object/regress-90596-003.js index 766fff55d19..badea4211ce 100644 --- a/mozilla/js/tests/js1_5/Object/regress-90596-003.js +++ b/mozilla/js/tests/js1_5/Object/regress-90596-003.js @@ -1,37 +1,38 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 28 August 2001 -* -* SUMMARY: A [DontEnum] prop, if overridden, should appear in for-in loops. -* See http://bugzilla.mozilla.org/show_bug.cgi?id=90596 -* -* NOTE: some inefficiencies in the test are made for the sake of readability. -* For example, we quote string values like "Hi" in lines like this: -* -* actual = enumerateThis(obj); -* expect = '{prop:"Hi"}'; -* -* But enumerateThis(obj) gets literal value Hi for obj.prop, not literal "Hi". -* We take care of all these details in the compactThis(), sortThis() functions. -* Sorting properties alphabetically is necessary for the test to work in Rhino. -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 28 August 2001 + * + * SUMMARY: A [DontEnum] prop, if overridden, should appear in for-in loops. + * See http://bugzilla.mozilla.org/show_bug.cgi?id=90596 + * + * NOTE: some inefficiencies in the test are made for the sake of readability. + * For example, we quote string values like "Hi" in lines like this: + * + * actual = enumerateThis(obj); + * expect = '{prop:"Hi"}'; + * + * But enumerateThis(obj) gets literal value Hi for obj.prop, not literal "Hi". + * We take care of all these details in the compactThis(), sortThis() functions. + * Sorting properties alphabetically is necessary for the test to work in Rhino. + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 90596; diff --git a/mozilla/js/tests/js1_5/Object/regress-96284-001.js b/mozilla/js/tests/js1_5/Object/regress-96284-001.js index 5130a03e5d5..6bc95f57420 100644 --- a/mozilla/js/tests/js1_5/Object/regress-96284-001.js +++ b/mozilla/js/tests/js1_5/Object/regress-96284-001.js @@ -1,33 +1,34 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 03 September 2001 -* -* SUMMARY: Double quotes should be escaped in Error.prototype.toSource() -* See http://bugzilla.mozilla.org/show_bug.cgi?id=96284 -* -* The real point here is this: we should be able to reconstruct an object -* from its toSource() property. We'll test this on various types of objects. -* -* Method: define obj2 = eval(obj1.toSource()) and verify that -* obj2.toSource() == obj1.toSource(). -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 03 September 2001 + * + * SUMMARY: Double quotes should be escaped in Error.prototype.toSource() + * See http://bugzilla.mozilla.org/show_bug.cgi?id=96284 + * + * The real point here is this: we should be able to reconstruct an object + * from its toSource() property. We'll test this on various types of objects. + * + * Method: define obj2 = eval(obj1.toSource()) and verify that + * obj2.toSource() == obj1.toSource(). + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 96284; diff --git a/mozilla/js/tests/js1_5/Object/regress-96284-002.js b/mozilla/js/tests/js1_5/Object/regress-96284-002.js index 902ba06434a..e564fcfc712 100644 --- a/mozilla/js/tests/js1_5/Object/regress-96284-002.js +++ b/mozilla/js/tests/js1_5/Object/regress-96284-002.js @@ -1,33 +1,34 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com -* Date: 03 September 2001 -* -* SUMMARY: Double quotes should be escaped in uneval(new Error('""')) -* See http://bugzilla.mozilla.org/show_bug.cgi?id=96284 -* -* The real point here is this: we should be able to reconstruct an object -* obj from uneval(obj). We'll test this on various types of objects. -* -* Method: define obj2 = eval(uneval(obj1)) and verify that -* obj2.toSource() == obj1.toSource(). -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com + * + * Date: 03 September 2001 + * + * SUMMARY: Double quotes should be escaped in uneval(new Error('""')) + * See http://bugzilla.mozilla.org/show_bug.cgi?id=96284 + * + * The real point here is this: we should be able to reconstruct an object + * obj from uneval(obj). We'll test this on various types of objects. + * + * Method: define obj2 = eval(uneval(obj1)) and verify that + * obj2.toSource() == obj1.toSource(). + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 96284; diff --git a/mozilla/js/tests/js1_5/Regress/regress-102725.js b/mozilla/js/tests/js1_5/Regress/regress-102725.js index 1316672c11d..2a1fba48b7f 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-102725.js +++ b/mozilla/js/tests/js1_5/Regress/regress-102725.js @@ -1,29 +1,30 @@ /* -* The contents of this file are subject to the Netscape Public -* License Version 1.1 (the "License"); you may not use this file -* except in compliance with the License. You may obtain a copy of -* the License at http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS -* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -* implied. See the License for the specific language governing -* rights and limitations under the License. -* -* The Original Code is mozilla.org code. -* -* The Initial Developer of the Original Code is Netscape -* Communications Corporation. Portions created by Netscape are -* Copyright (C) 1998 Netscape Communications Corporation. -* All Rights Reserved. -* -* Contributor(s): dbaron@fas.harvard.edu, pschwartau@netscape.com -* Date: 09 October 2001 -* -* SUMMARY: Regression test for Bugzilla bug 102725 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=102725 -* "gcc -O2 problems converting numbers to strings" -* -*/ + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * All Rights Reserved. + * + * Contributor(s): dbaron@fas.harvard.edu, pschwartau@netscape.com + * + * Date: 09 October 2001 + * + * SUMMARY: Regression test for Bugzilla bug 102725 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=102725 + * "gcc -O2 problems converting numbers to strings" + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 102725; diff --git a/mozilla/js/tests/js1_5/Regress/regress-103602.js b/mozilla/js/tests/js1_5/Regress/regress-103602.js index ab8113d257f..3dec31a6cf7 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-103602.js +++ b/mozilla/js/tests/js1_5/Regress/regress-103602.js @@ -1,53 +1,53 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2001 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 10 Jan 2002 -* SUMMARY: Reassignment to a const is NOT an error per ECMA -* See http://bugzilla.mozilla.org/show_bug.cgi?id=103602 -* -* ------- Additional Comment #4 From Brendan Eich 2002-01-10 15:30 ------- -* -* That's per ECMA (don't blame me, I fought for what Netscape always did: -* throw an error [could be a catchable exception since 1.3]). -* Readonly properties, when set by assignment, are not changed, but no error -* or exception is thrown. The value of the assignment expression is the value -* of the r.h.s. -* -* If you want a *strict* warning, pls change the summary of this bug to say so. -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2001 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 10 Jan 2002 + * SUMMARY: Reassignment to a const is NOT an error per ECMA + * See http://bugzilla.mozilla.org/show_bug.cgi?id=103602 + * + * ------- Additional Comment #4 From Brendan Eich 2002-01-10 15:30 ------- + * + * That's per ECMA (don't blame me, I fought for what Netscape always did: + * throw an error [could be a catchable exception since 1.3]). + * Readonly properties, when set by assignment, are not changed, but no error + * or exception is thrown. The value of the assignment expression is the value + * of the r.h.s. + * + * If you want a *strict* warning, pls change the summary of this bug to say so. + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 103602; diff --git a/mozilla/js/tests/js1_5/Regress/regress-104077.js b/mozilla/js/tests/js1_5/Regress/regress-104077.js index 992028e5085..c9fe697937f 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-104077.js +++ b/mozilla/js/tests/js1_5/Regress/regress-104077.js @@ -1,60 +1,60 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2001 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): chwu@nortelnetworks.com, timeless@mac.com, -* brendan@mozilla.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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 10 October 2001 -* SUMMARY: Regression test for Bugzilla bug 104077 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=104077 -* "JS crash: with/finally/return" -* -* Also http://bugzilla.mozilla.org/show_bug.cgi?id=120571 -* "JS crash: try/catch/continue." -* -* SpiderMonkey crashed on this code - it shouldn't. -* -* NOTE: the finally-blocks below should execute even if their try-blocks -* have return or throw statements in them: -* -* ------- Additional Comment #76 From Mike Shaver 2001-12-07 01:21 ------- -* finally trumps return, and all other control-flow constructs that cause -* program execution to jump out of the try block: throw, break, etc. Once you -* enter a try block, you will execute the finally block after leaving the try, -* regardless of what happens to make you leave the try. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2001 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): chwu@nortelnetworks.com, timeless@mac.com, + * brendan@mozilla.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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 10 October 2001 + * SUMMARY: Regression test for Bugzilla bug 104077 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=104077 + * "JS crash: with/finally/return" + * + * Also http://bugzilla.mozilla.org/show_bug.cgi?id=120571 + * "JS crash: try/catch/continue." + * + * SpiderMonkey crashed on this code - it shouldn't. + * + * NOTE: the finally-blocks below should execute even if their try-blocks + * have return or throw statements in them: + * + * ------- Additional Comment #76 From Mike Shaver 2001-12-07 01:21 ------- + * finally trumps return, and all other control-flow constructs that cause + * program execution to jump out of the try block: throw, break, etc. Once you + * enter a try block, you will execute the finally block after leaving the try, + * regardless of what happens to make you leave the try. + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 104077; diff --git a/mozilla/js/tests/js1_5/Regress/regress-110286.js b/mozilla/js/tests/js1_5/Regress/regress-110286.js index 36959c28c5d..82ebed54ed5 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-110286.js +++ b/mozilla/js/tests/js1_5/Regress/regress-110286.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2001 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 16 Nov 2001 -* SUMMARY: multiline comments containing "/*" should not be syntax errors -* See http://bugzilla.mozilla.org/show_bug.cgi?id=110286 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2001 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 16 Nov 2001 + * SUMMARY: multiline comments containing "/*" should not be syntax errors + * See http://bugzilla.mozilla.org/show_bug.cgi?id=110286 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 110286; diff --git a/mozilla/js/tests/js1_5/Regress/regress-111557.js b/mozilla/js/tests/js1_5/Regress/regress-111557.js index 375b906a472..b2d4d9dac70 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-111557.js +++ b/mozilla/js/tests/js1_5/Regress/regress-111557.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2001 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 26 Nov 2001 -* SUMMARY: JS should not crash on this code -* See http://bugzilla.mozilla.org/show_bug.cgi?id=111557 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2001 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 26 Nov 2001 + * SUMMARY: JS should not crash on this code + * See http://bugzilla.mozilla.org/show_bug.cgi?id=111557 + * + */ //----------------------------------------------------------------------------- var bug = 111557; var summary = "Just seeing that we don't crash on this code -"; @@ -4433,8 +4433,8 @@ var top = this; // http://www.treemenu.com/ /****************************************************************************** -* Define the MenuItem object. * -******************************************************************************/ + * Define the MenuItem object. * + ******************************************************************************/ function MTMenuItem(text, url, target,nsearchID, icon) { this.text = text; @@ -4478,8 +4478,8 @@ function getChildrenChecked(item, selected) } /****************************************************************************** -* Define the Menu object. * -******************************************************************************/ + * Define the Menu object. * + ******************************************************************************/ function MTMenu() { this.items = new Array(); @@ -4491,8 +4491,8 @@ function MTMAddItem(item) { } /****************************************************************************** -* Define the icon list, addIcon function and MTMIcon item. * -******************************************************************************/ + * Define the icon list, addIcon function and MTMIcon item. * + ******************************************************************************/ function IconList() { this.items = new Array(); @@ -4510,9 +4510,9 @@ function MTMIcon(iconfile, match, type) { } /****************************************************************************** -* Global variables. Not to be altered unless you know what you're doing. * -* User-configurable options are at the end of this document. * -******************************************************************************/ + * Global variables. Not to be altered unless you know what you're doing. * + * User-configurable options are at the end of this document. * + ******************************************************************************/ var MTMLoaded = false; var MTMLevel; @@ -4550,20 +4550,20 @@ var MTMWinSize, MTMyval; var MTMOutputString = ""; /****************************************************************************** -* Code that picks up frame names of frames in the parent frameset. * -******************************************************************************/ + * Code that picks up frame names of frames in the parent frameset. * + ******************************************************************************/ /****************************************************************************** -* Dummy function for sub-menus without URLs * -* Thanks to Michel Plungjan for the advice. :) * -******************************************************************************/ + * Dummy function for sub-menus without URLs * + * Thanks to Michel Plungjan for the advice. :) * + ******************************************************************************/ function myVoid() { ; } /****************************************************************************** -* Functions to draw the menu. * -******************************************************************************/ + * Functions to draw the menu. * + ******************************************************************************/ function MTMSubAction(SubItem, ReturnValue) { @@ -5049,8 +5049,8 @@ function MTMTrackTarget(thisTarget) { /****************************************************************************** -* User-configurable options. * -******************************************************************************/ + * User-configurable options. * + ******************************************************************************/ // Menu table width, either a pixel-value (number) or a percentage value. var MTMTableWidth = "100%"; @@ -5116,8 +5116,8 @@ var MTMSubsAutoClose = false; var MTMTimeOut = 25; /****************************************************************************** -* User-configurable list of icons. * -******************************************************************************/ + * User-configurable list of icons. * + ******************************************************************************/ var MTMIconList = null; MTMIconList = new IconList(); @@ -5126,8 +5126,8 @@ MTMIconList = new IconList(); //MTMIconList.addIcon(new MTMIcon("menu_link_pdf.gif", ".pdf", "post")); /****************************************************************************** -* User-configurable menu. * -******************************************************************************/ + * User-configurable menu. * + ******************************************************************************/ // navigation link is an object used to store the extracted information from diff --git a/mozilla/js/tests/js1_5/Regress/regress-114491.js b/mozilla/js/tests/js1_5/Regress/regress-114491.js index b4470ee588d..3193ef78963 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-114491.js +++ b/mozilla/js/tests/js1_5/Regress/regress-114491.js @@ -1,49 +1,49 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2001 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): rokicki@instantis.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 10 December 2001 -* SUMMARY: Regression test for bug 114491 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=114491 -* -* Rhino crashed on this code. It should produce a syntax error, not a crash. -* Using the () operator after a function STATEMENT is incorrect syntax. -* Rhino correctly caught the error when there was no |if (true)|. -* With the |if (true)|, however, Rhino crashed - -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2001 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): rokicki@instantis.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 10 December 2001 + * SUMMARY: Regression test for bug 114491 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=114491 + * + * Rhino crashed on this code. It should produce a syntax error, not a crash. + * Using the () operator after a function STATEMENT is incorrect syntax. + * Rhino correctly caught the error when there was no |if (true)|. + * With the |if (true)|, however, Rhino crashed - + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 114491; diff --git a/mozilla/js/tests/js1_5/Regress/regress-114493.js b/mozilla/js/tests/js1_5/Regress/regress-114493.js index 41e94b460b2..db9f50c825f 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-114493.js +++ b/mozilla/js/tests/js1_5/Regress/regress-114493.js @@ -1,56 +1,56 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2001 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): rokicki@instantis.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 10 December 2001 -* SUMMARY: Regression test for bug 114493 -* See http://bugzilla.mozilla.org/show_bug.cgi?id=114493 -* -* Rhino crashed on this code. It should produce a syntax error, not a crash. -* Note that "3"[5] === undefined, and Rhino correctly gave an error if you -* tried to use the call operator on |undefined|: -* -* js> undefined(); -* js: TypeError: undefined is not a function. -* -* However, Rhino CRASHED if you tried to do "3"[5](). -* -* Rhino would NOT crash if you tried "3"[0]() or "3"[5]. Only array indices -* that were out of bounds, followed by the call operator, would crash. -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2001 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): rokicki@instantis.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 10 December 2001 + * SUMMARY: Regression test for bug 114493 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=114493 + * + * Rhino crashed on this code. It should produce a syntax error, not a crash. + * Note that "3"[5] === undefined, and Rhino correctly gave an error if you + * tried to use the call operator on |undefined|: + * + * js> undefined(); + * js: TypeError: undefined is not a function. + * + * However, Rhino CRASHED if you tried to do "3"[5](). + * + * Rhino would NOT crash if you tried "3"[0]() or "3"[5]. Only array indices + * that were out of bounds, followed by the call operator, would crash. + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 114493; diff --git a/mozilla/js/tests/js1_5/Regress/regress-118849.js b/mozilla/js/tests/js1_5/Regress/regress-118849.js index 3d7b89a2a51..fe489473873 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-118849.js +++ b/mozilla/js/tests/js1_5/Regress/regress-118849.js @@ -1,55 +1,55 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2001 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 08 Jan 2002 -* SUMMARY: Just testing that we don't crash on this code -* See http://bugzilla.mozilla.org/show_bug.cgi?id=118849 -* -* http://developer.netscape.com:80/docs/manuals/js/core/jsref/function.htm -* The Function constructor: -* Function ([arg1[, arg2[, ... argN]],] functionBody) -* -* Parameters -* arg1, arg2, ... argN -* (Optional) Names to be used by the function as formal argument names. -* Each must be a string that corresponds to a valid JavaScript identifier. -* -* functionBody -* A string containing JS statements comprising the function definition. -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2001 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 08 Jan 2002 + * SUMMARY: Just testing that we don't crash on this code + * See http://bugzilla.mozilla.org/show_bug.cgi?id=118849 + * + * http://developer.netscape.com:80/docs/manuals/js/core/jsref/function.htm + * The Function constructor: + * Function ([arg1[, arg2[, ... argN]],] functionBody) + * + * Parameters + * arg1, arg2, ... argN + * (Optional) Names to be used by the function as formal argument names. + * Each must be a string that corresponds to a valid JavaScript identifier. + * + * functionBody + * A string containing JS statements comprising the function definition. + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 118849; diff --git a/mozilla/js/tests/js1_5/Regress/regress-127557.js b/mozilla/js/tests/js1_5/Regress/regress-127557.js index 80b4e291acb..d6822c47919 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-127557.js +++ b/mozilla/js/tests/js1_5/Regress/regress-127557.js @@ -1,50 +1,50 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): brendan@mozilla.org -* -* 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 06 Mar 2002 -* SUMMARY: Testing cloned function objects -* See http://bugzilla.mozilla.org/show_bug.cgi?id=127557 -* -* Before this bug was fixed, this testcase would error when run: -* -* ReferenceError: h_peer is not defined -* -* The line |g.prototype = new Object| below is essential: this is -* what was confusing the engine in its attempt to look up h_peer -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): brendan@mozilla.org + * + * 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 06 Mar 2002 + * SUMMARY: Testing cloned function objects + * See http://bugzilla.mozilla.org/show_bug.cgi?id=127557 + * + * Before this bug was fixed, this testcase would error when run: + * + * ReferenceError: h_peer is not defined + * + * The line |g.prototype = new Object| below is essential: this is + * what was confusing the engine in its attempt to look up h_peer + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 127557; diff --git a/mozilla/js/tests/js1_5/Regress/regress-131510-001.js b/mozilla/js/tests/js1_5/Regress/regress-131510-001.js index aae857f7f18..08b1e6a375f 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-131510-001.js +++ b/mozilla/js/tests/js1_5/Regress/regress-131510-001.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 16 Mar 2002 -* SUMMARY: Shouldn't crash if define |var arguments| inside a function -* See http://bugzilla.mozilla.org/show_bug.cgi?id=131510 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 16 Mar 2002 + * SUMMARY: Shouldn't crash if define |var arguments| inside a function + * See http://bugzilla.mozilla.org/show_bug.cgi?id=131510 + * + */ //----------------------------------------------------------------------------- var bug = 131510; var summary = "Shouldn't crash if define |var arguments| inside a function"; diff --git a/mozilla/js/tests/js1_5/Regress/regress-140974.js b/mozilla/js/tests/js1_5/Regress/regress-140974.js index a02408a3948..fdabd9da1b6 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-140974.js +++ b/mozilla/js/tests/js1_5/Regress/regress-140974.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): Martin.Honnen@t-online.de, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 04 May 2002 -* SUMMARY: |if (false) {var x;} should create the variable x -* See http://bugzilla.mozilla.org/show_bug.cgi?id=140974 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): Martin.Honnen@t-online.de, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 04 May 2002 + * SUMMARY: |if (false) {var x;} should create the variable x + * See http://bugzilla.mozilla.org/show_bug.cgi?id=140974 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 140974; diff --git a/mozilla/js/tests/js1_5/Regress/regress-146596.js b/mozilla/js/tests/js1_5/Regress/regress-146596.js index dee37004a71..b7783e81e75 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-146596.js +++ b/mozilla/js/tests/js1_5/Regress/regress-146596.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): jim-patterson@ncf.ca, brendan@mozilla.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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 18 Jun 2002 -* SUMMARY: Shouldn't crash when catch parameter is "hidden" by varX -* See http://bugzilla.mozilla.org/show_bug.cgi?id=146596 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): jim-patterson@ncf.ca, brendan@mozilla.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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 18 Jun 2002 + * SUMMARY: Shouldn't crash when catch parameter is "hidden" by varX + * See http://bugzilla.mozilla.org/show_bug.cgi?id=146596 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 146596; diff --git a/mozilla/js/tests/js1_5/Regress/regress-152646.js b/mozilla/js/tests/js1_5/Regress/regress-152646.js index 55bd5a585df..bc91d634731 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-152646.js +++ b/mozilla/js/tests/js1_5/Regress/regress-152646.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): pschwartau@netscape.com, mstoltz@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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 08 July 2002 -* SUMMARY: Testing expressions with large numbers of parentheses -* See http://bugzilla.mozilla.org/show_bug.cgi?id=152646 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): pschwartau@netscape.com, mstoltz@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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 08 July 2002 + * SUMMARY: Testing expressions with large numbers of parentheses + * See http://bugzilla.mozilla.org/show_bug.cgi?id=152646 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 152646; diff --git a/mozilla/js/tests/js1_5/Regress/regress-156354.js b/mozilla/js/tests/js1_5/Regress/regress-156354.js index 9dbd75f5bc7..0d53a943789 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-156354.js +++ b/mozilla/js/tests/js1_5/Regress/regress-156354.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 16 September 2002 -* SUMMARY: Testing propertyIsEnumerable() on non-existent property -* See http://bugzilla.mozilla.org/show_bug.cgi?id=156354 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 16 September 2002 + * SUMMARY: Testing propertyIsEnumerable() on non-existent property + * See http://bugzilla.mozilla.org/show_bug.cgi?id=156354 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 156354; diff --git a/mozilla/js/tests/js1_5/Regress/regress-159334.js b/mozilla/js/tests/js1_5/Regress/regress-159334.js index 0ca9d742dff..5a94a7c5fbc 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-159334.js +++ b/mozilla/js/tests/js1_5/Regress/regress-159334.js @@ -1,54 +1,54 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@icesoft.no, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 31 Oct 2002 -* SUMMARY: Testing script with at least 64K of different string literals -* See http://bugzilla.mozilla.org/show_bug.cgi?id=159334 -* -* Testing that script engine can handle scripts with at least 64K of different -* string literals. The following will evaluate, via eval(), a script like this: -* -* f('0') -* f('1') -* ... -* f('N - 1') -* -* where N is 0xFFFE -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@icesoft.no, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 31 Oct 2002 + * SUMMARY: Testing script with at least 64K of different string literals + * See http://bugzilla.mozilla.org/show_bug.cgi?id=159334 + * + * Testing that script engine can handle scripts with at least 64K of different + * string literals. The following will evaluate, via eval(), a script like this: + * + * f('0') + * f('1') + * ... + * f('N - 1') + * + * where N is 0xFFFE + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 159334; diff --git a/mozilla/js/tests/js1_5/Regress/regress-168347.js b/mozilla/js/tests/js1_5/Regress/regress-168347.js index 12fa16e2de4..7619c46bc30 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-168347.js +++ b/mozilla/js/tests/js1_5/Regress/regress-168347.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): desale@netscape.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 13 Sep 2002 -* SUMMARY: Testing F.toString() -* See http://bugzilla.mozilla.org/show_bug.cgi?id=168347 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): desale@netscape.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 13 Sep 2002 + * SUMMARY: Testing F.toString() + * See http://bugzilla.mozilla.org/show_bug.cgi?id=168347 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 168347; diff --git a/mozilla/js/tests/js1_5/Regress/regress-170193.js b/mozilla/js/tests/js1_5/Regress/regress-170193.js index d5841bb95d7..e951fb591e1 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-170193.js +++ b/mozilla/js/tests/js1_5/Regress/regress-170193.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): brendan@mozilla.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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 22 Sep 2002 -* SUMMARY: adding prop after middle-delete of function w duplicate formal args -* See http://bugzilla.mozilla.org/show_bug.cgi?id=170193 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): brendan@mozilla.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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 22 Sep 2002 + * SUMMARY: adding prop after middle-delete of function w duplicate formal args + * See http://bugzilla.mozilla.org/show_bug.cgi?id=170193 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 170193; diff --git a/mozilla/js/tests/js1_5/Regress/regress-172699.js b/mozilla/js/tests/js1_5/Regress/regress-172699.js index 3a6be9f743a..57d98427e2a 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-172699.js +++ b/mozilla/js/tests/js1_5/Regress/regress-172699.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): rogerl@netscape.com, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 07 Oct 2002 -* SUMMARY: UTF-8 decoder should not accept overlong sequences -* See http://bugzilla.mozilla.org/show_bug.cgi?id=172699 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): rogerl@netscape.com, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 07 Oct 2002 + * SUMMARY: UTF-8 decoder should not accept overlong sequences + * See http://bugzilla.mozilla.org/show_bug.cgi?id=172699 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 172699; diff --git a/mozilla/js/tests/js1_5/Regress/regress-179524.js b/mozilla/js/tests/js1_5/Regress/regress-179524.js index 31a7f3050d8..f07a0f4ab1a 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-179524.js +++ b/mozilla/js/tests/js1_5/Regress/regress-179524.js @@ -1,51 +1,51 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 11 Nov 2002 -* SUMMARY: JS shouldn't crash on extraneous args to str.match(), etc. -* See http://bugzilla.mozilla.org/show_bug.cgi?id=179524 -* -* Note that when testing str.replace(), we have to be careful if the first -* argument provided to str.replace() is not a regexp object. ECMA-262 says -* it is NOT converted to one, unlike the case for str.match(), str.search(). -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=83293#c21. This means -* we have to be careful how we test meta-characters in the first argument -* to str.replace(), if that argument is a string - -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 11 Nov 2002 + * SUMMARY: JS shouldn't crash on extraneous args to str.match(), etc. + * See http://bugzilla.mozilla.org/show_bug.cgi?id=179524 + * + * Note that when testing str.replace(), we have to be careful if the first + * argument provided to str.replace() is not a regexp object. ECMA-262 says + * it is NOT converted to one, unlike the case for str.match(), str.search(). + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=83293#c21. This means + * we have to be careful how we test meta-characters in the first argument + * to str.replace(), if that argument is a string - + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 179524; diff --git a/mozilla/js/tests/js1_5/Regress/regress-185165.js b/mozilla/js/tests/js1_5/Regress/regress-185165.js index 69e0e8db3d8..8f4c56767eb 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-185165.js +++ b/mozilla/js/tests/js1_5/Regress/regress-185165.js @@ -1,44 +1,44 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@icesoft.no, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 13 Dec 2002 -* SUMMARY: Decompilation of "\\" should give "\\" -* See http://bugzilla.mozilla.org/show_bug.cgi?id=185165 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@icesoft.no, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 13 Dec 2002 + * SUMMARY: Decompilation of "\\" should give "\\" + * See http://bugzilla.mozilla.org/show_bug.cgi?id=185165 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 185165; diff --git a/mozilla/js/tests/js1_5/Regress/regress-191633.js b/mozilla/js/tests/js1_5/Regress/regress-191633.js index 19f79068fb4..705379aa447 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-191633.js +++ b/mozilla/js/tests/js1_5/Regress/regress-191633.js @@ -1,45 +1,45 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@icesoft.no, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 03 February 2003 -* SUMMARY: Testing script with huge number of comments -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=191633 -* -*/ + * Version: NPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Netscape Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is JavaScript Engine testing utilities. + * + * The Initial Developer of the Original Code is Netscape Communications Corp. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): igor@icesoft.no, 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 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the NPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the NPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** + * + * + * Date: 03 February 2003 + * SUMMARY: Testing script with huge number of comments + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=191633 + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 191633; diff --git a/mozilla/js/tests/js1_5/Regress/regress-191668.js b/mozilla/js/tests/js1_5/Regress/regress-191668.js index ff1498cbcd7..96b89dcdc8d 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-191668.js +++ b/mozilla/js/tests/js1_5/Regress/regress-191668.js @@ -1,46 +1,46 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2003 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@icesoft.no, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 03 February 2003 -* SUMMARY: Testing script containing ulimit -s 100 @@ -55,19 +55,19 @@ ~/w/js/x> js -S $((15*1024)) fintest.js fintest.js:19: InternalError: too much recursion -* -* After playing with numbers it seems that while processing try/finally the -* recursion in js_Emit takes 10 times more space the corresponding recursion -* in the parser." -* -* -* Note the use of the new -S option to the JS shell to limit stack size. -* See http://bugzilla.mozilla.org/show_bug.cgi?id=225061. This in turn -* can be passed to the JS shell by the test driver's -o option, as in: -* -* perl jsDriver.pl -e smdebug -fTEST.html -o "-S 100" -l js1_5/Regress -* -*/ + * + * After playing with numbers it seems that while processing try/finally the + * recursion in js_Emit takes 10 times more space the corresponding recursion + * in the parser." + * + * + * Note the use of the new -S option to the JS shell to limit stack size. + * See http://bugzilla.mozilla.org/show_bug.cgi?id=225061. This in turn + * can be passed to the JS shell by the test driver's -o option, as in: + * + * perl jsDriver.pl -e smdebug -fTEST.html -o "-S 100" -l js1_5/Regress + * + */ //----------------------------------------------------------------------------- var UBound = 0; var bug = 226507; diff --git a/mozilla/js/tests/js1_5/Regress/regress-31255.js b/mozilla/js/tests/js1_5/Regress/regress-31255.js index e97855321a8..2ea5954fe84 100644 --- a/mozilla/js/tests/js1_5/Regress/regress-31255.js +++ b/mozilla/js/tests/js1_5/Regress/regress-31255.js @@ -1,50 +1,50 @@ /* ***** BEGIN LICENSE BLOCK ***** -* Version: NPL 1.1/GPL 2.0/LGPL 2.1 -* -* The contents of this file are subject to the Netscape Public License -* Version 1.1 (the "License"); you may not use this file except in -* compliance with the License. You may obtain a copy of the License at -* http://www.mozilla.org/NPL/ -* -* Software distributed under the License is distributed on an "AS IS" basis, -* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -* for the specific language governing rights and limitations under the -* License. -* -* The Original Code is JavaScript Engine testing utilities. -* -* The Initial Developer of the Original Code is Netscape Communications Corp. -* Portions created by the Initial Developer are Copyright (C) 2002 -* the Initial Developer. All Rights Reserved. -* -* Contributor(s): igor@icesoft.no, 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 -* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -* in which case the provisions of the GPL or the LGPL are applicable instead -* of those above. If you wish to allow use of your version of this file only -* under the terms of either the GPL or the LGPL, and not to allow others to -* use your version of this file under the terms of the NPL, indicate your -* decision by deleting the provisions above and replace them with the notice -* and other provisions required by the GPL or the LGPL. If you do not delete -* the provisions above, a recipient may use your version of this file under -* the terms of any one of the NPL, the GPL or the LGPL. -* -* ***** END LICENSE BLOCK ***** -* -* -* Date: 09 November 2002 -* SUMMARY: JS should treat --> as a single-line comment indicator. -* Whitespace may occur before the --> on the same line. -* -* See http://bugzilla.mozilla.org/show_bug.cgi?id=31255 -* and http://bugzilla.mozilla.org/show_bug.cgi?id=179366 (Rhino version) -* -* Note: are the HTML multi-line comment opener, closer. -* JS already accepted as a single-line comment indicator. + * Whitespace may occur before the --> on the same line. + * + * See http://bugzilla.mozilla.org/show_bug.cgi?id=31255 + * and http://bugzilla.mozilla.org/show_bug.cgi?id=179366 (Rhino version) + * + * Note: are the HTML multi-line comment opener, closer. + * JS already accepted