Merge pull request #648 from kkujala/master

Make test_slave.html as valid html5.
This commit is contained in:
Artur Adib 2011-10-10 14:37:48 -07:00
commit 42b1a40315
2 changed files with 24 additions and 18 deletions

View File

@ -178,7 +178,7 @@ function snapshotCurrentPage(task, failure) {
function sendQuitRequest() { function sendQuitRequest() {
var r = new XMLHttpRequest(); var r = new XMLHttpRequest();
r.open('POST', '/tellMeToQuit?path=' + escape(appPath), false); r.open('POST', '/tellMeToQuit?path=' + escape(appPath), false);
r.send(''); r.send(null);
} }
function quitApp() { function quitApp() {

View File

@ -1,3 +1,4 @@
<!DOCTYPE html>
<html> <html>
<head> <head>
<title>pdf.js test slave</title> <title>pdf.js test slave</title>
@ -12,10 +13,15 @@
<script type="text/javascript" src="driver.js"></script> <script type="text/javascript" src="driver.js"></script>
</head> </head>
<body onload="load();"> <body>
<pre style="width:800; height:800; overflow: scroll;"id="stdout"></pre> <pre style="width:800px; height:800px; overflow:scroll;" id="stdout"></pre>
<p>Inflight requests: <span id="inFlightCount"></span></p> <p>Inflight requests: <span id="inFlightCount"></span></p>
<div id="content-end"><!-- cleanup() guard --></div> <div id="content-end"></div>
</body>
<script type="text/javascript">
'use strict';
load();
</script>
</body>
</html> </html>