dom-interactive-image-document.html (1041B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8" /> 5 <title>Test domInteractive on image document.</title> 6 <link rel="author" title="Google" href="http://www.google.com/" /> 7 <link rel="help" href="https://html.spec.whatwg.org/multipage/browsing-the-web.html#read-media"/> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 </head> 11 <script> 12 const t = async_test("Test domInteractive on image document"); 13 function frameLoaded() { 14 const timing = document.querySelector("iframe").contentWindow.performance.timing; 15 assert_greater_than(timing.domInteractive, 0, 16 "Expect domInteractive to be positive value."); 17 t.done(); 18 } 19 </script> 20 <body> 21 <h1>Description</h1> 22 <p>This tests that a image document has positive-value domInteractive.</p> 23 <iframe src="../images/smiley.png" onload="frameLoaded()"></iframe> 24 </body> 25 </html>