Commit 51223959 authored by yurys@chromium.org's avatar yurys@chromium.org

2011-01-20 Yury Semikhatsky <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Make fast/events/window-onerror2.html throw exception in deterministic order
        https://bugs.webkit.org/show_bug.cgi?id=52813

        * fast/events/window-onerror2-expected.txt:
        * fast/events/window-onerror2.html: call setTimeout from onload handler to make sure exception
        in the onload handler will be processed before the one in the setTimeout callback
        * platform/chromium/fast/events/window-onerror2-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76244 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 64ea938b
2011-01-20 Yury Semikhatsky <yurys@chromium.org>
Reviewed by Pavel Feldman.
Make fast/events/window-onerror2.html throw exception in deterministic order
https://bugs.webkit.org/show_bug.cgi?id=52813
* fast/events/window-onerror2-expected.txt:
* fast/events/window-onerror2.html: call setTimeout from onload handler to make sure exception
in the onload handler will be processed before the one in the setTimeout callback
* platform/chromium/fast/events/window-onerror2-expected.txt:
2011-01-20 Philippe Normand <pnormand@igalia.com>
Unreviewed, new GTK svg test baselines as follow-up of r76236.
......
Test that uncaught exceptions will be reported to the window.onerror handler. Bug 8519.
Main frame window.onerror: Error: Inline script exception at window-onerror2.html:35
Main frame window.onerror: Error: Inline script exception at window-onerror2.html:34
Main frame window.onerror: Exception in onload at undefined:0
Main frame window.onerror: Error: Exception in setTimeout at window-onerror2.html:29
<html>
<body onload="throw 'Exception in onload';">
<body onload="setTimeout(delayedThrowException, 0); throw 'Exception in onload';">
<p>Test that uncaught exceptions will be reported to the window.onerror handler. <a href="https://bugs.webkit.org/show_bug.cgi?id=8519">Bug 8519</a>.</p>
<div id="result"></div>
<script>
......@@ -28,7 +28,6 @@ function delayedThrowException()
{
throw new Error("Exception in setTimeout");
}
setTimeout(delayedThrowException, 0);
function throwException()
{
......
Test that uncaught exceptions will be reported to the window.onerror handler. Bug 8519.
Main frame window.onerror: Uncaught Error: Inline script exception at window-onerror2.html:35
Main frame window.onerror: Uncaught Error: Inline script exception at window-onerror2.html:34
Main frame window.onerror: Uncaught Exception in onload at window-onerror2.html:2
Main frame window.onerror: Uncaught Error: Exception in setTimeout at window-onerror2.html:29
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment