Edit error handling tests

This commit is contained in:
Arthur Ozga
2016-11-08 14:13:25 -08:00
parent 4441380e6f
commit 1ec234af32
6 changed files with 25 additions and 25 deletions

View File

@@ -1,20 +0,0 @@
/// <reference path='fourslash.ts' />
//// abstract class C1 {
//// abstract f1<T extends number>();
//// }
////
//// abstract class C2 extends C1{
////
//// }
////
//// interface I1 extends C2 {}
////
//// class C3 implements I1 {[|
////
//// |]}
verify.rangeAfterCodeFix(`f1<T extends number>(){
throw new Error('Method not Implemented');
}
`);

View File

@@ -10,6 +10,11 @@
//// class C1 implements I1,I2 {[|
//// |]}
verify.not.codeFixAvailable();
// TODO: (arozga) Get members from multiple interfaces.
/*
verify.rangeAfterCodeFix(`
x: number;
`);
`);
*/

View File

@@ -10,7 +10,12 @@
//// class C1 implements I1,I2 {[|
//// |]}
verify.not.codeFixAvailable();
// TODO: (arozga) Get members from multiple interfaces.
/*
verify.rangeAfterCodeFix(`
x: number;
y: number;
`);
`);
*/

View File

@@ -10,6 +10,10 @@
//// class C1 implements I1,I2 {[|
//// |]}
verify.not.codeFixAvailable();
// TODO: (arozga) Get members from multiple interfaces.
/*
verify.fileAfterCodeFix(`
interface I1 {
x: number;
@@ -22,3 +26,4 @@ interface I1 {
x: number & string;
}
`);
*/

View File

@@ -6,6 +6,8 @@
////
//// class C implements I<number> { }
// Don't know how to instantiate in codeFix
verify.codeFixAvailable();
// TODO: (arozga) Don't know how to instantiate in codeFix
// if instantiation is invalid.
verify.not.codeFixAvailable();
// verify.not.codeFixAvailable();

View File

@@ -13,4 +13,7 @@
//
// In the latter two cases, it is premature to copy `x:T` into C.
// Since we can't guess the programmer's intent here, we do nothing.
verify.not.codeFixAvailable();
verify.codeFixAvailable();
// TODO: (aozgaa) Acknowledge other errors on class/implemented interface/extended abstract class.
// verify.not.codeFixAvailable();