Media Capture Task Force F2F, TPAC 2014
Dominique Hazaƫl-Massieux
assert*
functions to determine if browser running the page matches specidlharness.js
to check objects matches their WebIDL definition<!DOCTYPE html>
<meta charset="utf-8">
<title>Test title</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
var t = async_test("Testing an async operation");
navigator.getUserMedia(
{audio: true},
t.step_func(function () {
t.assert_true(true, "Success!");
t.done();
}),
t.step_func(function () {
t.assert_unreached("Failure");
t.done();
})
);
</script>