Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
35785a90
Commit
35785a90
authored
Oct 17, 2012
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add binary/base64 data mode to perf/playback tests.
parent
6f4b1e40
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
websock.js
include/websock.js
+2
-1
vnc_perf.html
tests/vnc_perf.html
+3
-2
vnc_playback.html
tests/vnc_playback.html
+3
-2
No files found.
include/websock.js
View file @
35785a90
...
...
@@ -371,8 +371,9 @@ function close() {
// Override internal functions for testing
// Takes a send function, returns reference to recv function
function
testMode
(
override_send
)
{
function
testMode
(
override_send
,
data_mode
)
{
test_mode
=
true
;
mode
=
data_mode
;
api
.
send
=
override_send
;
api
.
close
=
function
()
{};
return
recv_message
;
...
...
tests/vnc_perf.html
View file @
35785a90
...
...
@@ -2,7 +2,6 @@
<html>
<head>
<title>
VNC Performance Benchmark
</title>
<link
rel=
"stylesheet"
href=
"../include/base.css"
>
</head>
<body>
...
...
@@ -38,6 +37,8 @@
<script
type=
"text/javascript"
>
var
INCLUDE_URI
=
"../include/"
;
// TODO: Data file should override
var
VNC_frame_encoding
=
"base64"
;
</script>
<script
src=
"../include/util.js"
></script>
<script
src=
"../include/playback.js"
></script>
...
...
@@ -201,7 +202,7 @@
}
rfb
=
new
RFB
({
'target'
:
$D
(
'VNC_canvas'
),
'updateState'
:
updateState
});
rfb
.
testMode
(
send_array
);
rfb
.
testMode
(
send_array
,
VNC_frame_encoding
);
}
</script>
</html>
tests/vnc_playback.html
View file @
35785a90
...
...
@@ -2,7 +2,6 @@
<html>
<head>
<title>
VNC Playback
</title>
<link
rel=
"stylesheet"
href=
"../include/plain.css"
>
</head>
<body>
...
...
@@ -40,6 +39,8 @@
<script
type=
"text/javascript"
>
var
INCLUDE_URI
=
"../include/"
;
// TODO: Data file should override
var
VNC_frame_encoding
=
"base64"
;
</script>
<script
src=
"../include/util.js"
></script>
<script
src=
"../include/webutil.js"
></script>
...
...
@@ -98,7 +99,7 @@
mode
=
'realtime'
;
}
recv_message
=
rfb
.
testMode
(
send_array
);
recv_message
=
rfb
.
testMode
(
send_array
,
VNC_frame_encoding
);
next_iteration
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment