Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLImageElement / image-innerHTML.html
blob8ab8575df473fdb9880b29e0a052e95b78311d34
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../../resources/js-test.js"></script>
5 <script>
6 description("Tests that creating and setting the src of an image element inside an innerHTML actually loads the resource");
7 jsTestIsAsync = true;
9 var div = document.createElement('div');
10 var div2 = document.createElement('div');
11 var attemptedLoadDirect = false;
12 var attemptedLoadIndirect = false;
14 div.innerHTML = '<img src="../resources/abe.png" onload="attemptedLoadDirect = true;">';
15 div2.innerHTML = '<div><img src="../resources/abe.png" onload="attemptedLoadIndirect = true;"></div>';
16 document.body.onload = function() {
17 shouldBeTrue('attemptedLoadDirect');
18 shouldBeTrue('attemptedLoadIndirect');
19 finishJSTest();
21 </script>
22 </body>
23 </html>