BindingTest - Braces on new lines

Fix CefAppUnmanagedWrapper code formatting
Slightly more descriptive error message when frame not found
This commit is contained in:
amaitland
2015-10-19 13:23:01 +10:00
parent a64f25193f
commit 17b7f0ced1
2 changed files with 15 additions and 13 deletions
@@ -212,7 +212,7 @@ namespace CefSharp
}
else
{
errorMessage = "Unable to Get Frame matching Id";
errorMessage = StringUtils::ToNative("Frame " + frameId + " is no longer available, most likely the Frame has been Disposed or Removed.");
}
}
else
@@ -264,19 +264,19 @@ namespace CefSharp
}
else
{
errorMessage = "Unable to Enter Context";
}
errorMessage = "Unable to Enter Context";
}
}
}
auto responseArgList = response->GetArgumentList();
responseArgList->SetBool(0, success);
SetInt64(callbackId, responseArgList, 1);
if (!success)
{
responseArgList->SetString(2, errorMessage);
}
browser->SendProcessMessage(sourceProcessId, response);
auto responseArgList = response->GetArgumentList();
responseArgList->SetBool(0, success);
SetInt64(callbackId, responseArgList, 1);
if (!success)
{
responseArgList->SetString(2, errorMessage);
}
browser->SendProcessMessage(sourceProcessId, response);
handled = true;
}
+4 -2
View File
@@ -116,7 +116,8 @@
Disposed Javscript Callback Test (navigates to www.google.com before callback fires)
<br />
<script type="text/javascript">
function disposedCallback(s) {
function disposedCallback(s)
{
// This callback should be disposed and should not be called
window.alert("This callback should not have been called");
@@ -124,7 +125,8 @@
result.innerText += "Callback: " + s + "" + Date();
}
function testDisposedCallback() {
function testDisposedCallback()
{
bound.testCallback(callback);
var result = document.getElementById('disposedcbresult');