Examples of BookmarkedTextFlowEvent


Examples of org.zanata.webtrans.client.events.BookmarkedTextFlowEvent

                    + targetPage + ", target TU id: " + transUnitId);
            int offset =
                    targetPage
                            * getTransUnitActionContextHolder.getContext()
                                    .getCount();
            eventBus.fireEvent(new BookmarkedTextFlowEvent(offset, transUnitId));
        }
    }
View Full Code Here

Examples of org.zanata.webtrans.client.events.BookmarkedTextFlowEvent

    @Test
    public void onBookmarkedTextFlowOnSamePage() {
        contextHolder.changeOffset(1);
        TransUnitId targetId = new TransUnitId(1);

        service.onBookmarkableTextFlow(new BookmarkedTextFlowEvent(1, targetId));

        verify(eventBus).fireEvent(eventCaptor.capture());
        TableRowSelectedEvent event =
                TestFixture.extractFromEvents(eventCaptor.getAllValues(),
                        TableRowSelectedEvent.class);
View Full Code Here

Examples of org.zanata.webtrans.client.events.BookmarkedTextFlowEvent

    public void onBookmarkedTextFlowOnDifferentPage() {
        // current offset is 1
        contextHolder.changeOffset(1);
        TransUnitId targetId = new TransUnitId(1);
        // target offset is 2
        BookmarkedTextFlowEvent bookmarkedTextFlowEvent =
                new BookmarkedTextFlowEvent(2, targetId);
        NavigationService serviceSpy = spy(service);
        doNothing().when(serviceSpy).execute(bookmarkedTextFlowEvent);

        serviceSpy.onBookmarkableTextFlow(bookmarkedTextFlowEvent);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.