spec: add test for basic authentication

This commit is contained in:
deepak1556 2015-05-04 20:44:36 +05:30
parent 06834b723b
commit 2d190b9952
3 changed files with 42 additions and 0 deletions

17
spec/fixtures/pages/basic-auth.html vendored Normal file
View file

@ -0,0 +1,17 @@
<html>
<body>
<script src='http://127.0.0.1:62342/jquery.js'></script>
<script type="text/javascript" charset="utf-8">
$.ajax({
type: "GET",
url: "http://127.0.0.1:62342",
headers: {
"Authorization": "Basic " + btoa("test:test")
},
success: function (result){
require('ipc').send('console-message', result);
}
});
</script>
</body>
</html>