diff --git a/test/fixtures/presentation-mount/PresentationRuntime.qx b/test/fixtures/presentation-mount/PresentationRuntime.qx index 37137bb..d00e076 100644 --- a/test/fixtures/presentation-mount/PresentationRuntime.qx +++ b/test/fixtures/presentation-mount/PresentationRuntime.qx @@ -6,6 +6,9 @@ import interface PresentationMount; import interface StateFactory; external atom PresentationMountRecord id "presentation-mount-record"; package PresentationRuntime id "presentation-runtime" revision "presentation-runtime@1" { + function createReaderState id "presentation-runtime:create-reader-state" : record {occurrence:string;parent:optional>;} -> interface-ref execution transaction targets [browser,server] requires { + creation navigation id "navigation" : ReaderNavigationRecord input record {occurrence:string;parent:optional>;}; + }; function createPresentationMount id "presentation-runtime:create" : unit -> interface-ref execution transaction targets [browser,server] requires { creation presentationMount id "presentationMount" : PresentationMountRecord input unit; }; diff --git a/test/fixtures/presentation-mount/workspace.qx b/test/fixtures/presentation-mount/workspace.qx index 41d37c6..18ff3fe 100644 --- a/test/fixtures/presentation-mount/workspace.qx +++ b/test/fixtures/presentation-mount/workspace.qx @@ -11,6 +11,7 @@ workspace Example id "presentation-example" revision "presentation-example@1" co atom PresentationMountRecord id "presentation-mount-record"; atom Library id "library"; atom OtherLibrary id "other-library"; + atom PublicLibrary id "public-library"; atom Document id "document"; atom ReaderNavigationRecord id "reader-navigation-record"; atom DocumentNavigationRecord id "document-navigation-record"; @@ -85,4 +86,10 @@ workspace Example id "presentation-example" revision "presentation-example@1" co }; } conform OtherLibrary as Presentation id "other-library:presentation" {} + conform PublicLibrary as StateFactory id "public-reader:factory" { + bind create.call to package PresentationRuntime.createReaderState with { + navigation to creation ReaderNavigationRecord with {PresentationState from input;}; + }; + } + conform PublicLibrary as Presentation id "public-library:presentation" {} }