blob: 4668c3acd31cbb5af91b13cd039e398fcb5e5c88 [file] [log] [blame]
<!DOCTYPE html>
This test was modified to not use the HTML4 intrinsic events 'img onload=' or
'img=onerror' or to check the img element size.
<!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../support/logTest.sub.js?logs=[]"></script>
<script src='../support/alertAssert.sub.js?alerts=["PASS"]'></script>
<!-- enforcing policy:
img-src *; script-src 'self' 'unsafe-inline' 'unsafe-inline'; connect-src 'self';
<div id='t1'></div>
var t1img = document.createElement('img');
t1img.onload = function() { alert_assert('PASS'); }
t1img.onerror = function() { alert_assert('FAIL'); }
t1img.src = '../support/pass.png';
var t1div = document.getElementById('t1');
<div id="log"></div>
<script async defer src="../support/checkReport.sub.js?reportExists=false"></script>