Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / timer-clear-interval-in-handler-and-generate-error.html
blob23180e6f9ed6e2ccb19326803c9e9c8c0c21a19d
1 <script>
2 if (window.testRunner) {
3 testRunner.dumpAsText()
4 testRunner.waitUntilDone();
7 function log(msg) {
8 var elmt = document.createElement("div");
9 elmt.textContent = msg;
10 document.body.appendChild(msg);
13 var timer = setInterval(function() {
14 clearInterval(timer);
15 setTimeout(function() {
16 if (window.testRunner)
17 testRunner.notifyDone();
18 }, 10);
20 // This function tries to appendChild to body, but body doesn't exist
21 // yet, generating an error. This test passes if we don't crash when
22 // trying to add the error message to the console.
23 log("PASS");
24 }, 10);
25 </script>