mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
Update web-platform-tests to revision 9a4d479ed1347eb9184abc70d628a6da2297657a
This commit is contained in:
parent
b6cc0f60a9
commit
effeb278b6
120 changed files with 3731 additions and 298 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue