mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 314de955a5102650136404f6439f22f8d838e0f4
This commit is contained in:
parent
521748c01e
commit
6b4094e2a4
133 changed files with 1609 additions and 628 deletions
|
@ -8,12 +8,13 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<iframe id="testframe" src="form-data-set-usv-form.html"></iframe>
|
||||
<iframe id="testframe2" src="form-data-set-usv-form.html"></iframe>
|
||||
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
async_test(t => {
|
||||
window.onload = t.step_func(() => {
|
||||
window.addEventListener("load", t.step_func(() => {
|
||||
const iframe = document.querySelector("#testframe");
|
||||
const form = iframe.contentWindow.document.querySelector("form");
|
||||
|
||||
|
@ -35,6 +36,17 @@ async_test(t => {
|
|||
});
|
||||
|
||||
form.submit();
|
||||
});
|
||||
});
|
||||
}));
|
||||
}, 'Strings from form controls should be converted to Unicode scalar values in form submission');
|
||||
|
||||
async_test(t => {
|
||||
window.addEventListener("load", t.step_func_done(() => {
|
||||
const iframe = document.querySelector("#testframe2");
|
||||
const formData = new FormData(iframe.contentWindow.document.querySelector("form"));
|
||||
assert_equals(formData.get("input1\uFFFD"), "input1\uFFFD");
|
||||
assert_equals(formData.get("input2\uFFFD"), "input2\uFFFD");
|
||||
assert_equals(formData.get("input3\uFFFD"), "input3\uFFFD");
|
||||
assert_equals(formData.get("input4\uFFFD"), "input4\uFFFD");
|
||||
}));
|
||||
}, 'Strings from form controls should be converted to Unicode scalar values in FormData');
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue