-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3 Feature: Add a button in the web view to open the test method
Also change the way we display, we now store on the disk the result.html, this solve a lot of platform issue and make the web area embedded engine to work which was necessary to launch a 4D method from the webarea.
- Loading branch information
Gabriel Inzirillo
committed
Jan 29, 2021
1 parent
71cf281
commit 6311c39
Showing
4 changed files
with
71 additions
and
52 deletions.
There are no files selected for viewing
90 changes: 45 additions & 45 deletions
90
AJ_Tools_UnitTest/Project/Sources/Methods/AJ_Tools_runAll_cb.4dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
//%attributes = {"invisible":true} | ||
// AJ_Tools_runAll_cb ( $parsedResult ) | ||
// | ||
// $parsedResult : (object) parsed result returned by AJ_Tools_UT_runAll | ||
// | ||
// Callback for the run all when used in a main form window | ||
If (False:C215) | ||
// ---------------------------------------------------- | ||
// User name (OS): gabriel inzirillo | ||
// Date and time: 17.07.19, 16:47:33 | ||
// ---------------------------------------------------- | ||
// Method: AJ_Tools_runAll_cb | ||
// | ||
// ---------------------------------------------------- | ||
// Copyrights (C) AJAR SA - 2019 | ||
End if | ||
C_OBJECT:C1216($1;$result) | ||
$result:=$1 | ||
If ($result.lastCall=Null:C1517) | ||
// Results | ||
AJ_Tools_UT_results.tests.unshift($result) | ||
Else | ||
// Last step | ||
Case of | ||
: (Form:C1466.timerCase="all") | ||
Form:C1466.parsedResult:=$result | ||
AJ_Tools_UT_buildList_UI | ||
: (Form:C1466.timerCase="selected") | ||
End case | ||
$template:=Document to text:C1236(Get 4D folder:C485(Current resources folder:K5:16)+"results_template.shtml";"UTF-8") | ||
$baseURL:="File:///"+Replace string:C233(Convert path system to POSIX:C1106(Get 4D folder:C485(Current resources folder:K5:16));"Macintosh HD/";"") | ||
PROCESS 4D TAGS:C816($template;$result_html;$result;$baseURL) | ||
WA SET PAGE CONTENT:C1037(*;"results_wa";$result_html;"") | ||
OBJECT SET VISIBLE:C603(*;"results_wa";True:C214) | ||
OBJECT SET VISIBLE:C603(*;"results_lb";False:C215) | ||
Form:C1466.view:="wa" | ||
Form:C1466.timerCase:="" | ||
//%attributes = {"invisible":true} | ||
// AJ_Tools_runAll_cb ( $parsedResult ) | ||
// | ||
// $parsedResult : (object) parsed result returned by AJ_Tools_UT_runAll | ||
// | ||
// Callback for the run all when used in a main form window | ||
|
||
If (False:C215) | ||
// ---------------------------------------------------- | ||
// User name (OS): gabriel inzirillo | ||
// Date and time: 17.07.19, 16:47:33 | ||
// ---------------------------------------------------- | ||
// Method: AJ_Tools_runAll_cb | ||
// | ||
// ---------------------------------------------------- | ||
// Copyrights (C) AJAR SA - 2019 | ||
End if | ||
|
||
C_OBJECT:C1216($1; $result) | ||
$result:=$1 | ||
|
||
If ($result.lastCall=Null:C1517) | ||
// Results | ||
AJ_Tools_UT_results.tests.unshift($result) | ||
|
||
Else | ||
// Last step | ||
Case of | ||
: (Form:C1466.timerCase="all") | ||
Form:C1466.parsedResult:=$result | ||
AJ_Tools_UT_buildList_UI | ||
: (Form:C1466.timerCase="selected") | ||
End case | ||
|
||
$template:=Document to text:C1236(Get 4D folder:C485(Current resources folder:K5:16)+"results_template.shtml"; "UTF-8") | ||
|
||
PROCESS 4D TAGS:C816($template; $result_html; $result) | ||
TEXT TO DOCUMENT:C1237(Get 4D folder:C485(Current resources folder:K5:16)+"results.html"; $result_html; "UTF-8") | ||
|
||
WA OPEN URL:C1020(*; "results_wa"; Get 4D folder:C485(Current resources folder:K5:16)+"results.html") | ||
OBJECT SET VISIBLE:C603(*; "results_wa"; True:C214) | ||
OBJECT SET VISIBLE:C603(*; "results_lb"; False:C215) | ||
|
||
Form:C1466.view:="wa" | ||
Form:C1466.timerCase:="" | ||
End if |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//%attributes = {"invisible":true} | ||
METHOD OPEN PATH:C1213($1) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters