swh:1:snp:b37d435721bbd450624165f334724e3585346499
Raw File
Tip revision: 899931dc1b89f5fd468548cd7dd25303ba0bcda3 authored by Bon-Yong Lee on 12 April 2014, 06:47:42 UTC
Test that the attached callback is only called in a browsing context.
Tip revision: 899931d
notification-dir-ltr-manual.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Web Notifications Test: notification - dir (dir attribute set to "ltr")</title>
<link rel="author" title="Intel" href="http://www.intel.com/">
<link rel="author" title="Xin Liu" href="mailto:xinx.liu@intel.com">
<link rel="help" title="4.1 Direction" href="http://www.w3.org/TR/notifications/#direction-0">
<meta name="flags" content="interact">
<meta name="assert" content="The dir attribute set 'ltr', then the notification's direction is the left edge.">
<body>
  <p>Test passes if a notification popups and the notification's direction is the left edge.</p>
  <script>
    var notification = new Notification("New Email Received", {
      body: "Room 101",
      dir: "ltr"
    });
  </script>
</body>

back to top