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

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

Issue 529933002: Make 'crossOrigin' IDL attributes nullable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 years, 3 months 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
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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 {name: 'width', expectedNull: 'null'} 331 {name: 'width', expectedNull: 'null'}
332 ] 332 ]
333 }, 333 },
334 { 334 {
335 type: 'HTMLImageElement', 335 type: 'HTMLImageElement',
336 elementToUse: document.createElement('img'), 336 elementToUse: document.createElement('img'),
337 attributes: [ 337 attributes: [
338 {name: 'align', expectedNull: 'null'}, 338 {name: 'align', expectedNull: 'null'},
339 {name: 'alt', expectedNull: 'null'}, 339 {name: 'alt', expectedNull: 'null'},
340 {name: 'border', expectedNull: ''}, 340 {name: 'border', expectedNull: ''},
341 {name: 'crossOrigin', expectedNull: 'anonymous'}, 341 {name: 'crossOrigin', expectedNull: null},
342 {name: 'longDesc', expectedNull: 'null', isUrl: true}, 342 {name: 'longDesc', expectedNull: 'null', isUrl: true},
343 {name: 'lowsrc', expectedNull: 'null', isUrl: true}, 343 {name: 'lowsrc', expectedNull: 'null', isUrl: true},
344 {name: 'name', expectedNull: 'null'}, 344 {name: 'name', expectedNull: 'null'},
345 {name: 'src', expectedNull: 'null', isUrl: true}, 345 {name: 'src', expectedNull: 'null', isUrl: true},
346 {name: 'srcset', expectedNull: 'null'}, 346 {name: 'srcset', expectedNull: 'null'},
347 {name: 'useMap', expectedNull: 'null'} 347 {name: 'useMap', expectedNull: 'null'}
348 ] 348 ]
349 }, 349 },
350 { 350 {
351 type: 'HTMLInputElement', 351 type: 'HTMLInputElement',
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 { 550 {
551 type: 'HTMLScriptElement', 551 type: 'HTMLScriptElement',
552 elementToUse: document.createElement('script'), 552 elementToUse: document.createElement('script'),
553 attributes: [ 553 attributes: [
554 {name: 'text', expectedNull: 'null'}, 554 {name: 'text', expectedNull: 'null'},
555 {name: 'htmlFor', expectedNull: 'null'}, 555 {name: 'htmlFor', expectedNull: 'null'},
556 {name: 'event', expectedNull: 'null'}, 556 {name: 'event', expectedNull: 'null'},
557 {name: 'charset', expectedNull: 'null'}, 557 {name: 'charset', expectedNull: 'null'},
558 {name: 'src', expectedNull: 'null', isUrl: true}, 558 {name: 'src', expectedNull: 'null', isUrl: true},
559 {name: 'type', expectedNull: 'null'}, 559 {name: 'type', expectedNull: 'null'},
560 {name: 'crossOrigin', expectedNull: 'anonymous'}, 560 {name: 'crossOrigin', expectedNull: null},
561 {name: 'nonce', expectedNull: 'null'} 561 {name: 'nonce', expectedNull: 'null'}
562 ] 562 ]
563 }, 563 },
564 { 564 {
565 type: 'HTMLSelectElement', 565 type: 'HTMLSelectElement',
566 elementToUse: document.createElement('select'), 566 elementToUse: document.createElement('select'),
567 attributes: [ 567 attributes: [
568 {name: 'value', expectedNull: ''}, 568 {name: 'value', expectedNull: ''},
569 {name: 'name', expectedNull: 'null'} 569 {name: 'name', expectedNull: 'null'}
570 ] 570 ]
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 printOut(''); 715 printOut('');
716 } 716 }
717 } 717 }
718 </script> 718 </script>
719 </head> 719 </head>
720 <body onload="runTests()"> 720 <body onload="runTests()">
721 <p>This test setting various attributes of a elements to JavaScript null.</p > 721 <p>This test setting various attributes of a elements to JavaScript null.</p >
722 <div id="console"></div> 722 <div id="console"></div>
723 </body> 723 </body>
724 </html> 724 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698