| /******************************************************************************* |
| *Copyright (c) 2009 Standards for Technology in Automotive Retail 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: |
| * David Carver (STAR) - bug 263843 - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.wst.xsl.ui.tests.contentassist; |
| |
| import java.io.File; |
| |
| import org.eclipse.jface.text.contentassist.ICompletionProposal; |
| |
| public class TestEmptyFileCompletionProposal extends |
| AbstractCompletionProposalTest { |
| |
| public void testXSLPropsoalAvailable() throws Exception { |
| fileName = "EmptyXSLFile.xsl"; |
| String xslFilePath = projectName + File.separator + fileName; |
| loadFileForTesting(xslFilePath); |
| int offset = 0; |
| |
| try { |
| ICompletionProposal[] proposals = getProposals(offset); |
| assertNotNull("Did not find proposals.", proposals); |
| } finally { |
| model.releaseFromEdit(); |
| } |
| sourceViewer = null; |
| } |
| |
| |
| } |