Skip to content
Permalink
Browse files
[tests] Fix failing composerhtml tests, by forcing test html to use a…
… set font size in pixels.
  • Loading branch information
nyalldawson committed Dec 28, 2013
1 parent 6aed6fe commit bf407db
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
@@ -62,6 +62,9 @@ def testTable(self):
myTestResult, myMessage = checker.testComposition()

qDebug(myMessage)
self.mComposition.removeMultiFrame( composerHtml )
composerHtml = None

assert myTestResult, myMessage

def testTableMultiFrame(self):
@@ -91,6 +94,10 @@ def testTableMultiFrame(self):
myPage = 2
checker3 = QgsCompositionChecker('composerhtml_multiframe3', self.mComposition)
myTestResult, myMessage = checker3.testComposition( myPage )

self.mComposition.removeMultiFrame( composerHtml )
composerHtml = None

assert myTestResult, myMessage

def testComposerHtmlAccessor(self):
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -1,6 +1,12 @@
<html>
<head>
<link href="bootstrap.css" media="all" rel="stylesheet" type="text/css" />
<style>
.table td {
font-size: 20px;
line-height: 30px;
}
</style>
</head>
<body>
<table class="table table-striped table-bordered condensed">

0 comments on commit bf407db

Please sign in to comment.