diff options
| author | Peter Bacon Darwin | 2014-02-18 06:35:44 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-18 06:36:34 +0000 |
| commit | 4f937bda18bd577febcb29e3969fe72b400d1a61 (patch) | |
| tree | 4dac63e2031e45f80d9183ea90315785190a0723 /test | |
| parent | b6f3d4007a9acc3da182c2f8877ceaa7500f23ab (diff) | |
| download | angular.js-4f937bda18bd577febcb29e3969fe72b400d1a61.tar.bz2 | |
test(docs): add check for resilience to trailing slashes, etc.
Diffstat (limited to 'test')
| -rw-r--r-- | test/e2e/docsAppE2E.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/e2e/docsAppE2E.js b/test/e2e/docsAppE2E.js index cf05c451..da0726b8 100644 --- a/test/e2e/docsAppE2E.js +++ b/test/e2e/docsAppE2E.js @@ -38,5 +38,23 @@ describe('docs.angularjs.org', function () { var code = element(by.css('tt')); expect(code.getText()).toContain('guest!!!'); }); + + it('should be resilient to trailing slashes', function() { + browser.get('index-debug.html#!/api/ng/function/angular.noop/'); + var pageBody = element(by.css('h1')); + expect(pageBody.getText()).toEqual('angular.noop'); + }); + + it('should be resilient to trailing "index"', function() { + browser.get('index-debug.html#!/api/ng/function/angular.noop/index'); + var pageBody = element(by.css('h1')); + expect(pageBody.getText()).toEqual('angular.noop'); + }); + + it('should be resilient to trailing "index/"', function() { + browser.get('index-debug.html#!/api/ng/function/angular.noop/index/'); + var pageBody = element(by.css('h1')); + expect(pageBody.getText()).toEqual('angular.noop'); + }); }); });
\ No newline at end of file |
