Skip to content

Commit

Permalink
sanity tests to open create project window
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Winger authored and Eric Winger committed Jul 13, 2022
1 parent 290a5ba commit b0deb1e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
9 changes: 9 additions & 0 deletions sources/JadeiteProjectBrowserSystemTestCase.cls
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ test_browserPosition
self assert: projectsBrowser view position
equals: transcript view position + JadePresenter defaultWindowOffset!

test_createProject
"sanity test - do we open the right browser?"

| createProjectsBrowser |
createProjectsBrowser := self projectsPresenter createNewProject.
[self assert: createProjectsBrowser isKindOf: JadeiteCreateProjectEditor]
ensure: [self destroy: createProjectsBrowser]!

test_deselectProjectOnly
"make sure it updates the tab label"

Expand Down Expand Up @@ -299,6 +307,7 @@ test_addSystemTabClassSelectionClassSide!public!test system tabs! !
test_addSystemTabNoSelections!public!test system tabs! !
test_browseInExistingBrowser!public!test system tabs! !
test_browserPosition!public!test system tabs! !
test_createProject!public!test system tabs! !
test_deselectProjectOnly!public!test system tabs! !
test_modifiedSystemTab!public!test system tabs! !
test_moveTabsWithSUnitTabselected!public!test system tabs! !
Expand Down
2 changes: 1 addition & 1 deletion sources/JadeiteTranscript.cls
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ createComponents
transactionModePresenter model: (self aspectValue: #transactionMode)!

createNewProject
projectListPresenter createNewProject!
^projectListPresenter createNewProject!

createSchematicWiring
super createSchematicWiring.
Expand Down
9 changes: 9 additions & 0 deletions sources/JadeiteTranscriptTestCase.cls
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,14 @@ test_commitTransaction
self cloneRowanSample1.
self ensureRowanSampleProjectsLoaded!

test_createProject
"sanity test - do we open the right browser?"

| createProjectsBrowser |
createProjectsBrowser := transcript createNewProject.
[self assert: createProjectsBrowser isKindOf: JadeiteCreateProjectEditor]
ensure: [self destroy: createProjectsBrowser]!

test_doubleClickOpenProjectBrowser
| randomIndex projectPresenter projectName |
randomIndex := (Random new next * 4) ceiling.
Expand Down Expand Up @@ -828,6 +836,7 @@ test_checkoutTagRefresh!public!test menus! !
test_closeConsoleNeedingCommit!public!tests! !
test_closeConsoleNoCommitNeeded!public!tests! !
test_commitTransaction!public!tests! !
test_createProject!public!tests! !
test_doubleClickOpenProjectBrowser!public!tests! !
test_flipBreakPointsDisabled!public!tests! !
test_implementorsSenders_SearchList!public!tests! !
Expand Down
2 changes: 1 addition & 1 deletion sources/Rowan UI Base.pax
Original file line number Diff line number Diff line change
Expand Up @@ -3458,7 +3458,7 @@ confirmReloadProjects: selections
^true!

createNewProject
JadeiteCreateProjectEditor showOnSession: gciSession!
^JadeiteCreateProjectEditor showOnSession: gciSession!

disableBreakPointAt: stepPoint in: browser
| selection |
Expand Down

0 comments on commit b0deb1e

Please sign in to comment.