mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
15 lines
522 B
HTML
15 lines
522 B
HTML
<!doctype html>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/resources/testdriver.js"></script>
|
|
<script src="/resources/testdriver-vendor.js"></script>
|
|
<body>
|
|
<script>
|
|
async_test(t => {
|
|
test_driver.bless('speechSynthesis.speak', t.step_func(() => {
|
|
const utter = new SpeechSynthesisUtterance('1');
|
|
utter.onend = t.step_func_done();
|
|
speechSynthesis.speak(utter);
|
|
}));
|
|
}, 'speechSynthesis.speak requires user activation');
|
|
</script>
|