[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[photos8] index



You can evaluate the following expression to load the code in this page
SwikiCodeRobot @> #testPhotos8Index

Documentation

See details on library implementation

Tests


Index chunks

"Evaluating first chunk of the test set"

(Smalltalk includesKey: #Smalltalk) ifFalse: [
    self print: 'Require s8 execution environment.'.
    self abort
].
(Smalltalk includesKey: #NSObject) ifFalse: [
    self print: 'Require coco8 platform.'.
    self abort
].
Smalltalk nativeObjectAt: #PHPhotoLibrary ifAbsent: [
    self print: 'Require Photos framework.'.
    self abort
].

"Ensure the Photos.framework is bound to the system"
[ PHPhotoLibrary authorizationStatus ] on: Error do: [:error|
	self print: 'Photos.framework must be bound to application to run tests'.
	self abort
].