]> gerrit.simantics Code Review - simantics/platform.git/commit
Fixed BrowseContext test code to work headlessly 83/483/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 5 May 2017 10:41:01 +0000 (13:41 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 5 May 2017 10:57:13 +0000 (13:57 +0300)
commit53e9b3dac5648f360cd91478d9e6e7a495631b08
tree6ddbe664e39b340cdcc6b37fbf719b6bcab04a4d
parentd5ca4ed76bc83af27f2ade59ce49e35750aa4177
Fixed BrowseContext test code to work headlessly

Previous code invoked JFaceResources.getDefaultFontDescriptor which
eventually invoked Display.getCurrent which would assert out in a
headless test environment.

refs #7184

Change-Id: I59349b8845b8f41d96356764972abcac44d35022
bundles/org.simantics.modeling.ui/scl/Simantics/Testing/ActionBrowseContext.scl
bundles/org.simantics.modeling.ui/scl/Simantics/Testing/BrowseContext.scl