]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/js1_5/Regress/regress-76054.js
2 * The contents of this file are subject to the Netscape Public
3 * License Version 1.1 (the "License"); you may not use this file
4 * except in compliance with the License. You may obtain a copy of
5 * the License at http://www.mozilla.org/NPL/
7 * Software distributed under the License is distributed on an "AS
8 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9 * implied. See the License for the specific language governing
10 * rights and limitations under the License.
12 * The Original Code is mozilla.org code.
14 * The Initial Developer of the Original Code is Netscape
15 * Communications Corporation. Portions created by Netscape are
16 * Copyright (C) 1998 Netscape Communications Corporation. All
19 * Contributor(s): pschwartau@netscape.com
22 * SUMMARY: Regression test for bug 76054
24 * See http://bugzilla.mozilla.org/show_bug.cgi?id=76054
25 * See http://bugzilla.mozilla.org/show_bug.cgi?id=78706
26 * All String HTML methods should be LOWER case -
28 //-------------------------------------------------------------------------------------------------
31 var summary
= 'Testing that String HTML methods produce all lower-case';
32 var statprefix
= 'Currently testing String.';
34 var statusitems
= [ ];
36 var actualvalues
= [ ];
38 var expectedvalues
= [ ];
43 expect
= actual
.toLowerCase();
48 expect
= actual
.toLowerCase();
53 expect
= actual
.toLowerCase();
58 expect
= actual
.toLowerCase();
63 expect
= actual
.toLowerCase();
68 expect
= actual
.toLowerCase();
71 status
= 'fontcolor()';
72 actual
= s
.fontcolor();
73 expect
= actual
.toLowerCase();
76 status
= 'fontsize()';
77 actual
= s
.fontsize();
78 expect
= actual
.toLowerCase();
83 expect
= actual
.toLowerCase();
88 expect
= actual
.toLowerCase();
93 expect
= actual
.toLowerCase();
98 expect
= actual
.toLowerCase();
103 expect
= actual
.toLowerCase();
107 //-------------------------------------------------------------------------------------------------
109 //-------------------------------------------------------------------------------------------------
114 statusitems
[UBound
] = status
;
115 actualvalues
[UBound
] = actual
;
116 expectedvalues
[UBound
] = expect
;
124 printBugNumber (bug
);
125 printStatus (summary
);
127 for (var i
= 0; i
< UBound
; i
++)
129 reportCompare(expectedvalues
[i
], actualvalues
[i
], getStatus(i
));
136 function getStatus(i
)
138 return statprefix
+ statusitems
[i
];