Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / tracing / anonymous-image-object.html
blob47b299a5ab30f400048b272a60d61d1966860daa
1 <html>
2 <head>
3 <style>
4 div.marker::before {
5 content: url(resources/test.bmp);
7 </style>
8 <script src="../../http/tests/inspector/inspector-test.js"></script>
9 <script src="../../http/tests/inspector/timeline-test.js"></script>
10 <script>
12 function doActions(callback)
14 document.getElementById("marker").classList.add("marker");
15 var img = document.createElement("img");
16 img.src = "resources/test.bmp";
17 img.addEventListener("load", onImageLoaded, false);
18 function onImageLoaded()
20 testRunner.layoutAndPaintAsyncThen(callback);
24 function test()
26 InspectorTest.invokeAsyncWithTimeline("doActions", onRecordingDone);
28 function onRecordingDone()
30 InspectorTest.addResult("DONE");
31 InspectorTest.completeTest();
34 </script>
35 </head>
37 <body onload="runTest()">
38 <p>
39 Tests the Timeline instrumentation does not crash the renderer upon encountering an anonymous image render object
40 </p>
41 <div id="marker"></div>
42 </body>
43 </html>