mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use t.step_func
and expected path checking
This commit is contained in:
parent
7270333487
commit
10442ae894
2 changed files with 6 additions and 6 deletions
|
@ -615868,7 +615868,7 @@
|
||||||
"support"
|
"support"
|
||||||
],
|
],
|
||||||
"html/semantics/forms/form-submission-target/form-target-iframe.html": [
|
"html/semantics/forms/form-submission-target/form-target-iframe.html": [
|
||||||
"2309ca67bb58f20f06a4c0b6ed162f2d0c80217f",
|
"f37bc33f6f93ca94940ffeb0066945eb9aa020ee",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"html/semantics/forms/historical.html": [
|
"html/semantics/forms/historical.html": [
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<script src="/resources/testharnessreport.js"></script>
|
<script src="/resources/testharnessreport.js"></script>
|
||||||
<script>
|
<script>
|
||||||
async_test(function(t) {
|
async_test(function(t) {
|
||||||
window.addEventListener("load", function() {
|
window.addEventListener("load", t.step_func(function() {
|
||||||
var frame = document.createElement("iframe");
|
var frame = document.createElement("iframe");
|
||||||
frame.name = "frame";
|
frame.name = "frame";
|
||||||
document.documentElement.appendChild(frame);
|
document.documentElement.appendChild(frame);
|
||||||
|
@ -17,13 +17,13 @@ async_test(function(t) {
|
||||||
form.appendChild(input);
|
form.appendChild(input);
|
||||||
document.documentElement.appendChild(form);
|
document.documentElement.appendChild(form);
|
||||||
form.submit();
|
form.submit();
|
||||||
frame.addEventListener("load", function() {
|
frame.addEventListener("load", t.step_func(function() {
|
||||||
if (frame.contentWindow.location.href != "about:blank") {
|
if (frame.contentWindow.location.href.includes("form-target-iframe-helper.py")) {
|
||||||
assert_equals(frame.contentWindow.document.body.textContent, "OK");
|
assert_equals(frame.contentWindow.document.body.textContent, "OK");
|
||||||
t.done();
|
t.done();
|
||||||
}
|
}
|
||||||
});
|
}));
|
||||||
});
|
}));
|
||||||
}, "Form targetted at iframe");
|
}, "Form targetted at iframe");
|
||||||
</script>
|
</script>
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue