This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 70
70
<hr/>
71
71
<div class="animate-switch-container"
72
72
ng-switch on="selection">
73
- <div class="animate-switch" ng-switch-when="settings">Settings Div</div>
73
+ <div class="animate-switch" ng-switch-when="settings|options" ng-switch-when-separator="| ">Settings Div</div>
74
74
<div class="animate-switch" ng-switch-when="home">Home Span</div>
75
75
<div class="animate-switch" ng-switch-default>default</div>
76
76
</div>
79
79
<file name="script.js">
80
80
angular.module('switchExample', ['ngAnimate'])
81
81
.controller('ExampleController', ['$scope', function($scope) {
82
- $scope.items = ['settings', 'home', 'other'];
82
+ $scope.items = ['settings', 'home', 'options', ' other'];
83
83
$scope.selection = $scope.items[0];
84
84
}]);
85
85
</file>
126
126
select.all(by.css('option')).get(1).click();
127
127
expect(switchElem.getText()).toMatch(/Home Span/);
128
128
});
129
- it('should select default ', function() {
129
+ it('should change to settings via "options" ', function() {
130
130
select.all(by.css('option')).get(2).click();
131
+ expect(switchElem.getText()).toMatch(/Settings Div/);
132
+ });
133
+ it('should select default', function() {
134
+ select.all(by.css('option')).get(3).click();
131
135
expect(switchElem.getText()).toMatch(/default/);
132
136
});
133
137
</file>
You can’t perform that action at this time.
0 commit comments