mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 931307 - Remove "!aTitle.IsEmpty()" assertion. r=mhenretty
This commit is contained in:
parent
72deb74430
commit
8c5984d4c6
@ -61,7 +61,6 @@ public:
|
||||
JSContext* aCx)
|
||||
{
|
||||
MOZ_ASSERT(!aID.IsEmpty());
|
||||
MOZ_ASSERT(!aTitle.IsEmpty());
|
||||
|
||||
NotificationOptions options;
|
||||
options.mDir = Notification::StringToDirection(nsString(aDir));
|
||||
|
@ -5,3 +5,4 @@ support-files =
|
||||
|
||||
[test_notification_basics.html]
|
||||
[test_notification_storage.html]
|
||||
[test_bug931307.html]
|
||||
|
31
dom/tests/mochitest/notification/test_bug931307.html
Normal file
31
dom/tests/mochitest/notification/test_bug931307.html
Normal file
@ -0,0 +1,31 @@
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 931307</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<pre id="test">
|
||||
<script type="application/javascript"><!--
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
new Notification("");
|
||||
var promise = Notification.get();
|
||||
promise.then(
|
||||
function onSuccess() {
|
||||
ok(true, "No crash!");
|
||||
SimpleTest.finish();
|
||||
},
|
||||
function onFailure() {
|
||||
ok(false, "Should not get an error in promise callback");
|
||||
}
|
||||
);
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user