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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 {name: 'encoding', expectedNull: 'application/x-www-form
-urlencoded'}, | 258 {name: 'encoding', expectedNull: 'application/x-www-form
-urlencoded'}, |
259 {name: 'method', expectedNull: 'get'}, | 259 {name: 'method', expectedNull: 'get'}, |
260 {name: 'name', expectedNull: 'null'}, | 260 {name: 'name', expectedNull: 'null'}, |
261 {name: 'target', expectedNull: 'null'} | 261 {name: 'target', expectedNull: 'null'} |
262 ] | 262 ] |
263 }, | 263 }, |
264 { | 264 { |
265 type: 'HTMLFrameElement', | 265 type: 'HTMLFrameElement', |
266 elementToUse: document.createElement('frame'), | 266 elementToUse: document.createElement('frame'), |
267 attributes: [ | 267 attributes: [ |
268 // location is a non-standard attribute, which reflects
the src content | |
269 // attribute when getting, and must therefore be tested
before src. | |
270 {name: 'location', expectedNull: ''}, | |
271 {name: 'frameBorder', expectedNull: 'null'}, | 268 {name: 'frameBorder', expectedNull: 'null'}, |
272 {name: 'longDesc', expectedNull: 'null', isUrl: true}, | 269 {name: 'longDesc', expectedNull: 'null', isUrl: true}, |
273 {name: 'marginHeight', expectedNull: ''}, | 270 {name: 'marginHeight', expectedNull: ''}, |
274 {name: 'marginWidth', expectedNull: ''}, | 271 {name: 'marginWidth', expectedNull: ''}, |
275 {name: 'name', expectedNull: 'null'}, | 272 {name: 'name', expectedNull: 'null'}, |
276 {name: 'scrolling', expectedNull: 'null'}, | 273 {name: 'scrolling', expectedNull: 'null'}, |
277 {name: 'src', expectedNull: 'null', isUrl: true} | 274 {name: 'src', expectedNull: 'null', isUrl: true} |
278 ] | 275 ] |
279 }, | 276 }, |
280 { | 277 { |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 printOut(''); | 716 printOut(''); |
720 } | 717 } |
721 } | 718 } |
722 </script> | 719 </script> |
723 </head> | 720 </head> |
724 <body onload="runTests()"> | 721 <body onload="runTests()"> |
725 <p>This test setting various attributes of a elements to JavaScript null.</p
> | 722 <p>This test setting various attributes of a elements to JavaScript null.</p
> |
726 <div id="console"></div> | 723 <div id="console"></div> |
727 </body> | 724 </body> |
728 </html> | 725 </html> |
OLD | NEW |