diff options
| author | Ken Sheedlo | 2013-08-13 15:30:52 -0700 | 
|---|---|---|
| committer | Ken Sheedlo | 2013-08-15 13:23:18 -0700 | 
| commit | 37123cd2858b4e318ed8109af745312df4848577 (patch) | |
| tree | 118abe5fd50e1c6fef4281972cf52c0162482fa8 /test/ng/interpolateSpec.js | |
| parent | fe267e30b95e8f48ddc670b97d485f18fb64d39e (diff) | |
| download | angular.js-37123cd2858b4e318ed8109af745312df4848577.tar.bz2 | |
feat(minerr): log minerr doc url in development
Closes #3566
Diffstat (limited to 'test/ng/interpolateSpec.js')
| -rw-r--r-- | test/ng/interpolateSpec.js | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/test/ng/interpolateSpec.js b/test/ng/interpolateSpec.js index d74b764a..60612329 100644 --- a/test/ng/interpolateSpec.js +++ b/test/ng/interpolateSpec.js @@ -32,7 +32,7 @@ describe('$interpolate', function() {      };      expect(function () {        $interpolate('{{err()}}')($rootScope); -    }).toThrow("[$interpolate:interr] Can't interpolate: {{err()}}\nError: oops"); +    }).toThrowMinErr("$interpolate", "interr", "Can't interpolate: {{err()}}\nError: oops");    }));    it('should stop interpolation when encountering an exception', inject(function($interpolate, $compile, $rootScope) { @@ -43,7 +43,7 @@ describe('$interpolate', function() {      $compile(dom)($rootScope);      expect(function () {        $rootScope.$apply(); -    }).toThrow("[$interpolate:interr] Can't interpolate: {{err()}}\nError: oops"); +    }).toThrowMinErr("$interpolate", "interr", "Can't interpolate: {{err()}}\nError: oops");      expect(dom[0].innerHTML).toEqual('2');      expect(dom[1].innerHTML).toEqual('{{err()}}');      expect(dom[2].innerHTML).toEqual('{{1 + 2}}'); @@ -107,8 +107,8 @@ describe('$interpolate', function() {        var bar = sce.trustAsCss("bar");        expect(function() {          return $interpolate('{{foo}}{{bar}}', true, sce.CSS)( -             {foo: foo, bar: bar}); }).toThrow( -                "[$interpolate:noconcat] Error while interpolating: {{foo}}{{bar}}\n" + +             {foo: foo, bar: bar}); }).toThrowMinErr( +                "$interpolate", "noconcat", "Error while interpolating: {{foo}}{{bar}}\n" +                  "Strict Contextual Escaping disallows interpolations that concatenate multiple " +                  "expressions when a trusted value is required.  See " +                  "http://docs.angularjs.org/api/ng.$sce"); @@ -203,14 +203,14 @@ describe('$interpolate', function() {        var isTrustedContext = true;        expect(function() {            $interpolate('constant/{{var}}', true, isTrustedContext); -        }).toThrow( -            "[$interpolate:noconcat] Error while interpolating: constant/{{var}}\nStrict " + +        }).toThrowMinErr( +            "$interpolate", "noconcat", "Error while interpolating: constant/{{var}}\nStrict " +              "Contextual Escaping disallows interpolations that concatenate multiple expressions " +              "when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce");        expect(function() {            $interpolate('{{foo}}{{bar}}', true, isTrustedContext); -        }).toThrow( -            "[$interpolate:noconcat] Error while interpolating: {{foo}}{{bar}}\nStrict " + +        }).toThrowMinErr( +            "$interpolate", "noconcat", "Error while interpolating: {{foo}}{{bar}}\nStrict " +              "Contextual Escaping disallows interpolations that concatenate multiple expressions " +              "when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce");      })); | 
