| OLD | NEW |
| 1 <html> | 1 <!DOCTYPE html> |
| 2 <head> | |
| 3 <script src="../../resources/js-test.js"></script> | 2 <script src="../../resources/js-test.js"></script> |
| 4 <script> | 3 <script> |
| 5 if (window.testRunner) { | 4 if (window.testRunner) { |
| 6 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
| 7 } | 6 } |
| 8 </script> | 7 </script> |
| 9 </head> | 8 <div>This test passes if this img tag below is empty and displays nothing. It en
sures that the srcset attribute supports invalid inputs</div> |
| 10 | 9 <img id="foo" src="" srcset="1x,, , x ,2x " onerror="testPassed('did not
load invalid inputs')" onload="testFailed('Loaded |
| 11 <body id="body"> | 10 invalid inputs')"></img> |
| 12 <div>This test passes if this img tag below is empty and displays nothing. I
t ensures that the srcset attribute supports invalid inputs</div> | |
| 13 <img id="foo" src="" srcset="1x,, , x ,2x " onerror="testPassed('did
not load invalid inputs')" onload="testFailed('Loaded | |
| 14 invalid inputs')"></img> | |
| 15 </body> | |
| 16 </html> | |
| OLD | NEW |