mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
31 lines
732 B
HTML
31 lines
732 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>Test for WebSMS</title>
|
|
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
</head>
|
|
<body>
|
|
<p id="display"></p>
|
|
<div id="content" style="display: none">
|
|
</div>
|
|
<pre id="test">
|
|
<script type="application/javascript">
|
|
|
|
/** Test for WebSMS **/
|
|
|
|
function checkInterface(aInterface) {
|
|
ok(!(aInterface in window), aInterface + " should be prefixed");
|
|
ok(("Moz" + aInterface) in window, aInterface + " should be prefixed");
|
|
}
|
|
|
|
ok('mozSms' in navigator, "navigator.mozSms should exist");
|
|
|
|
checkInterface("SmsManager");
|
|
checkInterface("NavigatorSms");
|
|
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|