Kaydet (Commit) 58b8211f authored tarafından Michael Meeks's avatar Michael Meeks

canvas unit test - tolerate canvas non-creation: really no X server...

Change-Id: Id8be7bc4ad454e7e246e412803e4d672a921c08e
üst cb548bc7
...@@ -44,7 +44,8 @@ void CanvasTest::testComposite() ...@@ -44,7 +44,8 @@ void CanvasTest::testComposite()
CPPUNIT_ASSERT( pWin != NULL ); CPPUNIT_ASSERT( pWin != NULL );
uno::Reference<rendering::XCanvas> xCanvas = pWin->GetCanvas (); uno::Reference<rendering::XCanvas> xCanvas = pWin->GetCanvas ();
CPPUNIT_ASSERT( xCanvas.is() ); if( !xCanvas.is() )
return; // can't get a canvas working at all - truly headless ?
// a huge canvas ... // a huge canvas ...
Size aSize (1, 1); Size aSize (1, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment