Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #14944 from kumarrishav/issue-944284
Browse files Browse the repository at this point in the history
Bug 944284 [UITEST] add dial number activity , styling issue fixed- bug ..., r=gasolin
  • Loading branch information
gasolin committed Dec 25, 2013
2 parents 26c843f + 1f148f2 commit 8f6489e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions test_apps/uitest/index.html
Expand Up @@ -46,6 +46,7 @@
<li><a href="#test=API/browseractivities">Browser Activities</a></li>
<li><a href="#test=API/contacts">Contacts</a></li>
<li><a href="#test=API/csp">CSP Warning</a></li>
<li><a href="#test=API/dialnumber">Dial Number</a></li>
<li><a href="#test=API/geolocation">Geolocation</a></li>
<li><a href="#test=API/getusermedia">getUserMedia</a></li>
<li><a href="#test=API/httpauthentication">HTTP Auth</a></li>
Expand Down
11 changes: 11 additions & 0 deletions test_apps/uitest/js/API/dialnumber.js
@@ -0,0 +1,11 @@
var dial = document.querySelector('#dial');
if (dial) {
dial.onclick = function() {
var call = new MozActivity({
name: 'dial',
data: {
number: '+46777888999'
}
});
};
}
15 changes: 15 additions & 0 deletions test_apps/uitest/tests_html/API/dialnumber.html
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<meta charset="utf-8">
<title>Dial Number test</title>
<script defer src="../../js/API/dialnumber.js"></script>
<link rel="stylesheet" type="text/css" href="../../style/API.css">
</head>
<body>
<h1>Dial Number Test</h1>
<button id="dial">Dial Number</button>
</body>
</html>

0 comments on commit 8f6489e

Please sign in to comment.