WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
MSIE 6 results for fast/js/select-options-add.html
bug-9179-msie6-select-options-add.html (text/html), 15.04 KB, created by
David Kilzer (:ddkilzer)
on 2006-07-09 22:45:31 PDT
(
hide
)
Description:
MSIE 6 results for fast/js/select-options-add.html
Filename:
MIME Type:
Creator:
David Kilzer (:ddkilzer)
Created:
2006-07-09 22:45:31 PDT
Size:
15.04 KB
patch
obsolete
><html xmlns:v="urn:schemas-microsoft-com:vml" >xmlns:o="urn:schemas-microsoft-com:office:office" >xmlns:w="urn:schemas-microsoft-com:office:word" >xmlns="http://www.w3.org/TR/REC-html40"> > ><head> ><meta http-equiv=Content-Type content="text/html; charset=windows-1252"> ><meta name=ProgId content=Word.Document> ><meta name=Generator content="Microsoft Word 10"> ><meta name=Originator content="Microsoft Word 10"> ><!--[if !mso]> ><style> >v\:* {behavior:url(#default#VML);} >o\:* {behavior:url(#default#VML);} >w\:* {behavior:url(#default#VML);} >.shape {behavior:url(#default#VML);} ></style> ><![endif]--> ><title>This test checks the behavior of the add() method on the select</title> ><!--[if gte mso 9]><xml> > <o:DocumentProperties> > <o:Author>David D. Kilzer</o:Author> > <o:LastAuthor>David D. Kilzer</o:LastAuthor> > <o:Revision>1</o:Revision> > <o:TotalTime>1</o:TotalTime> > <o:Created>2006-07-10T03:04:00Z</o:Created> > <o:LastSaved>2006-07-10T03:05:00Z</o:LastSaved> > <o:Pages>6</o:Pages> > <o:Words>1097</o:Words> > <o:Characters>6257</o:Characters> > <o:Company>isl employee</o:Company> > <o:Lines>52</o:Lines> > <o:Paragraphs>14</o:Paragraphs> > <o:CharactersWithSpaces>7340</o:CharactersWithSpaces> > <o:Version>10.6714</o:Version> > </o:DocumentProperties> ></xml><![endif]--><!--[if gte mso 9]><xml> > <w:WordDocument> > <w:Compatibility> > <w:BreakWrappedTables/> > <w:SnapToGridInCell/> > <w:WrapTextWithPunct/> > <w:UseAsianBreakRules/> > </w:Compatibility> > <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> > </w:WordDocument> ></xml><![endif]--> ><style> ><!-- > /* Style Definitions */ > p.MsoNormal, li.MsoNormal, div.MsoNormal > {mso-style-parent:""; > margin:0in; > margin-bottom:.0001pt; > mso-pagination:widow-orphan; > font-size:12.0pt; > font-family:"Times New Roman"; > mso-fareast-font-family:"Times New Roman";} >p > {mso-margin-top-alt:auto; > margin-right:0in; > mso-margin-bottom-alt:auto; > margin-left:0in; > mso-pagination:widow-orphan; > font-size:12.0pt; > font-family:"Times New Roman"; > mso-fareast-font-family:"Times New Roman";} >span.pass1 > {mso-style-name:pass1; > color:green; > font-weight:bold;} >@page Section1 > {size:8.5in 11.0in; > margin:1.0in 1.25in 1.0in 1.25in; > mso-header-margin:.5in; > mso-footer-margin:.5in; > mso-paper-source:0;} >div.Section1 > {page:Section1;} >--> ></style> ><!--[if gte mso 10]> ><style> > /* Style Definitions */ > table.MsoNormalTable > {mso-style-name:"Table Normal"; > mso-tstyle-rowband-size:0; > mso-tstyle-colband-size:0; > mso-style-noshow:yes; > mso-style-parent:""; > mso-padding-alt:0in 5.4pt 0in 5.4pt; > mso-para-margin:0in; > mso-para-margin-bottom:.0001pt; > mso-pagination:widow-orphan; > font-size:10.0pt; > font-family:"Times New Roman";} ></style> ><![endif]--><!--[if gte mso 9]><xml> > <o:shapedefaults v:ext="edit" spidmax="1026"/> ></xml><![endif]--><!--[if gte mso 9]><xml> > <o:shapelayout v:ext="edit"> > <o:idmap v:ext="edit" data="1"/> > </o:shapelayout></xml><![endif]--> ></head> > ><body lang=EN-US style='tab-interval:.5in'> > ><div class=Section1> > ><p>This test checks the behavior of the add() method on the select.options >object.<br> >It covers both the the one-argument (1.x) and two-argument (2.x) signatures of >the add() method.<o:p></o:p></p> > ><p>On success, you will see a series of "<span class=pass1>PASS</span>" >messages, followed by "<span class=pass1>TEST COMPLETE</span>".<o:p></o:p></p> > ><p class=MsoNormal><span style='font-family:"Courier New"'>1.1 Add Option to >empty Options<br> ><span class=pass1>PASS</span> select1.options.length is 1<br> ><span class=pass1>PASS</span> select1.selectedIndex is 0<br> ><span class=pass1>PASS</span> select1.options[0].value is '1'<br> ><span class=pass1>PASS</span> select1.options[0].textContent is 'A'<br> ><br> >1.2 Add Option to non-empty Options<br> ><span class=pass1>PASS</span> select1.options.length is 2<br> ><span class=pass1>PASS</span> select1.selectedIndex is 0<br> ><span class=pass1>PASS</span> select1.options[0].value is '1'<br> ><span class=pass1>PASS</span> select1.options[0].textContent is 'A'<br> ><span class=pass1>PASS</span> select1.options[1].value is '2'<br> ><span class=pass1>PASS</span> select1.options[1].textContent is 'B'<br> ><br> >1.3 Add Option after setting parameters<br> ><span class=pass1>PASS</span> select1.options.length is 3<br> ><span class=pass1>PASS</span> select1.selectedIndex is 0<br> ><span class=pass1>PASS</span> select1.options[0].value is '1'<br> ><span class=pass1>PASS</span> select1.options[0].textContent is 'A'<br> ><span class=pass1>PASS</span> select1.options[1].value is '2'<br> ><span class=pass1>PASS</span> select1.options[1].textContent is 'B'<br> ><span class=pass1>PASS</span> select1.options[2].value is '3'<br> ><span class=pass1>PASS</span> select1.options[2].textContent is 'C'<br> ><br> >1.4 Add a non-Option element<br> ><span class=pass1>PASS</span> select1.options.add(option1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select1.options.length is 3<br> ><span class=pass1>PASS</span> select1.selectedIndex is 0<br> ><br> >1.5 Add a non-element (string)<br> ><span class=pass1>PASS</span> select1.options.add(option1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select1.options.length is 3<br> ><span class=pass1>PASS</span> select1.selectedIndex is 0<br> ><br> >1.6 Add a non-element (number)<br> ><span class=pass1>PASS</span> select1.options.add(option1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select1.options.length is 3<br> ><span class=pass1>PASS</span> select1.selectedIndex is 0<br> ><br> >1.7 Add undefined<br> ><span class=pass1>PASS</span> select1.options.add(option1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select1.options.length is 3<br> ><span class=pass1>PASS</span> select1.selectedIndex is 0<br> ><br> >1.8 Add null<br> ><span class=pass1>PASS</span> select1.options.add(option1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select1.options.length is 3<br> ><span class=pass1>PASS</span> select1.selectedIndex is 0<br> ><br> >1.9 Add negative infinity<br> ><span class=pass1>PASS</span> select1.options.add(option1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select1.options.length is 3<br> ><span class=pass1>PASS</span> select1.selectedIndex is 0<br> ><br> >1.10 Add NaN<br> ><span class=pass1>PASS</span> select1.options.add(option1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select1.options.length is 3<br> ><span class=pass1>PASS</span> select1.selectedIndex is 0<br> ><br> >1.11 Add positive infinity<br> ><span class=pass1>PASS</span> select1.options.add(option1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select1.options.length is 3<br> ><span class=pass1>PASS</span> select1.selectedIndex is 0<br> ><br> >2.1 Add Option to empty Options<br> ><span class=pass1>PASS</span> select2.options.length is 1<br> ><span class=pass1>PASS</span> select2.selectedIndex is 0<br> ><span class=pass1>PASS</span> select2.options[0].value is '1'<br> ><span class=pass1>PASS</span> select2.options[0].textContent is 'A'<br> ><br> >2.2 Add Option after setting parameters<br> ><span class=pass1>PASS</span> select2.options.length is 2<br> ><span class=pass1>PASS</span> select2.selectedIndex is 0<br> ><span class=pass1>PASS</span> select2.options[0].value is '1'<br> ><span class=pass1>PASS</span> select2.options[0].textContent is 'A'<br> ><span class=pass1>PASS</span> select2.options[1].value is '2'<br> ><span class=pass1>PASS</span> select2.options[1].textContent is 'B'<br> ><br> >2.3 Insert Option at beginning of Options<br> ><span class=pass1>PASS</span> select2.options.length is 3<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><span class=pass1>PASS</span> select2.options[0].value is '0'<br> ><span class=pass1>PASS</span> select2.options[0].textContent is 'Z'<br> ><span class=pass1>PASS</span> select2.options[1].value is '1'<br> ><span class=pass1>PASS</span> select2.options[1].textContent is 'A'<br> ><span class=pass1>PASS</span> select2.options[2].value is '2'<br> ><span class=pass1>PASS</span> select2.options[2].textContent is 'B'<br> ><br> >2.4 Insert Option in middle of Options<br> ><span class=pass1>PASS</span> select2.options.length is 4<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><span class=pass1>PASS</span> select2.options[0].value is '0'<br> ><span class=pass1>PASS</span> select2.options[0].textContent is 'Z'<br> ><span class=pass1>PASS</span> select2.options[1].value is '1'<br> ><span class=pass1>PASS</span> select2.options[1].textContent is 'A'<br> ><span class=pass1>PASS</span> select2.options[2].value is '1.5'<br> ><span class=pass1>PASS</span> select2.options[2].textContent is 'A.5'<br> ><span class=pass1>PASS</span> select2.options[3].value is '2'<br> ><span class=pass1>PASS</span> select2.options[3].textContent is 'B'<br> ><br> >2.5 Insert Option at end of Options<br> ><span class=pass1>PASS</span> select2.options.length is 5<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><span class=pass1>PASS</span> select2.options[0].value is '0'<br> ><span class=pass1>PASS</span> select2.options[0].textContent is 'Z'<br> ><span class=pass1>PASS</span> select2.options[1].value is '1'<br> ><span class=pass1>PASS</span> select2.options[1].textContent is 'A'<br> ><span class=pass1>PASS</span> select2.options[2].value is '1.5'<br> ><span class=pass1>PASS</span> select2.options[2].textContent is 'A.5'<br> ><span class=pass1>PASS</span> select2.options[3].value is '2'<br> ><span class=pass1>PASS</span> select2.options[3].textContent is 'B'<br> ><span class=pass1>PASS</span> select2.options[4].value is '3'<br> ><span class=pass1>PASS</span> select2.options[4].textContent is 'C'<br> ><br> >2.6 Insert Option beyond the end of Options<br> ><span class=pass1>PASS</span> select2.options.length is 6<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><span class=pass1>PASS</span> select2.options[0].value is '0'<br> ><span class=pass1>PASS</span> select2.options[0].textContent is 'Z'<br> ><span class=pass1>PASS</span> select2.options[1].value is '1'<br> ><span class=pass1>PASS</span> select2.options[1].textContent is 'A'<br> ><span class=pass1>PASS</span> select2.options[2].value is '1.5'<br> ><span class=pass1>PASS</span> select2.options[2].textContent is 'A.5'<br> ><span class=pass1>PASS</span> select2.options[3].value is '2'<br> ><span class=pass1>PASS</span> select2.options[3].textContent is 'B'<br> ><span class=pass1>PASS</span> select2.options[4].value is '3'<br> ><span class=pass1>PASS</span> select2.options[4].textContent is 'C'<br> ><span class=pass1>PASS</span> select2.options[5].value is '4'<br> ><span class=pass1>PASS</span> select2.options[5].textContent is 'D'<br> ><br> >2.7 Add an Option at index -1<br> ><span class=pass1>PASS</span> select2.options.length is 7<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><span class=pass1>PASS</span> select2.options[0].value is '0'<br> ><span class=pass1>PASS</span> select2.options[0].textContent is 'Z'<br> ><span class=pass1>PASS</span> select2.options[1].value is '1'<br> ><span class=pass1>PASS</span> select2.options[1].textContent is 'A'<br> ><span class=pass1>PASS</span> select2.options[2].value is '1.5'<br> ><span class=pass1>PASS</span> select2.options[2].textContent is 'A.5'<br> ><span class=pass1>PASS</span> select2.options[3].value is '2'<br> ><span class=pass1>PASS</span> select2.options[3].textContent is 'B'<br> ><span class=pass1>PASS</span> select2.options[4].value is '3'<br> ><span class=pass1>PASS</span> select2.options[4].textContent is 'C'<br> ><span class=pass1>PASS</span> select2.options[5].value is '4'<br> ><span class=pass1>PASS</span> select2.options[5].textContent is 'D'<br> ><span class=pass1>PASS</span> select2.options[6].value is '5'<br> ><span class=pass1>PASS</span> select2.options[6].textContent is 'E'<br> ><br> >2.8 Add an Option at index -2<br> ><span class=pass1>PASS</span> select2.options.add(option2, -2) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select2.options.length is 7<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><br> >2.9 Add an Option at index -Infinity<br> ><span class=pass1>PASS</span> select2.options.add(option2, -1/0) threw >exception [object Error].<br> ><span class=pass1>PASS</span> select2.options.length is 7<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><br> >2.10 Add an Option at index NaN<br> ><span class=pass1>PASS</span> select2.options.add(option2, 0/0) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select2.options.length is 7<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><br> >2.11 Add an Option at index Infinity<br> ><span class=pass1>PASS</span> select2.options.add(option2, 1/0) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select2.options.length is 7<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><br> >2.12 Add a non-Option element<br> ><span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select2.options.length is 7<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><br> >2.13 Add a non-element (string)<br> ><span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select2.options.length is 7<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><br> >2.14 Add a non-element (number)<br> ><span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select2.options.length is 7<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><br> >2.15 Add undefined<br> ><span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select2.options.length is 7<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><br> >2.16 Add null<br> ><span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select2.options.length is 7<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><br> >2.17 Add negative infinity<br> ><span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select2.options.length is 7<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><br> >2.18 Add NaN<br> ><span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select2.options.length is 7<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><br> >2.19 Add positive infinity<br> ><span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception >[object Error].<br> ><span class=pass1>PASS</span> select2.options.length is 7<br> ><span class=pass1>PASS</span> select2.selectedIndex is 1<br> ><br> ><span class=pass1>PASS</span> successfullyParsed is true<br> ><br> ><span class=pass1>TEST COMPLETE</span><o:p></o:p></span></p> > ><p class=MsoNormal><SELECT id=select1> ><OPTION SELECTED VALUE="1"> ><OPTION VALUE="2"> ><OPTION VALUE="3"> ></SELECT><SELECT >id=select2> ><OPTION VALUE="0"> ><OPTION SELECTED VALUE="1"> ><OPTION VALUE="1.5"> ><OPTION VALUE="2"> ><OPTION VALUE="3"> ><OPTION VALUE="4"> ><OPTION VALUE="5"> ></SELECT><o:p></o:p></p> > ></div> > ></body> > ></html>
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=windows-1252"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 10"> <meta name=Originator content="Microsoft Word 10"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--> <title>This test checks the behavior of the add() method on the select</title> <!--[if gte mso 9]><xml> <o:DocumentProperties> <o:Author>David D. Kilzer</o:Author> <o:LastAuthor>David D. Kilzer</o:LastAuthor> <o:Revision>1</o:Revision> <o:TotalTime>1</o:TotalTime> <o:Created>2006-07-10T03:04:00Z</o:Created> <o:LastSaved>2006-07-10T03:05:00Z</o:LastSaved> <o:Pages>6</o:Pages> <o:Words>1097</o:Words> <o:Characters>6257</o:Characters> <o:Company>isl employee</o:Company> <o:Lines>52</o:Lines> <o:Paragraphs>14</o:Paragraphs> <o:CharactersWithSpaces>7340</o:CharactersWithSpaces> <o:Version>10.6714</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} p {mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} span.pass1 {mso-style-name:pass1; color:green; font-weight:bold;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]--><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026"/> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1"/> </o:shapelayout></xml><![endif]--> </head> <body lang=EN-US style='tab-interval:.5in'> <div class=Section1> <p>This test checks the behavior of the add() method on the select.options object.<br> It covers both the the one-argument (1.x) and two-argument (2.x) signatures of the add() method.<o:p></o:p></p> <p>On success, you will see a series of "<span class=pass1>PASS</span>" messages, followed by "<span class=pass1>TEST COMPLETE</span>".<o:p></o:p></p> <p class=MsoNormal><span style='font-family:"Courier New"'>1.1 Add Option to empty Options<br> <span class=pass1>PASS</span> select1.options.length is 1<br> <span class=pass1>PASS</span> select1.selectedIndex is 0<br> <span class=pass1>PASS</span> select1.options[0].value is '1'<br> <span class=pass1>PASS</span> select1.options[0].textContent is 'A'<br> <br> 1.2 Add Option to non-empty Options<br> <span class=pass1>PASS</span> select1.options.length is 2<br> <span class=pass1>PASS</span> select1.selectedIndex is 0<br> <span class=pass1>PASS</span> select1.options[0].value is '1'<br> <span class=pass1>PASS</span> select1.options[0].textContent is 'A'<br> <span class=pass1>PASS</span> select1.options[1].value is '2'<br> <span class=pass1>PASS</span> select1.options[1].textContent is 'B'<br> <br> 1.3 Add Option after setting parameters<br> <span class=pass1>PASS</span> select1.options.length is 3<br> <span class=pass1>PASS</span> select1.selectedIndex is 0<br> <span class=pass1>PASS</span> select1.options[0].value is '1'<br> <span class=pass1>PASS</span> select1.options[0].textContent is 'A'<br> <span class=pass1>PASS</span> select1.options[1].value is '2'<br> <span class=pass1>PASS</span> select1.options[1].textContent is 'B'<br> <span class=pass1>PASS</span> select1.options[2].value is '3'<br> <span class=pass1>PASS</span> select1.options[2].textContent is 'C'<br> <br> 1.4 Add a non-Option element<br> <span class=pass1>PASS</span> select1.options.add(option1) threw exception [object Error].<br> <span class=pass1>PASS</span> select1.options.length is 3<br> <span class=pass1>PASS</span> select1.selectedIndex is 0<br> <br> 1.5 Add a non-element (string)<br> <span class=pass1>PASS</span> select1.options.add(option1) threw exception [object Error].<br> <span class=pass1>PASS</span> select1.options.length is 3<br> <span class=pass1>PASS</span> select1.selectedIndex is 0<br> <br> 1.6 Add a non-element (number)<br> <span class=pass1>PASS</span> select1.options.add(option1) threw exception [object Error].<br> <span class=pass1>PASS</span> select1.options.length is 3<br> <span class=pass1>PASS</span> select1.selectedIndex is 0<br> <br> 1.7 Add undefined<br> <span class=pass1>PASS</span> select1.options.add(option1) threw exception [object Error].<br> <span class=pass1>PASS</span> select1.options.length is 3<br> <span class=pass1>PASS</span> select1.selectedIndex is 0<br> <br> 1.8 Add null<br> <span class=pass1>PASS</span> select1.options.add(option1) threw exception [object Error].<br> <span class=pass1>PASS</span> select1.options.length is 3<br> <span class=pass1>PASS</span> select1.selectedIndex is 0<br> <br> 1.9 Add negative infinity<br> <span class=pass1>PASS</span> select1.options.add(option1) threw exception [object Error].<br> <span class=pass1>PASS</span> select1.options.length is 3<br> <span class=pass1>PASS</span> select1.selectedIndex is 0<br> <br> 1.10 Add NaN<br> <span class=pass1>PASS</span> select1.options.add(option1) threw exception [object Error].<br> <span class=pass1>PASS</span> select1.options.length is 3<br> <span class=pass1>PASS</span> select1.selectedIndex is 0<br> <br> 1.11 Add positive infinity<br> <span class=pass1>PASS</span> select1.options.add(option1) threw exception [object Error].<br> <span class=pass1>PASS</span> select1.options.length is 3<br> <span class=pass1>PASS</span> select1.selectedIndex is 0<br> <br> 2.1 Add Option to empty Options<br> <span class=pass1>PASS</span> select2.options.length is 1<br> <span class=pass1>PASS</span> select2.selectedIndex is 0<br> <span class=pass1>PASS</span> select2.options[0].value is '1'<br> <span class=pass1>PASS</span> select2.options[0].textContent is 'A'<br> <br> 2.2 Add Option after setting parameters<br> <span class=pass1>PASS</span> select2.options.length is 2<br> <span class=pass1>PASS</span> select2.selectedIndex is 0<br> <span class=pass1>PASS</span> select2.options[0].value is '1'<br> <span class=pass1>PASS</span> select2.options[0].textContent is 'A'<br> <span class=pass1>PASS</span> select2.options[1].value is '2'<br> <span class=pass1>PASS</span> select2.options[1].textContent is 'B'<br> <br> 2.3 Insert Option at beginning of Options<br> <span class=pass1>PASS</span> select2.options.length is 3<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <span class=pass1>PASS</span> select2.options[0].value is '0'<br> <span class=pass1>PASS</span> select2.options[0].textContent is 'Z'<br> <span class=pass1>PASS</span> select2.options[1].value is '1'<br> <span class=pass1>PASS</span> select2.options[1].textContent is 'A'<br> <span class=pass1>PASS</span> select2.options[2].value is '2'<br> <span class=pass1>PASS</span> select2.options[2].textContent is 'B'<br> <br> 2.4 Insert Option in middle of Options<br> <span class=pass1>PASS</span> select2.options.length is 4<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <span class=pass1>PASS</span> select2.options[0].value is '0'<br> <span class=pass1>PASS</span> select2.options[0].textContent is 'Z'<br> <span class=pass1>PASS</span> select2.options[1].value is '1'<br> <span class=pass1>PASS</span> select2.options[1].textContent is 'A'<br> <span class=pass1>PASS</span> select2.options[2].value is '1.5'<br> <span class=pass1>PASS</span> select2.options[2].textContent is 'A.5'<br> <span class=pass1>PASS</span> select2.options[3].value is '2'<br> <span class=pass1>PASS</span> select2.options[3].textContent is 'B'<br> <br> 2.5 Insert Option at end of Options<br> <span class=pass1>PASS</span> select2.options.length is 5<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <span class=pass1>PASS</span> select2.options[0].value is '0'<br> <span class=pass1>PASS</span> select2.options[0].textContent is 'Z'<br> <span class=pass1>PASS</span> select2.options[1].value is '1'<br> <span class=pass1>PASS</span> select2.options[1].textContent is 'A'<br> <span class=pass1>PASS</span> select2.options[2].value is '1.5'<br> <span class=pass1>PASS</span> select2.options[2].textContent is 'A.5'<br> <span class=pass1>PASS</span> select2.options[3].value is '2'<br> <span class=pass1>PASS</span> select2.options[3].textContent is 'B'<br> <span class=pass1>PASS</span> select2.options[4].value is '3'<br> <span class=pass1>PASS</span> select2.options[4].textContent is 'C'<br> <br> 2.6 Insert Option beyond the end of Options<br> <span class=pass1>PASS</span> select2.options.length is 6<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <span class=pass1>PASS</span> select2.options[0].value is '0'<br> <span class=pass1>PASS</span> select2.options[0].textContent is 'Z'<br> <span class=pass1>PASS</span> select2.options[1].value is '1'<br> <span class=pass1>PASS</span> select2.options[1].textContent is 'A'<br> <span class=pass1>PASS</span> select2.options[2].value is '1.5'<br> <span class=pass1>PASS</span> select2.options[2].textContent is 'A.5'<br> <span class=pass1>PASS</span> select2.options[3].value is '2'<br> <span class=pass1>PASS</span> select2.options[3].textContent is 'B'<br> <span class=pass1>PASS</span> select2.options[4].value is '3'<br> <span class=pass1>PASS</span> select2.options[4].textContent is 'C'<br> <span class=pass1>PASS</span> select2.options[5].value is '4'<br> <span class=pass1>PASS</span> select2.options[5].textContent is 'D'<br> <br> 2.7 Add an Option at index -1<br> <span class=pass1>PASS</span> select2.options.length is 7<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <span class=pass1>PASS</span> select2.options[0].value is '0'<br> <span class=pass1>PASS</span> select2.options[0].textContent is 'Z'<br> <span class=pass1>PASS</span> select2.options[1].value is '1'<br> <span class=pass1>PASS</span> select2.options[1].textContent is 'A'<br> <span class=pass1>PASS</span> select2.options[2].value is '1.5'<br> <span class=pass1>PASS</span> select2.options[2].textContent is 'A.5'<br> <span class=pass1>PASS</span> select2.options[3].value is '2'<br> <span class=pass1>PASS</span> select2.options[3].textContent is 'B'<br> <span class=pass1>PASS</span> select2.options[4].value is '3'<br> <span class=pass1>PASS</span> select2.options[4].textContent is 'C'<br> <span class=pass1>PASS</span> select2.options[5].value is '4'<br> <span class=pass1>PASS</span> select2.options[5].textContent is 'D'<br> <span class=pass1>PASS</span> select2.options[6].value is '5'<br> <span class=pass1>PASS</span> select2.options[6].textContent is 'E'<br> <br> 2.8 Add an Option at index -2<br> <span class=pass1>PASS</span> select2.options.add(option2, -2) threw exception [object Error].<br> <span class=pass1>PASS</span> select2.options.length is 7<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <br> 2.9 Add an Option at index -Infinity<br> <span class=pass1>PASS</span> select2.options.add(option2, -1/0) threw exception [object Error].<br> <span class=pass1>PASS</span> select2.options.length is 7<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <br> 2.10 Add an Option at index NaN<br> <span class=pass1>PASS</span> select2.options.add(option2, 0/0) threw exception [object Error].<br> <span class=pass1>PASS</span> select2.options.length is 7<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <br> 2.11 Add an Option at index Infinity<br> <span class=pass1>PASS</span> select2.options.add(option2, 1/0) threw exception [object Error].<br> <span class=pass1>PASS</span> select2.options.length is 7<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <br> 2.12 Add a non-Option element<br> <span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception [object Error].<br> <span class=pass1>PASS</span> select2.options.length is 7<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <br> 2.13 Add a non-element (string)<br> <span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception [object Error].<br> <span class=pass1>PASS</span> select2.options.length is 7<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <br> 2.14 Add a non-element (number)<br> <span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception [object Error].<br> <span class=pass1>PASS</span> select2.options.length is 7<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <br> 2.15 Add undefined<br> <span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception [object Error].<br> <span class=pass1>PASS</span> select2.options.length is 7<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <br> 2.16 Add null<br> <span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception [object Error].<br> <span class=pass1>PASS</span> select2.options.length is 7<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <br> 2.17 Add negative infinity<br> <span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception [object Error].<br> <span class=pass1>PASS</span> select2.options.length is 7<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <br> 2.18 Add NaN<br> <span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception [object Error].<br> <span class=pass1>PASS</span> select2.options.length is 7<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <br> 2.19 Add positive infinity<br> <span class=pass1>PASS</span> select2.options.add(option2, 1) threw exception [object Error].<br> <span class=pass1>PASS</span> select2.options.length is 7<br> <span class=pass1>PASS</span> select2.selectedIndex is 1<br> <br> <span class=pass1>PASS</span> successfullyParsed is true<br> <br> <span class=pass1>TEST COMPLETE</span><o:p></o:p></span></p> <p class=MsoNormal><SELECT id=select1> <OPTION SELECTED VALUE="1"> <OPTION VALUE="2"> <OPTION VALUE="3"> </SELECT><SELECT id=select2> <OPTION VALUE="0"> <OPTION SELECTED VALUE="1"> <OPTION VALUE="1.5"> <OPTION VALUE="2"> <OPTION VALUE="3"> <OPTION VALUE="4"> <OPTION VALUE="5"> </SELECT><o:p></o:p></p> </div> </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 9179
:
8941
|
9169
|
9170
|
9174
|
9325
|
9326
|
9327
|
9328
| 9329 |
9330
|
9331
|
9339