| OLD | NEW |
| 1 Tests how SourceFormatter handles JS sources | 1 Tests how SourceFormatter handles JS sources |
| 2 | 2 |
| 3 Formatted: | 3 Formatted: |
| 4 function formatted1() { | 4 function formatted1() { |
| 5 var variable1 = 0; | 5 var variable1 = 0; |
| 6 } | 6 } |
| 7 | 7 |
| 8 function withComments() { | 8 function withComments() { |
| 9 // comment | 9 // comment |
| 10 return "functionWithComments"; | 10 return "functionWithComments"; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 var exports = {}; | 60 var exports = {}; |
| 61 importScripts("UglifyJS/process.js"); | 61 importScripts("UglifyJS/process.js"); |
| 62 var process = exports; | 62 var process = exports; |
| 63 } catch (e) {} | 63 } catch (e) {} |
| 64 | 64 |
| 65 function formatted2() { | 65 function formatted2() { |
| 66 var variable2 = 0; | 66 var variable2 = 0; |
| 67 } | 67 } |
| 68 | 68 |
| 69 Location mapping with formatted source: | 69 Location mapping with formatted source: |
| 70 1:0 -> 0:22 | 70 1:0 -> 0:22 -> 1:0 |
| 71 6:0 -> 4:24 | 71 6:0 -> 4:24 -> 6:0 |
| 72 11:3 -> 9:4 | 72 11:3 -> 9:4 -> 11:3 |
| 73 11:29 -> 10:32 | 73 11:29 -> 10:32 -> 11:29 |
| 74 11:150 -> 14:20 | 74 11:150 -> 14:20 -> 11:150 |
| 75 11:227 -> 20:30 | 75 11:227 -> 20:30 -> 11:227 |
| 76 12:0 -> 22:30 | 76 12:0 -> 22:30 -> 12:0 |
| 77 12:157 -> 30:51 | 77 12:157 -> 30:51 -> 12:157 |
| 78 12:170 -> 31:22 | 78 12:170 -> 31:22 -> 12:170 |
| 79 13:0 -> 37:21 | 79 13:0 -> 37:21 -> 13:0 |
| 80 14:71 -> 50:23 | 80 14:71 -> 50:23 -> 14:71 |
| 81 14:97 -> 53:18 | 81 14:97 -> 53:18 -> 14:97 |
| 82 14:168 -> 56:18 | 82 14:168 -> 56:18 -> 14:168 |
| 83 14:237 -> 59:12 | 83 14:237 -> 59:12 -> 14:237 |
| 84 17:0 -> 61:22 | 84 17:0 -> 61:22 -> 17:0 |
| 85 Location mapping without formatted source: | 85 Location mapping without formatted source: |
| 86 1:0 -> 1:0 | 86 1:0 -> 1:0 -> 1:0 |
| 87 6:0 -> 6:0 | 87 6:0 -> 6:0 -> 6:0 |
| 88 11:3 -> 11:3 | 88 11:3 -> 11:3 -> 11:3 |
| 89 11:29 -> 11:29 | 89 11:29 -> 11:29 -> 11:29 |
| 90 11:150 -> 11:150 | 90 11:150 -> 11:150 -> 11:150 |
| 91 11:227 -> 11:227 | 91 11:227 -> 11:227 -> 11:227 |
| 92 12:0 -> 12:0 | 92 12:0 -> 12:0 -> 12:0 |
| 93 12:157 -> 12:157 | 93 12:157 -> 12:157 -> 12:157 |
| 94 12:170 -> 12:170 | 94 12:170 -> 12:170 -> 12:170 |
| 95 13:0 -> 13:0 | 95 13:0 -> 13:0 -> 13:0 |
| 96 14:71 -> 14:71 | 96 14:71 -> 14:71 -> 14:71 |
| 97 14:97 -> 14:97 | 97 14:97 -> 14:97 -> 14:97 |
| 98 14:168 -> 14:168 | 98 14:168 -> 14:168 -> 14:168 |
| 99 14:237 -> 14:237 | 99 14:237 -> 14:237 -> 14:237 |
| 100 17:0 -> 17:0 | 100 17:0 -> 17:0 -> 17:0 |
| 101 | 101 |
| OLD | NEW |