Skip to content

Commit 0f84db3

Browse files
committed
Ensures that the method is compiled and examples are run
1 parent d115563 commit 0f84db3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/prepare_image.st

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,21 @@ PreferenceWizardMorph allInstances do: #abandon.
2727
SystemBrowser default: BPBrowser.
2828

2929

30-
"Take a screenshot"
30+
"
31+
Take a screenshot
32+
"
33+
34+
"First, ensure that the method is fully compiled and the examples are run"
35+
(Smalltalk at: #BPSearchCollection) recompile: #binarySearch:.
36+
37+
"Second, set up the stage and take the screenshot"
3138
browserWindow := (ToolSet default browse: (Smalltalk at: #BPSearchCollection) selector: #binarySearch:) containingWindow.
3239
browserWindow extent: 891@806.
3340
(browserWindow submorphsSatisfying: [:m | (m isKindOf: ProportionalSplitterMorph) and: [m width > m height]]) first repositionBy: 0@(-100).
3441
browserWindow topLeft: 30@30.
3542
browserWindow exportAsPNGNamed: 'screenshot-for-readme.png'.
3643

44+
"Wrap up the image and save it"
3745
TranscriptStream redirectToStdOut: false.
3846
Deprecation suppressed: false.
3947

0 commit comments

Comments
 (0)