Chromium Code Reviews| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 var htmlDoc = document.implementation.createHTMLDocument('A Title'); | 59 var htmlDoc = document.implementation.createHTMLDocument('A Title'); |
| 60 htmlDoc.body = htmlDoc.createElement('body'); | 60 htmlDoc.body = htmlDoc.createElement('body'); |
| 61 | 61 |
| 62 var listing = [ | 62 var listing = [ |
| 63 { | 63 { |
| 64 typeName: 'Document', | 64 typeName: 'Document', |
| 65 docToUse: xmlDoc, | 65 docToUse: xmlDoc, |
| 66 attributes: [ | 66 attributes: [ |
| 67 {name: 'xmlVersion', expectedExceptionCode: 9}, | 67 {name: 'xmlVersion', expectedExceptionCode: 9}, |
| 68 {name: 'documentURI', expectedNull: null}, | 68 {name: 'documentURI', expectedNull: null}, |
| 69 {name: 'charset', expectedNull: undefined}, | 69 {name: 'charset', expectedNull: ''}, |
|
philipj_slow
2015/06/11 11:42:54
Can you also add characterSet, inputEncoding and d
Habib Virji
2015/06/12 16:46:30
Done.
| |
| 70 {name: 'selectedStylesheetSet', expectedNull: null} | 70 {name: 'selectedStylesheetSet', expectedNull: null} |
| 71 ] | 71 ] |
| 72 }, | 72 }, |
| 73 { | 73 { |
| 74 typeName: 'HTMLDocument', | 74 typeName: 'HTMLDocument', |
| 75 docToUse: htmlDoc, | 75 docToUse: htmlDoc, |
| 76 attributes: [ | 76 attributes: [ |
| 77 {name: 'title', expectedNull: ''}, | 77 {name: 'title', expectedNull: ''}, |
| 78 {name: 'cookie', expectedNull: ''}, | 78 {name: 'cookie', expectedNull: ''}, |
| 79 {name: 'bgColor', expectedNull: ''}, | 79 {name: 'bgColor', expectedNull: ''}, |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 97 printOut(''); | 97 printOut(''); |
| 98 } | 98 } |
| 99 } | 99 } |
| 100 </script> | 100 </script> |
| 101 </head> | 101 </head> |
| 102 <body onload="runTests()"> | 102 <body onload="runTests()"> |
| 103 <p>This test setting various attributes of documents to JavaScript null.</p> | 103 <p>This test setting various attributes of documents to JavaScript null.</p> |
| 104 <div id="console"></div> | 104 <div id="console"></div> |
| 105 </body> | 105 </body> |
| 106 </html> | 106 </html> |
| OLD | NEW |