File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 44 padding-top : 20px ;
55}
66
7+ .phones {
8+ list-style : none;
9+ }
10+
11+ .thumb {
12+ float : left;
13+ margin : -0.5em 1em 1.5em 0 ;
14+ padding-bottom : 1em ;
15+ height : 100px ;
16+ width : 100px ;
17+ }
18+
19+ .phones li {
20+ clear : both;
21+ height : 115px ;
22+ padding-top : 15px ;
23+ }
Original file line number Diff line number Diff line change 2727 <!--Body content-->
2828
2929 < ul class ="phones ">
30- < li ng-repeat ="phone in phones | filter:query | orderBy:orderProp ">
31- < span > {{phone.name}}</ span >
30+ < li ng-repeat ="phone in phones | filter:query | orderBy:orderProp " class ="thumbnail ">
31+ < a href ="#/phones/{{phone.id}} " class ="thumb "> < img ng-src ="{{phone.imageUrl}} "> </ a >
32+ < a href ="#/phones/{{phone.id}} "> {{phone.name}}</ a >
3233 < p > {{phone.snippet}}</ p >
3334 </ li >
3435 </ ul >
Original file line number Diff line number Diff line change @@ -52,5 +52,15 @@ describe('PhoneCat App', function() {
5252 "Motorola XOOM\u2122 with Wi-Fi"
5353 ] ) ;
5454 } ) ;
55+
56+
57+ it ( 'should render phone specific links' , function ( ) {
58+ var query = element ( by . model ( 'query' ) ) ;
59+ query . sendKeys ( 'nexus' ) ;
60+ element ( by . css ( '.phones li a' ) ) . click ( ) ;
61+ browser . getLocationAbsUrl ( ) . then ( function ( url ) {
62+ expect ( url . split ( '#' ) [ 1 ] ) . toBe ( '/phones/nexus-s' ) ;
63+ } ) ;
64+ } ) ;
5565 } ) ;
5666} ) ;
You can’t perform that action at this time.
0 commit comments