add traceur test suite

This commit is contained in:
Sebastian McKenzie
2015-01-04 19:40:09 +11:00
parent 18813f26bb
commit 6a35bdb42b
495 changed files with 9831 additions and 360 deletions

View File

@@ -0,0 +1,24 @@
// Options: --member-variables --types --type-assertions --type-assertion-module=../TypeAssertions/resources/assert.js
import '../TypeAssertions/resources/assert.js';
class Parent {
a:string;
static staticA:string;
}
class Child extends Parent {
b:string;
static staticB:string;
}
var child = new Child();
child.a = 'defined in Parent';
child.b = 'defined in Child';
Child.staticA = 'static in Parent';
Child.staticB = 'static in Child';
assert.throw(() => { child.a = 0; }, chai.AssertionError);
assert.throw(() => { child.b = 0; }, chai.AssertionError);
assert.throw(() => { Child.staticA = 0; }, chai.AssertionError);
assert.throw(() => { Child.staticB = 0; }, chai.AssertionError);