blob: 24e6a1b0a528b19bf63c29520f24e636d9ca8eda [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>Tests the values that the Badge API doesn't support.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="file:///gen/layout_test_data/mojo/public/js/mojo_bindings.js"></script>
<script src="file:///gen/third_party/blink/public/platform/modules/badging/badging.mojom.js"></script>
<script src="resources/mock-badge-service.js"></script>
</head>
<body>
<script>
badge_test(() => { Badge.set(-1); }, 'setInteger', 'TypeError');
badge_test(() => { Badge.set("Foo"); }, 'setInteger', 'TypeError');
</script>
</body>
</html>