File tree Expand file tree Collapse file tree 6 files changed +31
-0
lines changed Expand file tree Collapse file tree 6 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ describe ( 'grid-list' , ( ) => {
2+ beforeEach ( ( ) => browser . get ( '/grid-list' ) ) ;
3+
4+ it ( 'should render a grid list container' , ( ) => {
5+ expect ( element ( by . css ( 'md-grid-list' ) ) . isPresent ( ) ) . toBe ( true ) ;
6+ } ) ;
7+
8+ it ( 'should render list items inside the grid list container' , ( ) => {
9+ let container = element ( by . css ( 'md-grid-list' ) ) ;
10+ expect ( container . isElementPresent ( by . css ( 'md-grid-tile' ) ) ) . toBe ( true ) ;
11+ } ) ;
12+ } ) ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import {MenuE2E} from './menu/menu-e2e';
99import { SimpleRadioButtons } from './radio/radio-e2e' ;
1010import { BasicTabs } from './tabs/tabs-e2e' ;
1111import { DialogE2E , TestDialog } from './dialog/dialog-e2e' ;
12+ import { GridListE2E } from './grid-list/grid-list-e2e' ;
1213import { MaterialModule } from '@angular/material' ;
1314import { E2E_APP_ROUTES } from './e2e-app/routes' ;
1415
@@ -30,6 +31,7 @@ import {E2E_APP_ROUTES} from './e2e-app/routes';
3031 Home ,
3132 DialogE2E ,
3233 TestDialog ,
34+ GridListE2E ,
3335 ] ,
3436 bootstrap : [ E2EApp ] ,
3537 providers : [
Original file line number Diff line number Diff line change 11< a md-list-item [routerLink] ="['button'] "> Button</ a >
22< a md-list-item [routerLink] ="['checkbox'] "> Checkbox</ a >
33< a md-list-item [routerLink] ="['dialog'] "> Dialog</ a >
4+ < a md-list-item [routerLink] ="['grid-list'] "> Grid list</ a >
45< a md-list-item [routerLink] ="['icon'] "> Icon</ a >
56< a md-list-item [routerLink] ="['menu'] "> Menu</ a >
67< a md-list-item [routerLink] ="['radio'] "> Radios</ a >
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import {MenuE2E} from '../menu/menu-e2e';
77import { SimpleRadioButtons } from '../radio/radio-e2e' ;
88import { SimpleCheckboxes } from '../checkbox/checkbox-e2e' ;
99import { DialogE2E } from '../dialog/dialog-e2e' ;
10+ import { GridListE2E } from '../grid-list/grid-list-e2e' ;
1011
1112export const E2E_APP_ROUTES : Routes = [
1213 { path : '' , component : Home } ,
@@ -17,4 +18,5 @@ export const E2E_APP_ROUTES: Routes = [
1718 { path : 'radio' , component : SimpleRadioButtons } ,
1819 { path : 'tabs' , component : BasicTabs } ,
1920 { path : 'dialog' , component : DialogE2E } ,
21+ { path : 'grid-list' , component : GridListE2E } ,
2022] ;
Original file line number Diff line number Diff line change 1+ < md-grid-list cols ="4 " [rowHeight] ="100 ">
2+ < md-grid-tile > One</ md-grid-tile >
3+ < md-grid-tile > Two</ md-grid-tile >
4+ < md-grid-tile > Three</ md-grid-tile >
5+ < md-grid-tile > Four</ md-grid-tile >
6+ </ md-grid-list >
Original file line number Diff line number Diff line change 1+ import { Component } from '@angular/core' ;
2+
3+ @Component ( {
4+ moduleId : module . id ,
5+ selector : 'grid-list-e2e' ,
6+ templateUrl : 'grid-list-e2e.html' ,
7+ } )
8+ export class GridListE2E { }
You can’t perform that action at this time.
0 commit comments