Update web-platform-tests to revision 9a4d479ed1347eb9184abc70d628a6da2297657a

This commit is contained in:
WPT Sync Bot 2019-07-17 10:25:43 +00:00
parent b6cc0f60a9
commit effeb278b6
120 changed files with 3731 additions and 298 deletions

View file

@ -12,8 +12,31 @@
"webkitSpeechRecognitionError",
"webkitSpeechRecognitionEvent",
].forEach(name => {
test(function() {
test(() => {
assert_false(name in window);
}, name + " interface should not exist");
}, `${name} interface should not exist`);
});
test(() => {
if (!window.SpeechRecognition) {
// TODO(foolip): use `t.skip()` after
// https://github.com/web-platform-tests/rfcs/pull/16 is done.
return;
}
assert_false("serviceURI" in SpeechRecognition.prototype);
}, "SpeechRecognition's serviceURI attribute should not exist");
[
"interpretation",
"emma",
].forEach(name => {
test(() => {
if (!window.SpeechRecognitionEvent) {
// TODO(foolip): use `t.skip()` after
// https://github.com/web-platform-tests/rfcs/pull/16 is done.
return;
}
assert_false(name in SpeechRecognitionEvent.prototype);
}, `SpeechRecognitionEvent's ${name} attribute should not exist`);
});
</script>