diff options
| author | Igor Minar | 2012-03-27 10:21:49 -0700 | 
|---|---|---|
| committer | Igor Minar | 2012-03-28 16:30:38 -0700 | 
| commit | 87f5c6e5b716100e203ec59c5874c3e927f83fa0 (patch) | |
| tree | 84f2953b17d9ef5b9ddc4bde298adea9f503b3bd /test/ngScenario/FutureSpec.js | |
| parent | a8a750ab05bdff73ba3af0b98f3f284ff8d1e743 (diff) | |
| download | angular.js-87f5c6e5b716100e203ec59c5874c3e927f83fa0.tar.bz2 | |
refactor(fromJson): always use native JSON.parse
This breaks IE7 for which you can use polyfill:
https://github.com/douglascrockford/JSON-js
<!--[if lt IE 8]>
<script src="json2.min.js"></script>
<![endif]-->
or
http://bestiejs.github.com/json3/
<!--[if lt IE 8]>
<script src="json3.min.js"></script>
<![endif]-->
Diffstat (limited to 'test/ngScenario/FutureSpec.js')
| -rw-r--r-- | test/ngScenario/FutureSpec.js | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ngScenario/FutureSpec.js b/test/ngScenario/FutureSpec.js index 2a75f275..9ae284dc 100644 --- a/test/ngScenario/FutureSpec.js +++ b/test/ngScenario/FutureSpec.js @@ -42,7 +42,7 @@ describe('angular.scenario.Future', function() {    it('should parse json with fromJson', function() {      var future = new angular.scenario.Future('test name', function(done) { -      done(null, "{test: 'foo'}"); +      done(null, '{"test": "foo"}');      });      future.fromJson().execute(angular.noop);      expect(future.value).toEqual({test: 'foo'});  | 
