Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: LayoutTests/fast/dom/element-attribute-js-null.html

Issue 68503013: Remove TreatNullAs=NullString for <frame>, <frameset> and <iframe> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/element-attribute-js-null-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 {name: 'encoding', expectedNull: 'application/x-www-form -urlencoded'}, 255 {name: 'encoding', expectedNull: 'application/x-www-form -urlencoded'},
256 {name: 'method', expectedNull: 'get'}, 256 {name: 'method', expectedNull: 'get'},
257 {name: 'name', expectedNull: 'null'}, 257 {name: 'name', expectedNull: 'null'},
258 {name: 'target', expectedNull: 'null'} 258 {name: 'target', expectedNull: 'null'}
259 ] 259 ]
260 }, 260 },
261 { 261 {
262 type: 'HTMLFrameElement', 262 type: 'HTMLFrameElement',
263 elementToUse: document.createElement('frame'), 263 elementToUse: document.createElement('frame'),
264 attributes: [ 264 attributes: [
265 {name: 'frameBorder', expectedNull: ''}, 265 // location is a non-standard attribute, which reflects the src content
266 {name: 'longDesc', expectedNull: ''}, 266 // attribute when getting, and must therefore be tested before src.
267 {name: 'location', expectedNull: ''},
268 {name: 'frameBorder', expectedNull: 'null'},
269 {name: 'longDesc', expectedNull: 'null', isUrl: true},
267 {name: 'marginHeight', expectedNull: ''}, 270 {name: 'marginHeight', expectedNull: ''},
268 {name: 'marginWidth', expectedNull: ''}, 271 {name: 'marginWidth', expectedNull: ''},
269 {name: 'name', expectedNull: ''}, 272 {name: 'name', expectedNull: 'null'},
270 {name: 'scrolling', expectedNull: ''}, 273 {name: 'scrolling', expectedNull: 'null'},
271 {name: 'src', expectedNull: ''}, 274 {name: 'src', expectedNull: 'null', isUrl: true}
272 {name: 'location', expectedNull: ''} // not a documented attribute
273 ] 275 ]
274 }, 276 },
275 { 277 {
276 type: 'HTMLFrameSetElement', 278 type: 'HTMLFrameSetElement',
277 elementToUse: document.createElement('frameset'), 279 elementToUse: document.createElement('frameset'),
278 attributes: [ 280 attributes: [
279 {name: 'cols', expectedNull: ''}, 281 {name: 'cols', expectedNull: 'null'},
280 {name: 'rows', expectedNull: ''} 282 {name: 'rows', expectedNull: 'null'}
281 ] 283 ]
282 }, 284 },
283 { 285 {
284 type: 'HTMLHeadElement', 286 type: 'HTMLHeadElement',
285 elementToUse: document.createElement('head'), 287 elementToUse: document.createElement('head'),
286 attributes: [ 288 attributes: [
287 {name: 'profile', expectedNull: ''} 289 {name: 'profile', expectedNull: ''}
288 ] 290 ]
289 }, 291 },
290 { 292 {
(...skipping 17 matching lines...) Expand all
308 type: 'HTMLHtmlElement', 310 type: 'HTMLHtmlElement',
309 elementToUse: document.createElement('html'), 311 elementToUse: document.createElement('html'),
310 attributes: [ 312 attributes: [
311 {name: 'version', expectedNull: ''} 313 {name: 'version', expectedNull: ''}
312 ] 314 ]
313 }, 315 },
314 { 316 {
315 type: 'HTMLIFrameElement', 317 type: 'HTMLIFrameElement',
316 elementToUse: document.createElement('iframe'), 318 elementToUse: document.createElement('iframe'),
317 attributes: [ 319 attributes: [
318 {name: 'align', expectedNull: ''}, 320 {name: 'align', expectedNull: 'null'},
319 {name: 'frameBorder', expectedNull: ''}, 321 {name: 'frameBorder', expectedNull: 'null'},
320 {name: 'height', expectedNull: ''}, 322 {name: 'height', expectedNull: 'null'},
321 {name: 'longDesc', expectedNull: ''}, 323 {name: 'longDesc', expectedNull: 'null', isUrl: true},
322 {name: 'marginHeight', expectedNull: ''}, 324 {name: 'marginHeight', expectedNull: ''},
323 {name: 'marginWidth', expectedNull: ''}, 325 {name: 'marginWidth', expectedNull: ''},
324 {name: 'name', expectedNull: ''}, 326 {name: 'name', expectedNull: 'null'},
325 {name: 'scrolling', expectedNull: ''}, 327 {name: 'scrolling', expectedNull: 'null'},
326 {name: 'src', expectedNull: ''}, 328 {name: 'src', expectedNull: 'null', isUrl: true},
327 {name: 'width', expectedNull: ''} 329 {name: 'srcdoc', expectedNull: 'null'},
330 {name: 'width', expectedNull: 'null'}
328 ] 331 ]
329 }, 332 },
330 { 333 {
331 type: 'HTMLImageElement', 334 type: 'HTMLImageElement',
332 elementToUse: document.createElement('img'), 335 elementToUse: document.createElement('img'),
333 attributes: [ 336 attributes: [
334 {name: 'name', expectedNull: ''}, 337 {name: 'name', expectedNull: ''},
335 {name: 'align', expectedNull: ''}, 338 {name: 'align', expectedNull: ''},
336 {name: 'alt', expectedNull: ''}, 339 {name: 'alt', expectedNull: ''},
337 {name: 'border', expectedNull: ''}, 340 {name: 'border', expectedNull: ''},
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 printOut(''); 660 printOut('');
658 } 661 }
659 } 662 }
660 </script> 663 </script>
661 </head> 664 </head>
662 <body onload="runTests()"> 665 <body onload="runTests()">
663 <p>This test setting various attributes of a elements to JavaScript null.</p > 666 <p>This test setting various attributes of a elements to JavaScript null.</p >
664 <div id="console"></div> 667 <div id="console"></div>
665 </body> 668 </body>
666 </html> 669 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/element-attribute-js-null-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698