-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simple test page that can be used to test cases in isolation (useful for debugging purposes)
- Loading branch information
Showing
7 changed files
with
101 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<html> | ||
<head> | ||
<title>Binding Test</title> | ||
<link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-2.4.1.css"> | ||
</head> | ||
<body> | ||
<div id="qunit"></div> | ||
<div id="qunit-fixture"></div> | ||
<script src="https://code.jquery.com/qunit/qunit-2.4.1.js"></script> | ||
|
||
<script type="text/javascript"> | ||
(async () => | ||
{ | ||
await CefSharp.BindObjectAsync("boundAsync", "bound"); | ||
|
||
QUnit.test( "Struct Test:", function( assert ) | ||
{ | ||
var asyncCallback = assert.async(); | ||
|
||
//Returns a Struct | ||
boundAsync.returnObject('CefSharp Struct Test').then(function (actualResult) | ||
{ | ||
const expectedResult = 'CefSharp Struct Test'; | ||
|
||
assert.equal(expectedResult, actualResult.Value, "Return class " + expectedResult); | ||
|
||
asyncCallback(); | ||
}); | ||
}); | ||
|
||
QUnit.test( "Class Test:", function( assert ) | ||
{ | ||
var asyncCallback = assert.async(); | ||
|
||
//Returns a class | ||
boundAsync.returnClass('CefSharp Class Test').then(function (actualResult) | ||
{ | ||
const expectedResult = 'CefSharp Class Test'; | ||
|
||
assert.equal(expectedResult, actualResult.Value, "Return class " + expectedResult); | ||
|
||
asyncCallback(); | ||
}); | ||
}); | ||
|
||
|
||
})(); | ||
</script> | ||
|
||
</body> | ||
</html> |