blob: c78314c599c5587a7b1b0ff9405912cb4e29a993 [file] [log] [blame]
<!DOCTYPE html>
<p id="description"></p>
<div id="console"></div>
<script src="../../../../resources/js-test.js"></script>
<script src="resources/send-form-data-common.js"></script>
<script>
description("Test for sending FormData via XMLHttpRequest.");
function runTest()
{
debug("Sending FormData containing a null value:");
testSendingFormData([
{ 'type': 'string', 'name': 'name', 'value': null }
]);
debug("Sending FormData containing a null field name:");
testSendingFormData([
{ 'type': 'string', 'name': null, 'value': 'value' }
]);
}
if (window.eventSender) {
runTest();
formDataTestingCleanup();
} else {
testFailed("This test is not interactive, please run using DumpRenderTree");
}
</script>
</body>
</html>