Skip to content

Commit

Permalink
Test - Fix NetCore test case
Browse files Browse the repository at this point in the history
  • Loading branch information
amaitland committed Oct 14, 2021
1 parent 1a85419 commit 439970d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 9 additions & 5 deletions CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,17 @@ public async Task LoadJavaScriptBindingQunitTestsSuccessfulCompletion()
repo.Register("boundAsync2", new AsyncBoundObject(), options: bindingOptions);

browser.CreateBrowser();
var success = await browser.WaitForQUnitTestExeuctionToComplete();
var response = await browser.WaitForQUnitTestExeuctionToComplete();

Assert.True(success);
if (!response.Success)
{
output.WriteLine("QUnit Passed : {0}", response.Total);
output.WriteLine("QUnit Total : {0}", response.Passed);
}

Assert.True(response.Success);

output.WriteLine("QUnit Tests result: {0}", success);
output.WriteLine("QUnit Tests result: {0}", response.Success);
}
}
#else
Expand All @@ -74,7 +80,6 @@ public async Task LoadJavaScriptBindingQunitTestsSuccessfulCompletion()

if (!response.Success)
{
output.WriteLine("QUnit Details : {0}", response.Details);
output.WriteLine("QUnit Passed : {0}", response.Total);
output.WriteLine("QUnit Total : {0}", response.Passed);
}
Expand Down Expand Up @@ -103,7 +108,6 @@ public async Task LoadLegacyJavaScriptBindingQunitTestsSuccessfulCompletion()

if(!response.Success)
{
output.WriteLine("QUnit Details : {0}", response.Details);
output.WriteLine("QUnit Passed : {0}", response.Total);
output.WriteLine("QUnit Total : {0}", response.Passed);
}
Expand Down
2 changes: 0 additions & 2 deletions CefSharp.Test/QUnitTestResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@ public bool Success

public int Passed { get; set; }
public int Total { get; set; }

public string Details { get; set; }
}
}

0 comments on commit 439970d

Please sign in to comment.