mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Update web-platform-tests to revision 3cb5a99e5521936fb8819de8aaba806050b84184
This commit is contained in:
parent
1d2c0ba0bc
commit
c700482629
204 changed files with 5112 additions and 1445 deletions
|
@ -82,16 +82,7 @@ const invalid_signals = [
|
|||
Symbol(),
|
||||
() => {},
|
||||
self
|
||||
]
|
||||
|
||||
const non_strings = [
|
||||
123,
|
||||
{},
|
||||
true,
|
||||
Symbol(),
|
||||
() => {},
|
||||
self
|
||||
]
|
||||
];
|
||||
|
||||
promise_test(t => {
|
||||
const writer = new NFCWriter();
|
||||
|
@ -220,17 +211,4 @@ promise_test(() => {
|
|||
});
|
||||
}, 'Test that WebNFC API is not accessible from iframe context.');
|
||||
|
||||
promise_test(t => {
|
||||
const writer = new NFCWriter();
|
||||
const promises = [];
|
||||
non_strings.forEach(invalid_url => {
|
||||
promises.push(
|
||||
promise_rejects(t, new TypeError(), writer.push({
|
||||
url: invalid_url,
|
||||
records: [{ recordType: "text", data: 'Hello World' }]
|
||||
})));
|
||||
});
|
||||
return Promise.all(promises);
|
||||
}, "Test that promise is rejected with TypeError if NDEFMessageSource contains non-string url.");
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue