コード例 #1
0
 protected void tearDown() throws Exception {
   W4TFixture.tearDown();
   W4TFixture.removeContext();
 }
コード例 #2
0
 public void testNoscript() {
   Renderer renderer;
   //
   // Ie6 up (no script)
   W4TFixture.fakeBrowser(new Ie6(false));
   // WebAnchor
   RendererCache cache = RendererCache.getInstance();
   renderer = cache.retrieveRenderer(WebAnchor.class);
   assertEquals(WebAnchorRenderer_Default_Noscript.class, renderer.getClass());
   // WebBorderComponent
   renderer = cache.retrieveRenderer(WebBorderComponent.class);
   assertEquals(WebBorderComponentRenderer_Default_Noscript.class, renderer.getClass());
   // WebScrollPane
   renderer = cache.retrieveRenderer(WebScrollPane.class);
   assertEquals(WebScrollPaneRenderer_Default_Noscript.class, renderer.getClass());
   // MenuItem
   renderer = cache.retrieveRenderer(MenuItem.class);
   assertEquals(MenuItemRenderer_Ie5up_Noscript.class, renderer.getClass());
   // MenuItemSeparator
   renderer = cache.retrieveRenderer(MenuItemSeparator.class);
   assertEquals(MenuItemSeparatorRenderer_Ie5up_Noscript.class, renderer.getClass());
   // TreeLeaf
   renderer = cache.retrieveRenderer(TreeLeaf.class);
   assertEquals(TreeLeafRenderer_Ie5up_Noscript.class, renderer.getClass());
   // Menu
   renderer = cache.retrieveRenderer(Menu.class);
   assertEquals(MenuRenderer_Ie5up_Noscript.class, renderer.getClass());
   // MenuBar
   renderer = cache.retrieveRenderer(MenuBar.class);
   assertEquals(MenuBarRenderer_Ie5up_Noscript.class, renderer.getClass());
   // TreeNode
   renderer = cache.retrieveRenderer(TreeNode.class);
   assertEquals(TreeNodeRenderer_Ie5up_Noscript.class, renderer.getClass());
   // TreeView
   renderer = cache.retrieveRenderer(TreeView.class);
   assertEquals(TreeViewRenderer_Ie5up_Noscript.class, renderer.getClass());
   // MenuButton
   renderer = cache.retrieveRenderer(MenuButton.class);
   assertEquals(MenuButtonRenderer_Ie5up_Noscript.class, renderer.getClass());
   // WebButton
   renderer = cache.retrieveRenderer(WebButton.class);
   assertEquals(WebButtonRenderer_Default_Noscript.class, renderer.getClass());
   // AreaSelector
   renderer = cache.retrieveRenderer(WebButton.class);
   assertEquals(WebButtonRenderer_Default_Noscript.class, renderer.getClass());
   // LinkButton
   renderer = cache.retrieveRenderer(LinkButton.class);
   assertEquals(WebButtonRenderer_Default_Noscript.class, renderer.getClass());
   // testing for superclass
   // WebCheckBox
   renderer = cache.retrieveRenderer(WebCheckBox.class);
   assertEquals(WebCheckBoxRenderer_Default_Noscript.class, renderer.getClass());
   // WebContainer
   renderer = cache.retrieveRenderer(WebContainer.class);
   assertEquals(WebContainerRenderer_Default_Noscript.class, renderer.getClass());
   // CItemList
   renderer = cache.retrieveRenderer(CItemList.class);
   assertEquals(WebContainerRenderer_Default_Noscript.class, renderer.getClass());
   // test for superclass
   // CTabbedPane
   renderer = cache.retrieveRenderer(CTabbedPane.class);
   assertEquals(WebContainerRenderer_Default_Noscript.class, renderer.getClass());
   // test for superclass
   // CTable
   renderer = cache.retrieveRenderer(CTable.class);
   assertEquals(WebContainerRenderer_Default_Noscript.class, renderer.getClass());
   // test for superclass
   // WebForm
   renderer = cache.retrieveRenderer(WebForm.class);
   assertEquals(WebFormRenderer_Default_Noscript.class, renderer.getClass());
   // Form
   renderer = cache.retrieveRenderer(Form.class);
   assertEquals(WebFormRenderer_Default_Noscript.class, renderer.getClass());
   // test for superclass
   // LoginForm
   renderer = cache.retrieveRenderer(LoginForm.class);
   assertEquals(WebFormRenderer_Default_Noscript.class, renderer.getClass());
   // test for superclass
   // TestForm
   renderer = cache.retrieveRenderer(TestForm.class);
   assertEquals(WebFormRenderer_Default_Noscript.class, renderer.getClass());
   // test for superclass
   // TreeForm
   renderer = cache.retrieveRenderer(TreeForm.class);
   assertEquals(WebFormRenderer_Default_Noscript.class, renderer.getClass());
   // test for superclass
   // WebPanel
   renderer = cache.retrieveRenderer(WebPanel.class);
   assertEquals(WebContainerRenderer_Default_Noscript.class, renderer.getClass());
   // CMenu
   renderer = cache.retrieveRenderer(CMenu.class);
   assertEquals(WebContainerRenderer_Default_Noscript.class, renderer.getClass());
   // testing for superclass
   // CToolBar
   renderer = cache.retrieveRenderer(CToolBar.class);
   assertEquals(WebContainerRenderer_Default_Noscript.class, renderer.getClass());
   // testing for superclass
   // TreeViewer
   renderer = cache.retrieveRenderer(TreeView.class);
   assertEquals(TreeViewRenderer_Ie5up_Noscript.class, renderer.getClass());
   // WebFileUpload
   renderer = cache.retrieveRenderer(WebFileUpload.class);
   assertEquals(WebFileUploadRenderer_Default_Noscript.class, renderer.getClass());
   // WebImage
   renderer = cache.retrieveRenderer(WebImage.class);
   assertEquals(WebImageRenderer_Default_Noscript.class, renderer.getClass());
   // WebLabel
   renderer = cache.retrieveRenderer(WebLabel.class);
   assertEquals(WebLabelRenderer_Default_Noscript.class, renderer.getClass());
   // PoolLabel
   renderer = cache.retrieveRenderer(PoolLabel.class);
   assertEquals(WebLabelRenderer_Default_Noscript.class, renderer.getClass());
   // testing for superclass
   // SuperWebLabel
   renderer = cache.retrieveRenderer(SuperWebLabel.class);
   assertEquals(WebLabelRenderer_Default_Noscript.class, renderer.getClass());
   // testing for superclass
   // WebRadioButton
   renderer = cache.retrieveRenderer(WebRadioButton.class);
   assertEquals(WebRadioButtonRenderer_Default_Noscript.class, renderer.getClass());
   // WebSelect
   renderer = cache.retrieveRenderer(WebSelect.class);
   assertEquals(WebSelectRenderer_Default_Noscript.class, renderer.getClass());
   // WebText
   renderer = cache.retrieveRenderer(WebText.class);
   assertEquals(WebTextRenderer_Default_Noscript.class, renderer.getClass());
   // WebTextWithoutTitleMock
   renderer = cache.retrieveRenderer(WebTextWithoutTitleMock.class);
   assertEquals(WebTextRenderer_Default_Noscript.class, renderer.getClass());
   // WebTextArea
   renderer = cache.retrieveRenderer(WebTextArea.class);
   assertEquals(WebTextAreaRenderer_Default_Noscript.class, renderer.getClass());
   // WebCardLayout
   renderer = cache.retrieveRenderer(WebCardLayout.class);
   assertEquals(WebCardLayoutRenderer_Ie5up_Noscript.class, renderer.getClass());
 }
コード例 #3
0
 protected void setUp() throws Exception {
   W4TFixture.setUp();
   W4TFixture.createContext();
 }