Commit 5c89e9f1 authored by darin's avatar darin

- changed this test to a plain-text one and added text explaining what it tests

        * fast/forms/input-named-action-overrides-action-attribute.html: Added explanation text,
        got rid of some incorrect HTML syntax, added a call to dumpAsText(), and used a paragraph
        element instead of a span element for the result.
        * fast/forms/input-named-action-overrides-action-attribute-expected.txt: Updated.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15690 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 2b76a137
2006-07-29 Darin Adler <darin@apple.com>
- changed this test to a plain-text one and added text explaining what it tests
* fast/forms/input-named-action-overrides-action-attribute.html: Added explanation text,
got rid of some incorrect HTML syntax, added a call to dumpAsText(), and used a paragraph
element instead of a span element for the result.
* fast/forms/input-named-action-overrides-action-attribute-expected.txt: Updated.
2006-07-29 Andrew Wellington <proton@wiretapped.net>
Reviewed by Darin.
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
RenderBlock {HTML} at (0,0) size 800x600
RenderBody {BODY} at (8,8) size 784x584
RenderBlock {FORM} at (0,0) size 784x0
RenderBlock (anonymous) at (0,0) size 784x18
RenderInline {SPAN} at (0,0) size 74x18
RenderText {#text} at (0,0) size 74x18
text run at (0,0) width 74: "Test Passed"
This tests that access to a form's element named "action" overrides the "action" property on a form element (from the HTML DOM).
If the test passes, the next paragraph will say "Test Passed".
Test Passed
<body onload="foo()"/>
<body onload="test()">
<form action="/">
<input type=hidden name="action" value="">
</form>
<span id="result"/>
<p>This tests that access to a form's element named "action" overrides the "action" property on a form element (from the HTML DOM).</p>
<p>If the test passes, the next paragraph will say "Test Passed".</p>
<p id="result"></p>
<script>
function foo() {
document.forms[0].action.value = "Passed";
document.getElementById("result").innerText = "Test " + (document.forms[0].action.value ? document.forms[0].action.value : "Failed");
}
function test() {
if (window.layoutTestController)
layoutTestController.dumpAsText();
document.forms[0].action.value = "Passed";
document.getElementById("result").innerText = "Test " + (document.forms[0].action.value ? document.forms[0].action.value : "Failed");
}
</script>
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