blob: a10fab266a2cf56adcba1ff4d6b383e1c17182a6 [file] [log] [blame]
<!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>