update to latest buddy support

This commit is contained in:
Dima Granetchi
2017-02-02 17:44:10 +03:00
parent 90957d5fcf
commit f4d1f1fc79
10 changed files with 18 additions and 31 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ class BaseTest extends BuddySuite {
var b:Bindable1;
var callNum:Int;
before(function () {
beforeEach(function () {
b = new Bindable1();
callNum = 0;
});
+2 -2
View File
@@ -18,8 +18,8 @@ class ChainBindTest extends BuddySuite {
var b:BindableChain;
var callNum:Int;
var target:{a:String};
before(function () {
beforeEach(function () {
from = null;
val = "a";
b = new BindableChain(4);
+1 -1
View File
@@ -16,7 +16,7 @@ class ExprBindTest extends BuddySuite {
var callNum:Int;
var from:String;
var target:{a:String};
before(function () {
beforeEach(function () {
target = {a:null};
from = null;
callNum = 0;
+1 -1
View File
@@ -15,7 +15,7 @@ class ForceTest extends BuddySuite {
var b:BindableForce;
var callNum:Int;
before(function () {
beforeEach(function () {
b = new BindableForce();
callNum = 0;
});
+1 -1
View File
@@ -15,7 +15,7 @@ class InheritanceTest extends BuddySuite {
var bp:BindableParent;
var callNum:Int;
before(function () {
beforeEach(function () {
b = new BindableChild();
bp = new BindableParent();
callNum = 0;
+1 -2
View File
@@ -1,6 +1,5 @@
package ;
import bindx.Bind;
import bindx.IBindable;
import buddy.BuddySuite;
import haxe.rtti.CType;
@@ -18,7 +17,7 @@ class InlineTest extends BuddySuite {
var cd:Classdef;
var foundFields:Int;
before(function () {
beforeEach(function () {
foundFields = 0;
b = new BindableInline();
#if (haxe_ver<3.2)
+2 -2
View File
@@ -14,8 +14,8 @@ class MetaTest extends BuddySuite {
var b:BindableMeta;
var callNum:Int;
before(function () {
beforeEach(function () {
b = new BindableMeta();
callNum = 0;
});
+5 -4
View File
@@ -1,5 +1,6 @@
package ;
import bindx.BindSignal.MethodSignal;
import bindx.BindSignal;
import buddy.*;
@@ -14,8 +15,8 @@ class SignalTest extends BuddySuite {
var fs:FieldSignal<String>;
var callNum:Int;
before(function () {
beforeEach(function () {
fs = new FieldSignal<String>();
callNum = 0;
});
@@ -101,8 +102,8 @@ class SignalTest extends BuddySuite {
var ms:MethodSignal;
var callNum:Int;
before(function () {
beforeEach(function () {
ms = new MethodSignal();
callNum = 0;
});
+2 -2
View File
@@ -14,8 +14,8 @@ class TestProperty extends BuddySuite {
var b:BindableProperty;
var callNum:Int;
before(function () {
beforeEach(function () {
b = new BindableProperty();
callNum = 0;
});
+2 -15
View File
@@ -1,16 +1,3 @@
package ;
import buddy.Buddy;
import buddy.BuddySuite;
import buddy.SuitesRunner;
@:build(buddy.GenerateMain.withSuites([
new BaseTest(),
new InheritanceTest(),
new InlineTest(),
new MetaTest(),
new SignalTest(),
new TestProperty(),
new ChainBindTest(),
new ExprBindTest(),
]))
class Tests extends BuddySuite {}
class Tests implements Buddy<[BaseTest, InheritanceTest, InlineTest, ForceTest, MetaTest, SignalTest, TestProperty, ChainBindTest, ExprBindTest]> {}