mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 08:58:48 +00:00
Core - Improve JavascriptObjectRepository.TryCallMethod Object Not Found error message
- Add method name and param count Resolves #4209
This commit is contained in:
@@ -49,6 +49,16 @@ namespace CefSharp.Test.JavascriptBinding
|
||||
Assert.Equal("ok", result.ReturnValue.ToString());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ShouldReturnErrorMessageForObjectInvalidId()
|
||||
{
|
||||
IJavascriptObjectRepositoryInternal javascriptObjectRepository = new JavascriptObjectRepository();
|
||||
|
||||
var result = javascriptObjectRepository.TryCallMethod(100, "getExampleString", new object[0]);
|
||||
Assert.False(result.Success);
|
||||
Assert.StartsWith("Object Not Found Matching Id", result.Exception);
|
||||
}
|
||||
|
||||
#if !NETCOREAPP
|
||||
[Fact]
|
||||
public void CanRegisterJavascriptObjectPropertyBindWhenNamespaceIsNull()
|
||||
|
||||
Reference in New Issue
Block a user