Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
d3d46b5a
Commit
d3d46b5a
authored
4 years ago
by
Nick Draper
Browse files
Options
Downloads
Patches
Plain Diff
clang format for this pr
parent
5bef2440
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qt/widgets/common/test/FitPropertyBrowserTest.h
+14
-11
14 additions, 11 deletions
qt/widgets/common/test/FitPropertyBrowserTest.h
with
14 additions
and
11 deletions
qt/widgets/common/test/FitPropertyBrowserTest.h
+
14
−
11
View file @
d3d46b5a
...
@@ -6,10 +6,10 @@
...
@@ -6,10 +6,10 @@
// SPDX - License - Identifier: GPL - 3.0 +
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once
#pragma once
#include
"Mantid
QtWidgets/Common/FitPropertyBrowser
.h"
#include
"Mantid
API/FunctionFactory
.h"
#include
"MantidAPI/IFunction1D.h"
#include
"MantidAPI/IFunction1D.h"
#include
"MantidAPI/ParamFunction.h"
#include
"MantidAPI/ParamFunction.h"
#include
"Mantid
API/FunctionFactory
.h"
#include
"Mantid
QtWidgets/Common/FitPropertyBrowser
.h"
#include
<cxxtest/TestSuite.h>
#include
<cxxtest/TestSuite.h>
using
namespace
Mantid
::
API
;
using
namespace
Mantid
::
API
;
...
@@ -41,17 +41,20 @@ DECLARE_FUNCTION(FitPropertyBrowserTest_Funct)
...
@@ -41,17 +41,20 @@ DECLARE_FUNCTION(FitPropertyBrowserTest_Funct)
class
FitPropertyBrowserTest
:
public
CxxTest
::
TestSuite
{
class
FitPropertyBrowserTest
:
public
CxxTest
::
TestSuite
{
public:
public:
//This is a very specific test for a bug that is now fixed to prevent regression
// This is a very specific test for a bug that is now fixed to prevent
// regression
void
test_FunctionFactory_notification_is_released
()
{
void
test_FunctionFactory_notification_is_released
()
{
//create a FunctionBrowser
// create a FunctionBrowser
auto
fpBrowser
=
std
::
make_unique
<
MantidQt
::
MantidWidgets
::
FitPropertyBrowser
>
();
auto
fpBrowser
=
//initialise it - this adds an observer on the function factory update message
std
::
make_unique
<
MantidQt
::
MantidWidgets
::
FitPropertyBrowser
>
();
// initialise it - this adds an observer on the function factory update
// message
fpBrowser
->
init
();
fpBrowser
->
init
();
//delete the FunctionBrowser
//
delete the FunctionBrowser
fpBrowser
.
reset
();
fpBrowser
.
reset
();
//Make sure the FunctionFactory does not have a dead link as an observer
// Make sure the FunctionFactory does not have a dead link as an observer
TS_ASSERT_THROWS_NOTHING
(
FunctionFactory
::
Instance
().
unsubscribe
(
"FitPropertyBrowserTest_Funct"
);)
TS_ASSERT_THROWS_NOTHING
(
FunctionFactory
::
Instance
().
unsubscribe
(
"FitPropertyBrowserTest_Funct"
);)
}
}
};
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment