Update web-platform-tests to revision 3cb5a99e5521936fb8819de8aaba806050b84184

This commit is contained in:
WPT Sync Bot 2019-06-23 10:23:36 +00:00
parent 1d2c0ba0bc
commit c700482629
204 changed files with 5112 additions and 1445 deletions

View file

@ -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>