Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/massive/munit/TestResult.hx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class TestResult

}

@:enum
#if haxe4 enum #else @:enum #end
abstract TestResultType(String) to String
{
var UNKNOWN = "UNKNOWN";
Expand Down
12 changes: 8 additions & 4 deletions src/massive/munit/client/HTTPClient.hx
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,25 @@ import Std.is as isOfType;
*/
class HTTPClient implements IAdvancedTestResultClient
{
@:extern public inline static var DEFAULT_SERVER_URL:String = "http://localhost:2000";
#if haxe4 extern #else @:extern #end
public inline static var DEFAULT_SERVER_URL:String = "http://localhost:2000";
/**
* Default id of this client.
*/
@:extern public inline static var DEFAULT_ID:String = "HTTPClient";
#if haxe4 extern #else @:extern #end
public inline static var DEFAULT_ID:String = "HTTPClient";

/**
* HTTP header key. Contains id of client the HTTPClient is decorating.
*/
@:extern public inline static var CLIENT_HEADER_KEY:String = "munit-clientId";
#if haxe4 extern #else @:extern #end
public inline static var CLIENT_HEADER_KEY:String = "munit-clientId";

/**
* HTTP header key. Contains id of platform being tests (flash,js,neko,cpp,php).
*/
@:extern public inline static var PLATFORM_HEADER_KEY:String = "munit-platformId";
#if haxe4 extern #else @:extern #end
public inline static var PLATFORM_HEADER_KEY:String = "munit-platformId";

/* Global sequental (FIFO) http request queue */
private static var queue:Array<URLRequest> = [];
Expand Down