mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 661256 - Port patch from bug 660200 to content/html/content/test/test_bug657938.html. r=mounir
This commit is contained in:
parent
07e5c05d48
commit
8110f43bb5
@ -12,7 +12,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=657938
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=657938">Mozilla Bug 657938</a>
|
||||
<p id="display"></p>
|
||||
<iframe name="submit_frame" onload="onFormSubmission();" style="visibility: hidden;"></iframe>
|
||||
<iframe name="submit_frame" style="visibility: hidden;"></iframe>
|
||||
<div id="content" style="visibility: hidden;">
|
||||
<form id='f' method='get' target='submit_frame' action='foo'>
|
||||
<meter id='m' value=0.5></meter>
|
||||
@ -321,24 +321,24 @@ function checkNotResetableAndFormSubmission(aElement)
|
||||
aElement.value = 42.0;
|
||||
aElement.max = 100.0;
|
||||
|
||||
// This is going to call onFormSubmission().
|
||||
document.getElementsByName('submit_frame')[0].addEventListener("load", function() {
|
||||
document.getElementsByName('submit_frame')[0].removeEventListener("load", arguments.callee, false);
|
||||
|
||||
/**
|
||||
* All elements values have been set just before the submission.
|
||||
* The input element value should be in the submit url but the meter
|
||||
* element value should not appear.
|
||||
*/
|
||||
is(frames['submit_frame'].location.href,
|
||||
'http://mochi.test:8888/tests/content/html/content/test/foo?a=tulip',
|
||||
"The meter element value should not be submitted");
|
||||
|
||||
checkNotResetable();
|
||||
}, false);
|
||||
|
||||
form.submit();
|
||||
}
|
||||
|
||||
function onFormSubmission()
|
||||
{
|
||||
/**
|
||||
* All elements values have been set just before the submission.
|
||||
* The input element value should be in the submit url but the meter
|
||||
* element value should not appear.
|
||||
*/
|
||||
is(frames['submit_frame'].location.href,
|
||||
'http://mochi.test:8888/tests/content/html/content/test/foo?a=tulip',
|
||||
"The meter element value should not be submitted");
|
||||
|
||||
checkNotResetable();
|
||||
}
|
||||
|
||||
function checkNotResetable()
|
||||
{
|
||||
// Try to reset the form.
|
||||
|
Loading…
Reference in New Issue
Block a user