Bug 660200 - Fix intermittent failure in content/html/content/test/test_bug514437.html. r=ehsan

This commit is contained in:
Mounir Lamouri 2011-05-30 17:50:41 +02:00
Родитель ac62a8d689
Коммит 6109a3331e
1 изменённых файлов: 16 добавлений и 16 удалений

Просмотреть файл

@ -15,7 +15,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=633913
and
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=633913">Mozilla Bug 633913</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'>
<progress id='p'></progress>
@ -255,12 +255,9 @@ function checkNotResetableAndFormSubmission(aElement)
aElement.value = 42.0;
aElement.max = 100.0;
// This is going to call onFormSubmission().
form.submit();
}
document.getElementsByName('submit_frame')[0].addEventListener("load", function() {
document.getElementsByName('submit_frame')[0].removeEventListener("load", arguments.callee, false);
function onFormSubmission()
{
/**
* All elements values have been set just before the submission.
* The input element value should be in the submit url but the progress
@ -271,6 +268,9 @@ function onFormSubmission()
"The progress element value should not be submitted");
checkNotResetable();
}, false);
form.submit();
}
function checkNotResetable()