Revision 6b2fe34df13d646cab0a4b35dc33ee0202301851 authored by Brad Werth on 11 April 2018, 09:35:15 UTC, committed by moz-wptsync-bot on 11 April 2018, 16:39:02 UTC
The test currently stretches a 100 x 100 image to 150 pixels wide, which makes the shaded region of the png stretch to 75 pixels. None of the math in the rest of the test accounts for this stretching, and the test fails on all browsers. It seems clear that the intention was to use an unstretched, 100 pixel wide image, which makes the test pass. bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1404222 gecko-commit: 1c17b43d22afbd5e25f6d29c9168f2316b36103b gecko-integration-branch: central gecko-reviewers: dholbert
1 parent ccd2afa
body-empty-manual.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Notification.body (empty string)</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 src="common.js"></script>
<div id=passfail></div>
<script>
setup({ explicit_timeout: true })
if (hasNotificationPermission()) {
async_test(function (t) {
t.step(function () {
var notification = null,
notifications = [],
text = "This is the title: New e-mail received"
createPassFail("If a notification appears containing the text "
+ "\"" + text + "\""
+ " but containing no body text other than any boilerplate"
+ " content the browser may automatically add to all"
+ " notifications (for example, some browsers show the origin"
+ " in the notification)", t, closeNotifications, notifications)
notification = new Notification(text, {
body: ""
})
notifications.push(notification)
})
})
}
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...