File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ describe('Sidebar', () => {
358
358
} ) ;
359
359
} ) ;
360
360
361
- describe ( 'on "loginRequest " event' , ( ) => {
361
+ describe ( 'on "loginRequested " event' , ( ) => {
362
362
it ( 'calls the onLoginRequest callback function if one was provided' , ( ) => {
363
363
const onLoginRequest = sandbox . stub ( ) ;
364
364
createSidebar ( { services : [ { onLoginRequest } ] } ) ;
@@ -445,7 +445,7 @@ describe('Sidebar', () => {
445
445
assert . called ( onSignupRequest ) ;
446
446
} ) ) ;
447
447
448
- describe ( 'on "profileRequest " event' , ( ) =>
448
+ describe ( 'on "profileRequested " event' , ( ) =>
449
449
it ( 'calls the onProfileRequest callback function' , ( ) => {
450
450
const onProfileRequest = sandbox . stub ( ) ;
451
451
createSidebar ( { services : [ { onProfileRequest } ] } ) ;
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ describe('HypothesisApp', () => {
223
223
fakeServiceConfig . returns ( { } ) ;
224
224
} ) ;
225
225
226
- it ( 'sends "signupRequest " event' , ( ) => {
226
+ it ( 'sends "signupRequested " event' , ( ) => {
227
227
const wrapper = createComponent ( ) ;
228
228
clickSignUp ( wrapper ) ;
229
229
assert . calledWith ( fakeFrameSync . notifyHost , 'signupRequested' ) ;
Original file line number Diff line number Diff line change 8
8
*/
9
9
export type HostToSidebarEvent =
10
10
/**
11
- * The host is asking the sidebar to delete a frame.
11
+ * A guest frame has been destroyed
12
12
*/
13
13
| 'destroyFrame'
14
14
15
15
/**
16
- * The host is asking the sidebar to set the annotation highlights on/off.
16
+ * Highlights have been toggled on/off.
17
17
*/
18
18
| 'setVisibleHighlights'
19
19
@@ -42,7 +42,7 @@ export type GuestToSidebarEvent =
42
42
| 'focusAnnotations'
43
43
44
44
/**
45
- * The guest is asking the sidebar to relay the message to open the sidebar.
45
+ * Request that the sidebar be opened
46
46
*/
47
47
| 'openSidebar'
48
48
@@ -52,7 +52,7 @@ export type GuestToSidebarEvent =
52
52
| 'showAnnotations'
53
53
54
54
/**
55
- * The guest notifies the sidebar to synchronize about the anchoring status of annotations.
55
+ * Report whether annotations were successfully anchored in the guest
56
56
*/
57
57
| 'sync'
58
58
@@ -76,7 +76,7 @@ export type SidebarToGuestEvent =
76
76
| 'focusAnnotations'
77
77
78
78
/**
79
- * The sidebar is asking the guest(s) to get the document metadata .
79
+ * Request the URL and other metadata about the document in this guest .
80
80
*/
81
81
| 'getDocumentInfo'
82
82
You can’t perform that action at this time.
0 commit comments