blob: ef6b91e9211f58f53f22d0a7f13d30b9601eb953 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!DOCTYPE html>
<title>Gamepad API test</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/utils.js"></script>
<script src="resources/utils.js"></script>
<body>
<script>
promise_test(async () => {
const key = token();
attachFencedFrame(generateURL('resources/gamepad-inner.html', [key]));
const result = await nextValueFromServer(key);
assert_equals(
result,
'SecurityError',
'getGamepads should throw an error in a fenced frame');
}, 'Gamepads information should not be read in the fenced frame.');
</script>
</body>
|