blob: a10fab266a2cf56adcba1ff4d6b383e1c17182a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
test(function() {
assert_false(new BeforeInstallPromptEvent('eventType').bubbles, 'bubbles');
assert_true(new BeforeInstallPromptEvent('eventType').cancelable, 'cancelable');
}, 'No initializer passed');
test(function() {
var event = new BeforeInstallPromptEvent('eventType', { platforms: ['a'] });
assert_array_equals(['a'], event.platforms, 'platforms');
}, 'paltforms is passed');
</script>
|