File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ module.exports = {
33
33
innerTest : file . fileContents ,
34
34
pathPrefix : '.' , // Hold for if we test with full jQuery
35
35
exampleId : example . id ,
36
- description : example . doc . id
36
+ description : example . doc . id ,
37
+ 'ng-app-included' : example [ 'ng-app-included' ]
37
38
} ;
38
39
39
40
if ( env === 'jquery' ) {
Original file line number Diff line number Diff line change 1
1
describe ( "{$ doc.description $}" , function ( ) {
2
+ var rootEl ;
2
3
beforeEach ( function ( ) {
4
+ rootEl = browser . rootEl ; { % if doc [ 'ng-app-included' ] % }
5
+ browser . rootEl = '[ng-app]' ; { % endif % }
3
6
browser . get ( "{$ doc.pathPrefix $}/{$ doc.examplePath $}" ) ;
4
7
} ) ;
5
-
8
+ { % if doc [ 'ng-app-included' ] % } afterEach ( function ( ) { browser . rootEl = rootEl ; } ) ; { % endif % }
6
9
{ $ doc . innerTest $ }
7
10
} ) ;
You can’t perform that action at this time.
0 commit comments