tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

icon-basic-manual.https.html (1006B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>Notification.icon (basic)</title>
      4 <link rel="author" title="Intel" href="http://www.intel.com/">
      5 <link rel="author" title="Xin Liu" href="mailto:xinx.liu@intel.com">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script src="common.js"></script>
      9 <div id=passfail></div>
     10 <script>
     11 setup({ explicit_timeout: true })
     12 if (hasNotificationPermission()) {
     13    async_test(function (t) {
     14        t.step(function () {
     15            var notification = null,
     16                notifications = []
     17            createPassFail("If a notification appears containing"
     18                + " an image of a cat",
     19                t, closeNotifications, notifications)
     20            notification = new Notification("New Email Received", {
     21                body: "Room 101",
     22                icon: "http://test.csswg.org/source/support/cat.png"
     23            })
     24            notifications.push(notification)
     25        })
     26    })
     27 }
     28 </script>