Skip to content
Permalink
Browse files

Make a workaround for the test with about:blank onload

As jdm mentioned in #22660 (comment), the initial about:blank load event can be fired before the form navigation occurs.
  • Loading branch information...
CYBAI committed Jan 22, 2019
1 parent cb86d45 commit 3b9ab3460029b15fc0979883fa8523443851f713
"testharness"
],
"html/semantics/forms/form-submission-0/constructing-form-data-set.html": [
"914d61b07898867f2728c2d3cf9d7ad7bdd6aa1b",
"8dad6cdd01a43fa17694c67939e8e5a05ab529e2",
"testharness"
],
"html/semantics/forms/form-submission-0/contains.json": [
@@ -7,6 +7,3 @@

[The button cannot be setted if it is not a submitter.]
expected: FAIL

[Entries added to "formData" IDL attribute should be submitted.]
expected: FAIL
@@ -102,8 +102,12 @@
e.formData.append('h1', 'vh1');
});
let iframe = form.previousSibling;
iframe.onload = t1.step_func_done(() => {
iframe.onload = t1.step_func(() => {
// The initial about:blank load event can be fired before the form navigation occurs.
// See https://github.com/whatwg/html/issues/490 for more information.
if (iframe.contentWindow.location.href == "about:blank") { return; }
assert_true(iframe.contentWindow.location.search.indexOf('n1=v1&h1=vh1') != -1);
t1.done();
});
form.submit();
});

0 comments on commit 3b9ab34

Please sign in to comment.
You can’t perform that action at this time.