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';
9
9
import { SimpleRadioButtons } from './radio/radio-e2e' ;
10
10
import { BasicTabs } from './tabs/tabs-e2e' ;
11
11
import { DialogE2E , TestDialog } from './dialog/dialog-e2e' ;
12
+ import { GridListE2E } from './grid-list/grid-list-e2e' ;
12
13
import { MaterialModule } from '@angular/material' ;
13
14
import { E2E_APP_ROUTES } from './e2e-app/routes' ;
14
15
@@ -30,6 +31,7 @@ import {E2E_APP_ROUTES} from './e2e-app/routes';
30
31
Home ,
31
32
DialogE2E ,
32
33
TestDialog ,
34
+ GridListE2E ,
33
35
] ,
34
36
bootstrap : [ E2EApp ] ,
35
37
providers : [
Original file line number Diff line number Diff line change 1
1
< a md-list-item [routerLink] ="['button'] "> Button</ a >
2
2
< a md-list-item [routerLink] ="['checkbox'] "> Checkbox</ a >
3
3
< a md-list-item [routerLink] ="['dialog'] "> Dialog</ a >
4
+ < a md-list-item [routerLink] ="['grid-list'] "> Grid list</ a >
4
5
< a md-list-item [routerLink] ="['icon'] "> Icon</ a >
5
6
< a md-list-item [routerLink] ="['menu'] "> Menu</ a >
6
7
< 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';
7
7
import { SimpleRadioButtons } from '../radio/radio-e2e' ;
8
8
import { SimpleCheckboxes } from '../checkbox/checkbox-e2e' ;
9
9
import { DialogE2E } from '../dialog/dialog-e2e' ;
10
+ import { GridListE2E } from '../grid-list/grid-list-e2e' ;
10
11
11
12
export const E2E_APP_ROUTES : Routes = [
12
13
{ path : '' , component : Home } ,
@@ -17,4 +18,5 @@ export const E2E_APP_ROUTES: Routes = [
17
18
{ path : 'radio' , component : SimpleRadioButtons } ,
18
19
{ path : 'tabs' , component : BasicTabs } ,
19
20
{ path : 'dialog' , component : DialogE2E } ,
21
+ { path : 'grid-list' , component : GridListE2E } ,
20
22
] ;
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