blob: b682b8e27746d091dc87cd85bc6445b1d7b6e0bc [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<!-- Generate token with the command:
generate_token.py http://127.0.0.1:8000 Badging --expire-timestamp=2000000000
-->
<meta http-equiv="origin-trial" content="AjMyKQIep8aE/3H2rfLKB0UEt0aGtfdVGult8LN5tjpYZnkhbaGEm8KirzODRym/5KnVfv33DaXex0tUZoDQFQ0AAABPeyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIiwgImZlYXR1cmUiOiAiQmFkZ2luZyIsICJleHBpcnkiOiAyMDAwMDAwMDAwfQ==" />
<title>Badging API - interfaces exposed by origin trial</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/origin-trials-helper.js"></script>
<script>
test(t => {
assert_own_property(window, 'Badge', 'Badge is not defined on the window');
assert_own_property(window.Badge, 'set', 'Set is not defined on the Badge API');
assert_own_property(window.Badge, 'clear', 'Clear is not defined on the Badge API');
}, 'Badge API interfaces and properties in Origin-Trial enabled document.');
</script>