OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style type="text/css"> | 3 <style type="text/css"> |
4 .pass { color: green; } | 4 .pass { color: green; } |
5 .fail { color: red; } | 5 .fail { color: red; } |
6 </style> | 6 </style> |
7 <script> | 7 <script> |
8 function printOut(msg) | 8 function printOut(msg) |
9 { | 9 { |
10 var console = document.getElementById("console"); | 10 var console = document.getElementById("console"); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 htmlDoc.body = htmlDoc.createElement('body'); | 62 htmlDoc.body = htmlDoc.createElement('body'); |
63 | 63 |
64 var listing = [ | 64 var listing = [ |
65 { | 65 { |
66 typeName: 'Document', | 66 typeName: 'Document', |
67 docToUse: xmlDoc, | 67 docToUse: xmlDoc, |
68 attributes: [ | 68 attributes: [ |
69 {name: 'xmlVersion', expectedExceptionCode: 9}, | 69 {name: 'xmlVersion', expectedExceptionCode: 9}, |
70 {name: 'documentURI', expectedNull: null}, | 70 {name: 'documentURI', expectedNull: null}, |
71 {name: 'charset', expectedNull: 'UTF-8'}, | 71 {name: 'charset', expectedNull: 'UTF-8'}, |
72 {name: 'defaultCharset', expectedNull: undefined}, | |
73 {name: 'characterSet', expectedNull: 'UTF-8'}, | 72 {name: 'characterSet', expectedNull: 'UTF-8'}, |
74 {name: 'inputEncoding', expectedNull: 'UTF-8'}, | 73 {name: 'inputEncoding', expectedNull: 'UTF-8'}, |
75 {name: 'selectedStylesheetSet', expectedNull: null} | 74 {name: 'selectedStylesheetSet', expectedNull: null} |
76 ] | 75 ] |
77 }, | 76 }, |
78 { | 77 { |
79 typeName: 'HTMLDocument', | 78 typeName: 'HTMLDocument', |
80 docToUse: htmlDoc, | 79 docToUse: htmlDoc, |
81 attributes: [ | 80 attributes: [ |
82 {name: 'title', expectedNull: 'null'}, | 81 {name: 'title', expectedNull: 'null'}, |
(...skipping 19 matching lines...) Expand all Loading... |
102 printOut(''); | 101 printOut(''); |
103 } | 102 } |
104 } | 103 } |
105 </script> | 104 </script> |
106 </head> | 105 </head> |
107 <body onload="runTests()"> | 106 <body onload="runTests()"> |
108 <p>This test setting various attributes of documents to JavaScript null.</p> | 107 <p>This test setting various attributes of documents to JavaScript null.</p> |
109 <div id="console"></div> | 108 <div id="console"></div> |
110 </body> | 109 </body> |
111 </html> | 110 </html> |
OLD | NEW |