@@ -49,21 +49,6 @@ describe('docs.angularjs.org', function () {
4949 } ) ;
5050
5151
52- it ( 'should show the functioning input directive example' , function ( ) {
53- browser . get ( 'index-debug.html#!/api/ng/directive/input' ) ;
54-
55- // Ensure that the page is loaded before trying to switch frames.
56- browser . waitForAngular ( ) ;
57-
58- browser . switchTo ( ) . frame ( 'example-input-directive' ) ;
59-
60- var nameInput = element ( by . model ( 'user.name' ) ) ;
61- nameInput . sendKeys ( '!!!' ) ;
62-
63- var code = element . all ( by . css ( 'tt' ) ) . first ( ) ;
64- expect ( code . getText ( ) ) . toContain ( 'guest!!!' ) ;
65- } ) ;
66-
6752
6853 it ( 'should be resilient to trailing slashes' , function ( ) {
6954 browser . get ( 'index-debug.html#!/api/ng/function/angular.noop/' ) ;
@@ -92,7 +77,7 @@ describe('docs.angularjs.org', function () {
9277 } ) ;
9378
9479
95- it ( "should display links to code on GitHub " , function ( ) {
80+ it ( "should display an error if the page does not exist " , function ( ) {
9681 browser . get ( 'index-debug.html#!/api/does/not/exist' ) ;
9782 expect ( element ( by . css ( 'h1' ) ) . getText ( ) ) . toBe ( 'Oops!' ) ;
9883 } ) ;
@@ -105,13 +90,4 @@ describe('docs.angularjs.org', function () {
10590 } ) ;
10691 } ) ;
10792
108- describe ( "API pages" , function ( ) {
109- it ( "should display links to code on GitHub" , function ( ) {
110- browser . get ( 'index-debug.html#!/api/ng/service/$http' ) ;
111- expect ( element ( by . css ( '.improve-docs' ) ) . getAttribute ( 'href' ) ) . toMatch ( / h t t p s ? : \/ \/ g i t h u b \. c o m \/ a n g u l a r \/ a n g u l a r \. j s \/ e d i t \/ .+ \/ s r c \/ n g \/ h t t p \. j s / ) ;
112-
113- browser . get ( 'index-debug.html#!/api/ng/service/$http' ) ;
114- expect ( element ( by . css ( '.view-source' ) ) . getAttribute ( 'href' ) ) . toMatch ( / h t t p s ? : \/ \/ g i t h u b \. c o m \/ a n g u l a r \/ a n g u l a r \. j s \/ t r e e \/ .+ \/ s r c \/ n g \/ h t t p \. j s # L \d + / ) ;
115- } ) ;
116- } ) ;
11793} ) ;
0 commit comments