Files
cefsharp/CefSharp.Example/Resources/BindingTestNetCore.html
Alex Maitland a441c1a318 Test - Attempt to log more detailed failure from JSB Tests
Currently only some of the legacy tests are failing with Chromium Site isolation enabled
2021-10-16 17:52:39 +10:00

60 lines
1.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Binding Test (Net Core)</title>
<link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-2.10.0.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="https://code.jquery.com/qunit/qunit-2.10.0.js"></script>
<!--<script type="text/javascript">
(async function() {
// <embed user provided code here>
await CefSharp.BindObjectAsync("boundAsync", "bound");
})();
(async () => {
await CefSharp.BindObjectAsync("boundAsync", "bound");
})();
</script>-->
<script src="BindingTestAsync.js"></script>
<script type="text/javascript">
QUnit.done(function (details)
{
CefSharp.PostMessage({ "Type": "QUnitExecutionComplete", "Details": details });
});
QUnit.log(function (details)
{
if (details.result)
{
return;
}
let output = `[FAILED] ${details.module} > ${details.name}`;
if (details.message)
{
output += `: ${details.message}`;
}
if (details.actual)
{
output += `\nexpected: ${details.expected}\nactual: ${details.actual}`;
}
if (details.source)
{
output += `\n${details.source}`;
}
CefSharp.PostMessage({ "Type": "QUnitTestFailed", "Output": output });
});
</script>
</body>
</html>