mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 09:37:03 +00:00
ae41e10d71
- Rename settings object to JavascriptBindingSettings - Validate JavascriptBindingSettings.JsBindingGlobalObjectName in setter to provide immediate feedback - Add FreezableBase which throws exception when frozen (we can reuse this for some other settings classes) - Add some basic Unit Tests (More would be better) Follow on from #3126
26 lines
724 B
HTML
26 lines
724 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>QUnit Javascript Binding API Object Name</title>
|
|
<link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-2.10.0.css">
|
|
<script>
|
|
if (!window.bindingApiObject)
|
|
{
|
|
window.bindingApiObject = cefSharp;
|
|
}
|
|
</script>
|
|
</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>
|
|
QUnit.test("Test if can execute a method on our object", function (assert)
|
|
{
|
|
assert.notOk(bindingApiObject.isObjectCached("fakeExample"), "We expect false");
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|