From: notmasteryet Date: Mon, 5 Dec 2011 23:19:43 +0000 (-0600) Subject: Fixing the textLayer parameter X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5909830d4327a1bbcdba54e55e5a7a66c8bc0beb;p=pdf.js.git Fixing the textLayer parameter --- diff --git a/test/driver.js b/test/driver.js index 83f80eb..2467b57 100644 --- a/test/driver.js +++ b/test/driver.js @@ -160,6 +160,10 @@ function nextPage(task, loadError) { canvas.height = pageHeight * pdfToCssUnitsCoef; clear(ctx); + // using non-attached to the document div to test + // text layer creation operations + var textLayer = document.createElement('div'); + page.startRendering( ctx, function nextPageStartRendering(error) { @@ -168,7 +172,7 @@ function nextPage(task, loadError) { failureMessage = 'render : ' + error.message; snapshotCurrentPage(task, failureMessage); }, - true + textLayer ); } catch (e) { failure = 'page setup : ' + e.toString();