mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
This allows the Notification object to be created in javascript without any additional functionalities. It passes two wpt tests which require a call to the notification constructor with no arguments. https://wpt.live/notifications/constructor-basic.https.html https://wpt.live/notifications/constructor-invalid.https.html
15 lines
508 B
HTML
15 lines
508 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>Notification constructor (invalid)</title>
|
|
<link rel="author" title="Intel" href="http://www.intel.com/">
|
|
<link rel="author" title="Xin Liu" href="mailto:xinx.liu@intel.com">
|
|
<script src="../resources/testharness.js"></script>
|
|
<script src="../resources/testharnessreport.js"></script>
|
|
<script>
|
|
test(function() {
|
|
assert_throws_js(TypeError, function() {
|
|
new Notification()
|
|
})
|
|
}, "Called the notification constructor with no arguments.")
|
|
</script>
|