01: /*******************************************************************************
02: * Copyright (c) 2004, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - Initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.tests.browser.internal;
11:
12: import org.eclipse.swt.widgets.Shell;
13: import org.eclipse.ui.PlatformUI;
14: import org.eclipse.ui.internal.browser.BrowserDescriptorDialog;
15:
16: import junit.framework.TestCase;
17:
18: public class DialogsTestCase extends TestCase {
19: private Shell getShell() {
20: return PlatformUI.getWorkbench().getActiveWorkbenchWindow()
21: .getShell();
22: }
23:
24: public void testExternalBrowserDialog() {
25: BrowserDescriptorDialog bdd = new BrowserDescriptorDialog(
26: getShell());
27: UITestHelper.assertDialog(bdd);
28: }
29: }
|