diff options
Diffstat (limited to 'test/ng')
| -rw-r--r-- | test/ng/locationSpec.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ng/locationSpec.js b/test/ng/locationSpec.js index 648fa42d..b866b1e3 100644 --- a/test/ng/locationSpec.js +++ b/test/ng/locationSpec.js @@ -632,6 +632,17 @@ describe('$location', function() { expect(match[10]).toBe('?book=moby'); }); + + + it('should parse chrome extension urls', function() { + var match = URL_MATCH.exec('chrome-extension://jjcldkdmokihdaomalanmlohibnoplog/index.html?foo#bar'); + + expect(match[1]).toBe('chrome-extension'); + expect(match[3]).toBe('jjcldkdmokihdaomalanmlohibnoplog'); + expect(match[6]).toBe('/index.html'); + expect(match[8]).toBe('foo'); + expect(match[10]).toBe('bar'); + }); }); |
