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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using Spectre.Console; | |
namespace spectre.tree.performance | |
{ |
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
Enabled: | |
- activity: | |
- Version: 2.6.0 | |
- Path: /var/www/owncloud/apps/activity | |
- camerarawpreviews: | |
- Version: 0.7.11 | |
- Path: /var/www/owncloud/custom/camerarawpreviews | |
- checksum: | |
- Version: 0.3.5 | |
- Path: /var/www/owncloud/custom/checksum |
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
{ | |
"basic": { | |
"license key": "***REMOVED SENSITIVE VALUE***", | |
"date": "Sat, 12 Jun 2021 09:26:04 +0000", | |
"ownCloud version": "10.7.0.4", | |
"ownCloud version string": "10.7.0", | |
"ownCloud edition": "Community", | |
"server OS": "Linux", | |
"server OS version": "Linux 7fa2d5b425f0 5.4.0-1034-raspi #37-Ubuntu SMP PREEMPT Mon Apr 12 23:14:49 UTC 2021 aarch64", | |
"server SAPI": "apache2handler", |
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
function Get-Gitignore { | |
<# | |
.SYNOPSIS | |
Creates a .gitignore file using gitignore.io API | |
.DESCRIPTION | |
Creates in the current directory a .gitignore file using the template | |
provided by gitignore.io based on the services you use. | |
.PARAMETER Targets | |
List of applications, programming languages and tools you use. | |
.PARAMETER Output |
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
/* (...) */ | |
ITestableInputDialog testableDialog = | |
testableWindow.GetInputDialog(); | |
testableDialog.ChangeEntryText("Sergio"); | |
testableDialog.ClickOkButton(); | |
WaitingAssert.IsTrue(() => | |
{ return testableDialog.IsOkButtonEnabled() |
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
/* (...) */ | |
public delegate void ExecuteTestDelegate(string testName); | |
public static void RunTest( | |
string methodTestName, ExecuteTestDelegate testDelegate) | |
{ | |
// Run the test... | |
RunGuiTest(methodTestName, testDelegate); |
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
[Test] | |
public void SomeTest() | |
{ | |
// The rest of the test | |
ITesteableErrorDialog errorDialog = testeableAppWindow.GetErrorDialog(); | |
if (errorDialog == null) | |
return; | |
LogErrorMessage(errorDialog); | |
Assert.Fail(“There was an unexpected error dialog!”); |
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
public class BaseDialog : Form | |
{ | |
protected override void OnShown(EventArgs e) | |
{ | |
WindowHandler.AddDialogForTesting(this); | |
base.OnShown(e); | |
} | |
protected override void OnClosed(EventArgs e) | |
{ |
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
/* (...) */ | |
public static void AddDialogForTesting(Form dialog) | |
{ | |
if (!bIsTestingMode) | |
return; | |
mDialogs.Add(dialog); | |
} |
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
[Test] | |
public void SomeTest() | |
{ | |
// The rest of the test | |
if (GuiTesteableServices.UnhandledExceptions.Length == 0) | |
return; | |
LogExceptions(GuiTesteableServices.UnhandledExceptions); | |
Assert.Fail(“There were unhandled exceptions trapped!”); | |
} |
NewerOlder