Skip to content

Commit

Permalink
added test for skipped node case
Browse files Browse the repository at this point in the history
  • Loading branch information
vladima committed Jul 31, 2014
1 parent ed26563 commit fee596b
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/baselines/reference/sourceMap-SkippedNode.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tests/baselines/reference/sourceMap-SkippedNode.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions tests/baselines/reference/sourceMap-SkippedNode.sourcemap.txt
@@ -0,0 +1,52 @@
===================================================================
JsFile: sourceMap-SkippedNode.js
mapUrl: sourceMap-SkippedNode.js.map
sourceRoot:
sources: sourceMap-SkippedNode.ts
===================================================================
-------------------------------------------------------------------
emittedFile:tests/cases/compiler/sourceMap-SkippedNode.js
sourceFile:sourceMap-SkippedNode.ts
-------------------------------------------------------------------
>>>try {
1 >
2 >^^^^
3 > ^
1 >
2 >
3 > t
1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0)
2 >Emitted(1, 5) Source(1, 1) + SourceIndex(0)
3 >Emitted(1, 6) Source(1, 2) + SourceIndex(0)
---
>>>}
1 >
2 >^
3 > ^^^^^^^^^->
1 >ry {
>// ...
>
2 >}
1 >Emitted(2, 1) Source(3, 1) + SourceIndex(0)
2 >Emitted(2, 2) Source(3, 2) + SourceIndex(0)
---
>>>finally {
1->^^^^^^^^
2 > ^
1->
2 > f
1->Emitted(3, 9) Source(3, 3) + SourceIndex(0)
2 >Emitted(3, 10) Source(3, 4) + SourceIndex(0)
---
>>>}
1 >
2 >^
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >inally {
>// N.B. No 'catch' block
>
2 >}
1 >Emitted(4, 1) Source(5, 1) + SourceIndex(0)
2 >Emitted(4, 2) Source(5, 2) + SourceIndex(0)
---
>>>//# sourceMappingURL=sourceMap-SkippedNode.js.map
6 changes: 6 additions & 0 deletions tests/cases/compiler/sourceMap-SkippedNode.ts
@@ -0,0 +1,6 @@
//@sourceMap: true
try {
// ...
} finally {
// N.B. No 'catch' block
}

0 comments on commit fee596b

Please sign in to comment.