Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / onload-fires-twice.html
blob057e7a2a665a284938fef51c55826ccb88ca7bd1
1 <html>
2 <head>
3 <!-- any unknown element in HEAD will trigger creation of a BODY node -->
4 <anytag>
6 <script type="text/javascript">
7 if (window.testRunner)
8 testRunner.dumpAsText()
10 var count = 2;
11 function testDoubleLoad() {
12 --count;
13 var result = document.getElementById("result");
14 if (count == 1)
15 result.innerHTML = "Test passed.";
16 else
17 result.innerHTML = "Test failed (fired more than once).";
19 </script>
20 </head>
21 <body onload="testDoubleLoad()">
22 <p>Makes sure an inline "load" event does not fire twice. This may occur if
23 an inline event listener is not removed prior to being re-added in the case
24 of multiple body nodes in the document. You should see "Test passed" below.
25 </p>
26 <div id='result'>Test failed (never ran).</div>
27 </body>
28 </html>