diff --git a/sources.list b/sources.list index 2f87b591..d0b40a64 100644 --- a/sources.list +++ b/sources.list @@ -147,7 +147,7 @@ OrderedCollection [ #type : #HttpListing, #name : 'Pharo 12.0 (development version)', #url : 'https://files.pharo.org/image/120/', - #filterPattern : 'href="(Pharo-?12-SNAPSHOT.build.[^"]*.zip)"' + #filterPattern : 'href="(Pharo-?12(.[0-9]+)?-SNAPSHOT.build.[^"]*.zip)"' }, PhLTemplateSource { #type : #HttpListing, diff --git a/src/PharoLauncher-Tests-Functional/PhLHTTPListingTemplateGroupTest.class.st b/src/PharoLauncher-Tests-Functional/PhLHTTPListingTemplateGroupTest.class.st index 09d719ac..bda9b24a 100644 --- a/src/PharoLauncher-Tests-Functional/PhLHTTPListingTemplateGroupTest.class.st +++ b/src/PharoLauncher-Tests-Functional/PhLHTTPListingTemplateGroupTest.class.st @@ -32,10 +32,61 @@ PhLHTTPListingTemplateGroupTest >> newGroup [ ^ PhLHTTPListingTemplateGroup name: 'Test' url: self exampleUrl ] +{ #category : #'instance creation' } +PhLHTTPListingTemplateGroupTest >> newPharo12Group [ + + ^ PhLHTTPListingTemplateGroup + name: 'TestPharo12' + url: self pharo12ExampleUrl + filterPattern: 'href="(Pharo-?12(.[0-9]+)?-SNAPSHOT.build.[^"]*.zip)"' +] + +{ #category : #helpers } +PhLHTTPListingTemplateGroupTest >> pharo12ExampleContent [ + ^ 'index · styled with h5ai 0.22.1 (http://larsjung.de/h5ai/)
h5ai 0.22.1⚡ JavaScript is disabled! ⚡⚡ Some features disabled! Works best in modern browsers. ⚡
+ + + + + + + + + + + + + +
[ICO]NameLast modifiedSize
[PARENTDIR]Parent Directory  -
[   ]stable-64.zip2024-01-30 10:44 23M
[   ]latest-minimal-64.zip2024-01-30 10:44 3.0M
[   ]latest-64.zip2024-01-30 10:44 23M
[   ]Pharo1212.0-SNAPSHOT.build.1256.sha.7a6c05e.arch.64bit.zip2023-12-28 22:22 15M
[   ]Pharo1212.0-SNAPSHOT-metacello.build.1256.sha.7a6c05e.arch.64bit.zip2023-12-28 22:22 3.0M
[   ]Pharo12.0-SNAPSHOT.build.1329.sha.25a911c.arch.64bit.zip2024-01-30 10:44 23M
[   ]Pharo12.0-SNAPSHOT.build.1328.sha.10f5de5.arch.64bit.zip2024-01-29 21:41 23M
[   ]Pharo12-SNAPSHOT.build.1229.sha.ed99075.arch.64bit.zip2023-12-17 22:22 21M
[   ]Pharo12-SNAPSHOT.build.1228.sha.826d9bb.arch.64bit.zip2023-12-16 18:34 21M
[   ]Pharo12-SNAPSHOT-metacello.build.4.sha.cb2a5dd.arch.64bit.zip2023-03-15 20:28 4.0M
+
' +] + +{ #category : #helpers } +PhLHTTPListingTemplateGroupTest >> pharo12ExampleUrl [ + ^ 'https://files.pharo.org/image/120/' asZnUrl +] + { #category : #running } PhLHTTPListingTemplateGroupTest >> setUp [ super setUp. - self downloadManager atUrl: self exampleUrl answer: self exampleContent + self downloadManager atUrl: self exampleUrl answer: self exampleContent. + self downloadManager atUrl: self pharo12ExampleUrl answer: self pharo12ExampleContent +] + +{ #category : #tests } +PhLHTTPListingTemplateGroupTest >> testCanMatchPharo12Templates [ + | group templatesAndGroups | + group := self newPharo12Group. + + templatesAndGroups := group templatesAndGroups. + + self assert: (templatesAndGroups noneSatisfy: [ :template | template isTemplateGroup ]). + self + assertCollection: (templatesAndGroups collect: #name) + hasSameElements: #('Pharo12.0-SNAPSHOT.build.1329.sha.25a911c.arch.64bit' + 'Pharo12.0-SNAPSHOT.build.1328.sha.10f5de5.arch.64bit' + 'Pharo12-SNAPSHOT.build.1229.sha.ed99075.arch.64bit' + 'Pharo12-SNAPSHOT.build.1228.sha.826d9bb.arch.64bit') ] { #category : #tests }