mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
switched spreads boolean
This commit is contained in:
parent
22073394f6
commit
a2180ce924
3 changed files with 9 additions and 11 deletions
|
@ -200,15 +200,15 @@ asyncTest("Add styles to book", 4, function() {
|
|||
|
||||
asyncTest("Switch Spreads to Single", 3, function() {
|
||||
|
||||
var Book = ePub('../demo/moby-dick/', { width: 400, height: 600 });
|
||||
var Book = ePub('../demo/moby-dick/', { width: 800, height: 600 });
|
||||
|
||||
var render = Book.renderTo("qunit-fixture");
|
||||
|
||||
var result = function(){
|
||||
equal( Book.settings.spreads, true, "Use Spreads");
|
||||
equal( Book.renderer.spreads, true, "Use Spreads");
|
||||
Book.useSpreads(false);
|
||||
equal( Book.settings.spreads, false, "Don't Use Spreads");
|
||||
equal( Book.renderer.render.docEl.style[EPUBJS.Renderer.columnWidth], "400px", "Don't Use Spreads");
|
||||
equal( Book.renderer.spreads, false, "Don't Use Spreads");
|
||||
equal( Book.renderer.contents.style[EPUBJS.core.prefixed('columnWidth')], "352px", "Don't Use Spreads");
|
||||
start();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue