Revision e7944b7ba52ab7a830ee4115bbcc188f406105a4 authored by Guido Urdaneta on 06 August 2018, 12:06:09 UTC, committed by Chrome-bot on 06 August 2018, 12:06:09 UTC
These tests check that the SpeechRecognition constructors returns an object with the expected properties on secure origins, and that it fails on insecure origins. Bug: 761371 Change-Id: Ied400facf474ad18f632c650b636bbbcf725b116
1 parent edb7245
interfaces.html
<!doctype html>
<meta charset=utf-8>
<title>WebIDL IDL tests</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/resources/WebIDLParser.js></script>
<script src=/resources/idlharness.js></script>
<div id=log></div>
<script>
"use strict";
var idlArray = new IdlArray();
function doTest(idl) {
idlArray.add_idls(idl);
idlArray.add_objects({
DOMException: ['new DOMException()',
'new DOMException("my message")',
'new DOMException("my message", "myName")'],
});
idlArray.test();
}
promise_test(function() {
return fetch("/interfaces/WebIDL.idl").then(response => response.text())
.then(doTest);
}, "Test driver");
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...