@@ -6,15 +6,15 @@ describe('error-parser.js', function() {
66 expect ( unit . chooseParser ( CapturedExceptions . chrome_15 ) ) . toBe ( unit . parseV8 ) ;
77 } ) ;
88 it ( 'should detect Firefox' , function ( ) {
9- expect ( unit . chooseParser ( CapturedExceptions . firefox_36 ) ) . toBe ( unit . parseFIREFOX ) ;
10- expect ( unit . chooseParser ( CapturedExceptions . firefox_7 ) ) . toBe ( unit . parseFIREFOX ) ;
11- expect ( unit . chooseParser ( CapturedExceptions . firefox_14 ) ) . toBe ( unit . parseFIREFOX ) ;
9+ expect ( unit . chooseParser ( CapturedExceptions . firefox_36 ) ) . toBe ( unit . parseSpiderMonkey ) ;
10+ expect ( unit . chooseParser ( CapturedExceptions . firefox_7 ) ) . toBe ( unit . parseSpiderMonkey ) ;
11+ expect ( unit . chooseParser ( CapturedExceptions . firefox_14 ) ) . toBe ( unit . parseSpiderMonkey ) ;
1212 } ) ;
1313 it ( 'should detect Safari' , function ( ) {
14- expect ( unit . chooseParser ( CapturedExceptions . safari_6 ) ) . toBe ( unit . parseSAFARI ) ;
14+ expect ( unit . chooseParser ( CapturedExceptions . safari_6 ) ) . toBe ( unit . parseNitro ) ;
1515 } ) ;
1616 it ( 'should detect IE' , function ( ) {
17- expect ( unit . chooseParser ( CapturedExceptions . ie_10 ) ) . toBe ( unit . parseIE ) ;
17+ expect ( unit . chooseParser ( CapturedExceptions . ie_10 ) ) . toBe ( unit . parseChakra ) ;
1818 } ) ;
1919 it ( 'should detect Opera' , function ( ) {
2020 expect ( unit . chooseParser ( CapturedExceptions . opera_854 ) ) . toBe ( unit . parseOPERA ) ;
@@ -27,10 +27,10 @@ describe('error-parser.js', function() {
2727 } ) ;
2828 } ) ;
2929
30- describe ( '#parseSAFARI ' , function ( ) {
30+ describe ( '#parseNitro ' , function ( ) {
3131 var unit = new ErrorParser ( ) ;
3232 it ( 'should parse Safari 6 Errors' , function ( ) {
33- var errorInfo = unit . parseSAFARI ( CapturedExceptions . safari_6 ) ;
33+ var errorInfo = unit . parseNitro ( CapturedExceptions . safari_6 ) ;
3434 expect ( errorInfo . stack ) . toBeTruthy ( ) ;
3535 expect ( errorInfo . stack . length ) . toBe ( 3 ) ;
3636 expect ( errorInfo . stack [ 0 ] ) . toEqual ( { fn : '{anonymous}' , args : [ ] , src : 'scheme://path/to/file.js' , line : '48' , char : undefined } ) ;
@@ -40,6 +40,15 @@ describe('error-parser.js', function() {
4040 expect ( errorInfo . message ) . toEqual ( "'null' is not an object (evaluating 'x.undef')" ) ;
4141 } ) ;
4242 } ) ;
43+
44+ describe ( '#parseV8' , function ( ) {
45+ var unit = new ErrorParser ( ) ;
46+ it ( 'should parse V8 Errors' , function ( ) {
47+ var errorInfo = unit . parseV8 ( CapturedExceptions . chrome_15 ) ;
48+ expect ( errorInfo . stack ) . toBeTruthy ( ) ;
49+ expect ( errorInfo . stack . length ) . toBe ( 3 ) ;
50+ } ) ;
51+ } ) ;
4352 } ) ;
4453
4554// describe('Map::merge', function() {
0 commit comments