Skip to content

Commit

Permalink
tests: Haxe 4.0/4.1 back compat
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Mar 18, 2024
1 parent b6446aa commit 0350406
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/src/feathers/controls/HDividedBoxTest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package feathers.controls;

import openfl.Lib;
import openfl.display.InteractiveObject;
import utest.Assert;
import utest.Test;

Expand All @@ -34,7 +35,7 @@ class HDividedBoxTest extends Test {

public function setup():Void {
this._dividedBox = new HDividedBox();
this._dividedBox.dividerFactory = () -> {
this._dividedBox.dividerFactory = function():InteractiveObject {
var divider = new LayoutGroup();
divider.width = DIVIDER_SIZE;
divider.height = DIVIDER_SIZE;
Expand Down
3 changes: 2 additions & 1 deletion test/src/feathers/controls/VDividedBoxTest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package feathers.controls;

import openfl.Lib;
import openfl.display.InteractiveObject;
import utest.Assert;
import utest.Test;

Expand All @@ -34,7 +35,7 @@ class VDividedBoxTest extends Test {

public function setup():Void {
this._dividedBox = new VDividedBox();
this._dividedBox.dividerFactory = () -> {
this._dividedBox.dividerFactory = function():InteractiveObject {
var divider = new LayoutGroup();
divider.width = DIVIDER_SIZE;
divider.height = DIVIDER_SIZE;
Expand Down

0 comments on commit 0350406

Please sign in to comment.