This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 info it worked if it ends with ok | |
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', | |
1 verbose cli 'C:\\Users\\lucian.pacurar\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', | |
1 verbose cli 'i', | |
1 verbose cli '--verbose' ] | |
2 info using npm@5.5.1 | |
3 info using node@v6.11.4 | |
4 verbose npm-session aa8dc16a5f66e683 | |
5 silly install runPreinstallTopLevelLifecycles | |
6 silly preinstall insights-admin-ui@1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var util = require('util'); | |
describe("login modal", function () { | |
var ptor; | |
beforeEach(function() { | |
// get protractor instance | |
ptor = protractor.getInstance(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// An example configuration file. | |
exports.config = { | |
// The address of a running selenium server. | |
seleniumAddress: 'http://localhost:4444/wd/hub', | |
// Capabilities to be passed to the webdriver instance. | |
capabilities: { | |
'browserName': 'chrome' | |
}, | |
// URL of the app you want to test. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module("myApp").factory("Users", ["$http", "APIUrls", | |
function ($http, APIUrls) { | |
return { | |
getUsers: function () { | |
return $http.get(APIUrls.getUrl("users")); | |
}, | |
login: function (username, data) { | |
return $http.post(APIUrls.getUrl("userAuthentication", username), { | |
params: data | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module("myApp").config(["APIUrlsProvider", | |
function (APIUrlsProvider) { | |
APIUrlsProvider.hostname = "app.busymachines.com"; | |
APIUrlsProvider.apiVersion = 1; | |
APIUrlsProvider.port = 8080; | |
APIUrlsProvider.urls = { | |
"users": "/users", | |
"userAuthentication": function (username) { | |
return "/users/" + username + "/authentication"; | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module("myApp").provider("APIUrls", function () { | |
var that = this; // hold a reference to the current service provider | |
this.hostname = ""; | |
this.apiVersion = ""; | |
this.port = ""; | |
this.secure = false; | |
this.urls = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module("myApp").factory("Users", ["$http", "APIUrls", | |
function ($http, APIUrls) { | |
return { | |
getUsers: function () { | |
return $http.get(APIUrls.users); | |
} | |
} | |
} | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module("myApp").value("APIUrls", { | |
"users": "v1/users", | |
"employees": "v1/employees" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<img src="" /> | |
<iframe src="#"></iframe> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.load = function(app, params) { | |
var tab = Ti.UI.createTab({ | |
title: 'Tab title' | |
}); | |
app.activeTabGroup().add(tab); | |
app.lastAddedTab(tab); | |
require('modules/ui/Window').load(app, params); | |
}; |
NewerOlder