/******************************************************************************* | |
* Copyright (c) 2010 IBM Corporation and others. | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* IBM Corporation - initial API and implementation | |
*******************************************************************************/ | |
package org.eclipse.xwt.tests.jface; | |
import java.net.URL; | |
import org.eclipse.jface.viewers.ListViewer; | |
import org.eclipse.xwt.IConstants; | |
import org.eclipse.xwt.XWT; | |
import org.eclipse.xwt.tests.XWTTestCase; | |
public class JFaceTests extends XWTTestCase { | |
public void testListViewer() throws Exception { | |
URL url = JFaceTests.class.getResource(ListViewer_Name.class | |
.getSimpleName() | |
+ IConstants.XWT_EXTENSION_SUFFIX); | |
runTest(url, new Runnable() { | |
public void run() { | |
checkListViewer(); | |
} | |
public void checkListViewer() { | |
Object element = XWT.findElementByName(root, "listView"); | |
assertTrue(element instanceof ListViewer); | |
} | |
}); | |
} | |
// TODO add Font and Color | |
} |