Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / nested-svg-load-events.svg
blob58548ae7d36ac4eaf7121aabbc5621ad7864960e
1 <svg id="outersvg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="reportLoadEvent(this);runTest();">
2 <text y="150" x="20" id="console" onload="reportLoadEvent(this)"/>
3 <script>
4 <![CDATA[
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 var results = new Array();
10 function reportLoadEvent(el) {
11 results.push(el.id);
14 function runTest()
16 var test = document.getElementById("console");
17 if ( results.length != 3 ||
18 results[0] != "image" ||
19 results[1] != "innersvg" ||
20 results[2] != "outersvg") {
21 test.textContent = "Failed - " + results.join(", ");
22 } else {
23 test.textContent = "Passed";
26 ]]>
27 </script>
28 <svg id="innersvg" onload="reportLoadEvent(this)">
29 <image id="image" onload="reportLoadEvent(this)" width="100" height="100" xlink:href="resources/green-checker.png" />
30 <text y="130" x="20">This tests load event dispatching on nested svg elements.</text>
31 </svg>
32 </svg>