File tree Expand file tree Collapse file tree 4 files changed +2
-16
lines changed
packages/selenium-ide/src/neo Expand file tree Collapse file tree 4 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ class Suite extends React.Component {
7070 rename : PropTypes . func . isRequired ,
7171 editSettings : PropTypes . func . isRequired ,
7272 remove : PropTypes . func . isRequired ,
73- moveTest : PropTypes . func . isRequired ,
7473 isOver : PropTypes . bool ,
7574 canDrop : PropTypes . bool ,
7675 onContextMenu : PropTypes . func ,
Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ import "./style.css";
2828 selectTests : PropTypes . func . isRequired ,
2929 rename : PropTypes . func . isRequired ,
3030 editSettings : PropTypes . func . isRequired ,
31- removeSuite : PropTypes . func . isRequired ,
32- moveTest : PropTypes . func . isRequired
31+ removeSuite : PropTypes . func . isRequired
3332 } ;
3433 render ( ) {
3534 return (
@@ -42,7 +41,6 @@ import "./style.css";
4241 rename = { this . props . rename }
4342 editSettings = { ( ) => { this . props . editSettings ( suite ) ; } }
4443 remove = { ( ) => { this . props . removeSuite ( suite ) ; } }
45- moveTest = { this . props . moveTest }
4644 />
4745 </ li >
4846 ) ) }
Original file line number Diff line number Diff line change @@ -39,8 +39,7 @@ import "./style.css";
3939 }
4040 static propTypes = {
4141 suites : MobxPropTypes . arrayOrObservableArray . isRequired ,
42- tests : MobxPropTypes . arrayOrObservableArray . isRequired ,
43- moveTest : PropTypes . func . isRequired
42+ tests : MobxPropTypes . arrayOrObservableArray . isRequired
4443 } ;
4544 handleChangedTab ( tab ) {
4645 if ( PlaybackState . isPlaying && ! PlaybackState . paused ) {
@@ -97,7 +96,6 @@ import "./style.css";
9796 editSettings = { ModalState . editSuiteSettings }
9897 selectTests = { ModalState . editSuite }
9998 removeSuite = { ModalState . deleteSuite }
100- moveTest = { this . props . moveTest }
10199 />
102100 </ React . Fragment >
103101 }
Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ if (browser.windows) {
100100 constructor ( props ) {
101101 super ( props ) ;
102102 this . state = { project } ;
103- this . moveTest = this . moveTest . bind ( this ) ;
104103 this . keyDownHandler = window . document . body . onkeydown = this . handleKeyDown . bind ( this ) ;
105104 this . resizeHandler = window . addEventListener ( "resize" , this . handleResize . bind ( this , window ) ) ;
106105 this . quitHandler = window . addEventListener ( "beforeunload" , ( e ) => {
@@ -112,13 +111,6 @@ if (browser.windows) {
112111 }
113112 } ) ;
114113 }
115- moveTest ( testItem , destination ) {
116- const origin = this . state . project . suites . find ( ( suite ) => ( suite . id === testItem . suite ) ) ;
117- const test = origin . tests . find ( test => ( test . id === testItem . id ) ) ;
118-
119- destination . addTestCase ( test ) ;
120- origin . removeTestCase ( test ) ;
121- }
122114 handleResize ( currWindow ) {
123115 UiState . setWindowHeight ( currWindow . innerHeight ) ;
124116 storage . set ( {
@@ -192,7 +184,6 @@ if (browser.windows) {
192184 createSuite = { this . createSuite }
193185 removeSuite = { this . state . project . deleteSuite }
194186 createTest = { this . createTest }
195- moveTest = { this . moveTest }
196187 deleteTest = { this . deleteTest }
197188 />
198189 < Editor
You can’t perform that action at this time.
0 commit comments