Make testdriver use new worker infrastructure

This commit is contained in:
Julian Viereck 2011-09-08 10:44:50 -07:00
parent 89afa69395
commit fea3388c41
2 changed files with 5 additions and 1 deletions

View File

@ -68,7 +68,8 @@ function nextTask() {
r.responseArrayBuffer || r.response;
try {
task.pdfDoc = new PDFDoc(new Stream(data));
task.pdfDoc = new WorkerPDFDoc(data);
// task.pdfDoc = new PDFDoc(new Stream(data));
} catch (e) {
failure = 'load PDF doc : ' + e.toString();
}

View File

@ -8,6 +8,9 @@
<script type="text/javascript" src="/glyphlist.js"></script>
<script type="text/javascript" src="/metrics.js"></script>
<script type="text/javascript" src="driver.js"></script>
<script type="text/javascript" src="../worker.js"></script>
<script type="text/javascript" src="../worker/message_handler.js"></script>
<script type="text/javascript" src="../worker/handler.js"></script>
</head>
<body onload="load();">