mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
http: add PROPOFIND method test case
This commit is contained in:
@@ -106,3 +106,17 @@
|
||||
testing.expectEqual(req5, target);
|
||||
})
|
||||
</script>
|
||||
|
||||
<script id=xhr6 type=module>
|
||||
const req5 = new XMLHttpRequest()
|
||||
const promise5 = new Promise((resolve) => {
|
||||
req5.onload = resolve;
|
||||
req5.open('PROPFIND', 'http://127.0.0.1:9589/xhr')
|
||||
req5.send('foo')
|
||||
});
|
||||
|
||||
testing.async(promise5, () => {
|
||||
testing.expectEqual(200, req5.status);
|
||||
testing.expectEqual('OK', req5.statusText);
|
||||
testing.expectEqual(true, req5.responseText.length > 65);
|
||||
});
|
||||
|
||||
@@ -130,3 +130,10 @@
|
||||
testing.expectEqual("you", request2.headers.get("target"));
|
||||
}
|
||||
</script>
|
||||
|
||||
<script id=propfind>
|
||||
{
|
||||
const req = new Request('https://example.com/api', { method: 'propfind' });
|
||||
testing.expectEqual('PROPFIND', req.method);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user