use of org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup in project webtools.sourceediting by eclipse.
the class TypeTests method suite.
/**
* <p>
* Use this method to add these tests to a larger test suite so set up and tear down can be
* performed
* </p>
*
* @return a {@link TestSetup} that will run all of the tests in this class
* with set up and tear down.
*/
public static Test suite() {
TestSuite ts = new TestSuite(TypeTests.class, TEST_NAME);
fTestProjectSetup = new TestProjectSetup(ts, "JSDTWebContentAssist", "WebContent", false);
return fTestProjectSetup;
}
use of org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup in project webtools.sourceediting by eclipse.
the class CamelCasingTests_Edited method suite.
/**
* <p>
* Use this method to add these tests to a larger test suite so set up and tear down can be
* performed
* </p>
*
* @return a {@link TestSetup} that will run all of the tests in this class
* with set up and tear down.
*/
public static Test suite() {
TestSuite ts = new TestSuite(CamelCasingTests_Edited.class, TEST_NAME);
fTestProjectSetup = new TestProjectSetup(ts, "JSDTWebContentAssist", "WebContent", false) {
/**
* @see org.eclipse.wst.jsdt.web.ui.tests.contentassist.ContentAssistTestUtilities.ContentAssistTestsSetup#additionalSetUp()
*/
public void additionalSetUp() throws Exception {
/* file -> ConstructorCamelCase.js
* iGotMessage -> iSentMessage */
this.editFile("ConstructorCamelCase.js", 0, 4, 11, "iGotSentMessage");
this.editFile("ConstructorCamelCase.js", 0, 31, 11, "iGotSentMessage");
this.editFile("Global.js", 1, 4, 12, "globalEditedNumber");
this.editFile("Global.js", 7, 0, 12, "globalEditedString");
this.editFile("Global.js", 11, 6, 1, "E");
this.editFile("Global.js", 15, 1, 1, "E");
this.editFile("Global.js", 17, 1, 1, "E");
this.editFile("Global.html", 10, 6, 1, "E");
this.editFile("Global.html", 12, 1, 1, "E");
this.editFile("Global.html", 14, 1, 1, "E");
this.editFile("InnerOuter.js", 7, 11, 6, "edited");
this.editFile("InnerOuter.js", 0, 9, 9, "editedFunc");
}
};
return fTestProjectSetup;
}
use of org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup in project webtools.sourceediting by eclipse.
the class DoublyNestedFunctionTests_Edited method suite.
/**
* <p>
* Use this method to add these tests to a larger test suite so set up and tear down can be
* performed
* </p>
*
* @return a {@link TestSetup} that will run all of the tests in this class
* with set up and tear down.
*/
public static Test suite() {
TestSuite ts = new TestSuite(DoublyNestedFunctionTests_Edited.class, TEST_NAME);
fTestProjectSetup = new TestProjectSetup(ts, "JSDTWebContentAssist", "WebContent", false) {
public void additionalSetUp() throws Exception {
this.editFile("InnerOuter.js", 7, 11, 6, "edited");
this.editFile("InnerOuter.js", 0, 9, 9, "editedFunc");
}
};
return fTestProjectSetup;
}
use of org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup in project webtools.sourceediting by eclipse.
the class GlobalFunctionTests method suite.
/**
* <p>
* Use this method to add these tests to a larger test suite so set up and tear down can be
* performed
* </p>
*
* @return a {@link TestSetup} that will run all of the tests in this class
* with set up and tear down.
*/
public static Test suite() {
TestSuite ts = new TestSuite(GlobalFunctionTests.class, TEST_NAME);
fTestProjectSetup = new TestProjectSetup(ts, "JSDTWebContentAssist", "WebContent", false);
return fTestProjectSetup;
}
use of org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup in project webtools.sourceediting by eclipse.
the class GlobalVariableTests_Edited method suite.
/**
* <p>
* Use this method to add these tests to a larger test suite so set up and tear down can be
* performed
* </p>
*
* @return a {@link TestSetup} that will run all of the tests in this class
* with set up and tear down.
*/
public static Test suite() {
TestSuite ts = new TestSuite(GlobalVariableTests_Edited.class, TEST_NAME);
fTestProjectSetup = new TestProjectSetup(ts, "JSDTWebContentAssist", "WebContent", false) {
public void additionalSetUp() throws Exception {
/* file -> Global.js
* globalNum -> globalEditedNumber
* globalString -> globalEditedString */
this.editFile("Global.js", 1, 4, 12, "globalEditedNumber");
this.editFile("Global.js", 7, 0, 12, "globalEditedString");
/* file -> Global.js
* globalV -> globalE */
this.editFile("Global.js", 11, 6, 1, "E");
this.editFile("Global.js", 15, 1, 1, "E");
this.editFile("Global.js", 17, 1, 1, "E");
/* file -> Global.html
* globalV -> globalE */
this.editFile("Global.html", 10, 6, 1, "E");
this.editFile("Global.html", 12, 1, 1, "E");
this.editFile("Global.html", 14, 1, 1, "E");
}
};
return fTestProjectSetup;
}
Aggregations