Examples of navigateTo()


Examples of ca.forklabs.javaxpcom.Crawler.navigateTo()

      Crawler crawler = null;
      try {
         crawler = new Crawler() { /* nothing */ };

         URL url = SelectorTest.class.getResource("/select.all.children.html");
         crawler.navigateTo(url);

         nsIDOMNode document = crawler.getDocument();

         Selector selector = new Selector(document);
         List<nsIDOMNode> children = selector.getAllChildren(document);
View Full Code Here

Examples of ca.forklabs.javaxpcom.Crawler.navigateTo()

      Crawler crawler = null;
      try {
         crawler = new Crawler() { /* nothing */ };

         URL url = SelectorTest.class.getResource("/selector.input.html");
         crawler.navigateTo(url);

         List<nsIDOMNode> buttons = crawler.selector().add(Filters.button()).list();
         assertEquals(2, buttons.size());
         assertEquals("I am a button", XPCOMConverter.getAttributeValue(buttons.get(0), "value"));
         assertEquals("I am also a button", XPCOMConverter.asPlainText(buttons.get(1)));
View Full Code Here

Examples of ca.forklabs.javaxpcom.Crawler.navigateTo()

      Crawler crawler = null;
      try {
         crawler = new Crawler() { /* nothing */ };

         URL url = SelectorTest.class.getResource("/basic.html");
         crawler.navigateTo(url);

         List<nsIDOMNode> css = crawler.selector().add(Filters.css("target")).list();
         assertEquals(2, css.size());
         assertEquals("H3", css.get(0).getNodeName());
         assertEquals("H6", css.get(1).getNodeName());
View Full Code Here

Examples of ca.forklabs.javaxpcom.Crawler.navigateTo()

      Crawler crawler = null;
      try {
         crawler = new Crawler() { /* nothing */ };

         URL url = SelectorTest.class.getResource("/basic.html");
         crawler.navigateTo(url);

         List<nsIDOMNode> css = crawler.selector().add(Filters.css("target")).list();
         assertEquals(2, css.size());
         assertEquals("H3", css.get(0).getNodeName());
         assertEquals("H6", css.get(1).getNodeName());
View Full Code Here

Examples of com.dci.intellij.dbn.editor.code.SourceCodeEditor.navigateTo()

        }

        EditorUtil.selectEditor(databaseFile, textEditor);
        VirtualFile virtualFile = DocumentUtil.getVirtualFile(textEditor.getEditor());
        OpenFileDescriptor openFileDescriptor = new OpenFileDescriptor(compilerMessage.getProject(), virtualFile);
        codeEditor.navigateTo(openFileDescriptor);
    }

    /*********************************************************
     *                        MouseListener                  *
     *********************************************************/
 
View Full Code Here

Examples of com.dci.intellij.dbn.editor.code.SourceCodeMainEditor.navigateTo()

                        FileEditor[] fileEditors = fileEditorManager.openFile(databaseFile, true);
                        for (FileEditor fileEditor : fileEditors) {
                            if (fileEditor instanceof SourceCodeMainEditor) {
                                SourceCodeMainEditor sourceCodeEditor = (SourceCodeMainEditor) fileEditor;
                                EditorUtil.selectEditor(databaseFile, fileEditor);
                                sourceCodeEditor.navigateTo(object);
                                break;
                            }
                        }
                        DatabaseBrowserManager.AUTOSCROLL_FROM_EDITOR.set(true);
                    }
View Full Code Here

Examples of com.vaadin.navigator.Navigator.navigateTo()

        UriFragmentManager manager = new UriFragmentManager(page);
        manager.setNavigator(navigator);

        EasyMock.expect(page.getUriFragment()).andReturn("!test");
        navigator.navigateTo("test");
        control.replay();

        UriFragmentChangedEvent event = new UriFragmentChangedEvent(page,
                "oldtest");
        manager.uriFragmentChanged(event);
View Full Code Here

Examples of com.vaadin.navigator.Navigator.navigateTo()

        // create and test navigator
        Navigator navigator = createNavigator(manager, display);
        navigator.addProvider(provider);

        navigator.navigateTo("test1");
        assertEquals("test1", navigator.getState());

        navigator.navigateTo("test2/");
        assertEquals("test2", navigator.getState());
View Full Code Here

Examples of com.vaadin.navigator.Navigator.navigateTo()

        navigator.addProvider(provider);

        navigator.navigateTo("test1");
        assertEquals("test1", navigator.getState());

        navigator.navigateTo("test2/");
        assertEquals("test2", navigator.getState());

        navigator.navigateTo("test1/params");
        assertEquals("test1/params", navigator.getState());
    }
View Full Code Here

Examples of com.vaadin.navigator.Navigator.navigateTo()

        assertEquals("test1", navigator.getState());

        navigator.navigateTo("test2/");
        assertEquals("test2", navigator.getState());

        navigator.navigateTo("test1/params");
        assertEquals("test1/params", navigator.getState());
    }

    public void testMainView() {
        IMocksControl control = EasyMock.createControl();
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.