зеркало из https://github.com/mozilla/gecko-dev.git
34 строки
781 B
HTML
34 строки
781 B
HTML
<!--
|
|
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();
|
|
var notification = new Notification("");
|
|
var promise = Notification.get();
|
|
promise.then(
|
|
function onSuccess() {
|
|
ok(true, "No crash!");
|
|
notification.close();
|
|
SimpleTest.finish();
|
|
},
|
|
function onFailure() {
|
|
ok(false, "Should not get an error in promise callback");
|
|
notification.close();
|
|
}
|
|
);
|
|
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|