Add tests and baselines

This commit is contained in:
Kanchalai Tanglertsampan 2017-02-16 14:03:59 -08:00
parent ea01ad4cbd
commit 8f79f9529f
6 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,15 @@
tests/cases/compiler/conflictMarkerTrivia3.tsx(1,11): error TS17004: Cannot use JSX unless the '--jsx' flag is provided.
tests/cases/compiler/conflictMarkerTrivia3.tsx(1,16): error TS1005: '</' expected.
tests/cases/compiler/conflictMarkerTrivia3.tsx(2,1): error TS1185: Merge conflict marker encountered.
==== tests/cases/compiler/conflictMarkerTrivia3.tsx (3 errors) ====
const x = <div>
~~~~~
!!! error TS17004: Cannot use JSX unless the '--jsx' flag is provided.
<<<<<<< HEAD
~~~~~~~~~~~~
!!! error TS1005: '</' expected.
~~~~~~~
!!! error TS1185: Merge conflict marker encountered.

View file

@ -0,0 +1,6 @@
//// [conflictMarkerTrivia3.tsx]
const x = <div>
<<<<<<< HEAD
//// [conflictMarkerTrivia3.js]
var x = <div></>;

View file

@ -0,0 +1,14 @@
tests/cases/compiler/conflictMarkerTrivia4.ts(1,12): error TS2304: Cannot find name 'div'.
tests/cases/compiler/conflictMarkerTrivia4.ts(2,1): error TS1185: Merge conflict marker encountered.
tests/cases/compiler/conflictMarkerTrivia4.ts(2,13): error TS1109: Expression expected.
==== tests/cases/compiler/conflictMarkerTrivia4.ts (3 errors) ====
const x = <div>
~~~
!!! error TS2304: Cannot find name 'div'.
<<<<<<< HEAD
~~~~~~~
!!! error TS1185: Merge conflict marker encountered.
!!! error TS1109: Expression expected.

View file

@ -0,0 +1,6 @@
//// [conflictMarkerTrivia4.ts]
const x = <div>
<<<<<<< HEAD
//// [conflictMarkerTrivia4.js]
var x = ;

View file

@ -0,0 +1,2 @@
const x = <div>
<<<<<<< HEAD

View file

@ -0,0 +1,2 @@
const x = <div>
<<<<<<< HEAD