Commit 852f8c5c authored by pam@chromium.org's avatar pam@chromium.org

2008-12-05 Pamela Greene <pam@chromium.org>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=22604
        Add test for onload handler named 'onload'.

        * fast/events/onload-name-collision-expected.txt: Added.
        * fast/events/onload-name-collision.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39052 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8e5abac5
2008-12-05 Pamela Greene <pam@chromium.org>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=22604
Add test for onload handler named 'onload'.
* fast/events/onload-name-collision-expected.txt: Added.
* fast/events/onload-name-collision.html: Added.
2008-12-05 Pamela Greene <pam@chromium.org>
Reviewed by Darin Adler.
......
This tests that an onload handler named 'onload' is called properly. You should see "PASS" below.
PASS: onload function gets called.
<html>
<body onload="onload()">
This tests that an onload handler named 'onload' is called properly.
You should see "PASS" below.
<div id='result'>FAIL: this text should be replaced on success.<div>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
function onload() {
var result = document.getElementById('result');
result.innerHTML='PASS: onload function gets called.';
}
</script>
</body>
</html>
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