FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
CefSharp/CefSharp.Example/Resources/PostMessageTest.html at master · cefsharp/CefSharp · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
cefsharp
/
CefSharp
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
2.9k
Star
10.2k
Code
Issues
61
Pull requests
13
Discussions
Actions
Wiki
Security and quality
9
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
CefSharp
/
CefSharp.Example
/
Resources
/
PostMessageTest.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
52 lines (41 loc) · 1.5 KB
Breadcrumbs
CefSharp
/
CefSharp.Example
/
Resources
/
PostMessageTest.html
Copy path
File metadata and controls
52 lines (41 loc) · 1.5 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html
>
<
html
lang
="
en
"
xmlns
="
http://www.w3.org/1999/xhtml
"
>
<
head
>
<
meta
charset
="
utf-8
"
/>
<
title
>
Post Message Test
</
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
"
>
let
PostMessageIntTestCallback
;
(
async
(
)
=>
{
QUnit
.
test
(
"PostMessage Object Test:"
,
function
(
assert
)
{
var
asyncCallback
=
assert
.
async
(
)
;
const
expectedResult
=
'Update'
;
let
responseFunc
=
function
(
msg
)
{
assert
.
equal
(
expectedResult
,
msg
,
"Return result "
+
expectedResult
)
;
asyncCallback
(
)
;
}
;
CefSharp
.
PostMessage
(
{
"Type"
:
"Update"
,
Data
:
{
"Property"
:
123
}
,
"Callback"
:
responseFunc
}
)
;
}
)
;
QUnit
.
test
(
"PostMessage Int Test:"
,
function
(
assert
)
{
var
asyncCallback
=
assert
.
async
(
)
;
const
expectedResult
=
123456
;
PostMessageIntTestCallback
=
function
(
msg
)
{
assert
.
equal
(
expectedResult
,
msg
,
"Return result "
+
expectedResult
)
;
asyncCallback
(
)
;
}
;
CefSharp
.
PostMessage
(
expectedResult
)
;
}
)
;
}
)
(
)
;
</
script
>
</
body
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL