"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "horizon/static/framework/widgets/panel/hz-resource-panel.controller.spec.js" between
horizon-22.1.0.tar.gz and horizon-23.0.0.tar.gz

About: OpenStack Horizon (Optional Service: Dashboard) provides a web-based self-service portal to interact with underlying OpenStack services, such as launching an instance, assigning IP addresses and configuring access controls.
The "Zed" series (latest release).

hz-resource-panel.controller.spec.js  (horizon-22.1.0):hz-resource-panel.controller.spec.js  (horizon-23.0.0)
skipping to change at line 42 skipping to change at line 42
beforeEach(inject(function($controller) { beforeEach(inject(function($controller) {
var registry = { var registry = {
getResourceType: angular.noop getResourceType: angular.noop
}; };
spyOn(registry, 'getResourceType').and.returnValue(resourceType); spyOn(registry, 'getResourceType').and.returnValue(resourceType);
ctrl = $controller('horizon.framework.widgets.panel.HzResourcePanelControl ler', { ctrl = $controller('horizon.framework.widgets.panel.HzResourcePanelControl ler', {
'horizon.framework.conf.resource-type-registry.service': registry, 'horizon.framework.conf.resource-type-registry.service': registry,
tableResourceType: 'OS::Test::Example'}); tableResourceType: 'OS::Test::Example'});
ctrl.$onInit();
})); }));
it('exists', function() { it('exists', function() {
expect(ctrl).toBeDefined(); expect(ctrl).toBeDefined();
}); });
it('sets resourceType to the resource type', function() { it('sets resourceType to the resource type', function() {
expect(ctrl.resourceType).toBe(resourceType); expect(ctrl.resourceType).toBe(resourceType);
}); });
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)