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
Raw File
WorkerLocation_port.htm
<!DOCTYPE html>
<title> WorkerLocation URL decomposition IDL attribute: port </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(function(t) {
  var worker = new Worker('./support/WorkerLocation.js');
  worker.onmessage = t.step_func_done(function(e) {
    assert_equals(e.data.port, location.port);
  });
});
</script>
back to top