/******************************************************************************* | |
* Copyright (c) 2011, 2012 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.wst.jsdt.ui.tests.contentassist; | |
import junit.extensions.TestSetup; | |
import junit.framework.Test; | |
import junit.framework.TestCase; | |
import junit.framework.TestSuite; | |
import org.eclipse.wst.jsdt.ui.tests.utils.TestProjectSetup; | |
public class GlobalVariable_AssignmentOnly_DefinedInOneFile_Tests extends TestCase { | |
private static final String TEST_NAME = "Test JavaScript Global with Local Declaration Defined In One File Content Assist"; | |
/** | |
* <p> | |
* Test project setup for this test. | |
* </p> | |
*/ | |
private static TestProjectSetup fTestProjectSetup; | |
/** | |
* <p> | |
* Default constructor | |
* <p> | |
* <p> | |
* Use {@link #suite()} | |
* </p> | |
* | |
* @see #suite() | |
*/ | |
public GlobalVariable_AssignmentOnly_DefinedInOneFile_Tests() { | |
super(TEST_NAME); | |
} | |
/** | |
* <p> | |
* Constructor that takes a test name. | |
* </p> | |
* <p> | |
* Use {@link #suite()} | |
* </p> | |
* | |
* @param name | |
* The name this test run should have. | |
* | |
* @see #suite() | |
*/ | |
public GlobalVariable_AssignmentOnly_DefinedInOneFile_Tests(String name) { | |
super(name); | |
} | |
/** | |
* <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(TEST_NAME); | |
ts.addTestSuite(GlobalVariable_DefinedInOneFile_OtherFile_BeforeOpen_Tests.class); | |
ts.addTestSuite(GlobalVariable_DefinedInOneFile_SameFile_Tests.class); | |
ts.addTestSuite(GlobalVariable_DefinedInOneFile_OtherFile_AfterOpen_Tests.class); | |
fTestProjectSetup = new TestProjectSetup(ts, "ContentAssist", "root", false); | |
return fTestProjectSetup; | |
} | |
public static class GlobalVariable_DefinedInOneFile_OtherFile_BeforeOpen_Tests extends TestCase { | |
public GlobalVariable_DefinedInOneFile_OtherFile_BeforeOpen_Tests(String name) { | |
super(name); | |
} | |
public void testFindGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_0() throws Exception { | |
String[][] expectedProposals = new String[][] { { "global_AssignmentOnly_DeffinedInOneFile0 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile1 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile2 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile3 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile4 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile5 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile6 : String - Global", | |
"global_AssignmentOnly_DeffinedInOneFile7 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile8 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile9 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile10 : String - Global", | |
"global_AssignmentOnly_DeffinedInOneFile11 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile12 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile13 : {} - Global" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 0, 33, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_0() throws Exception { | |
String[][] expectedProposals = new String[][] { { "global_AssignmentOnly_DeffinedInOneFile0_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 2, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_1() throws Exception { | |
String[][] expectedProposals = new String[][] { { | |
"global_AssignmentOnly_DeffinedInOneFile1_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile1_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 4, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_2() throws Exception { | |
String[][] expectedProposals = new String[][] { { | |
"global_AssignmentOnly_DeffinedInOneFile2_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile2_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 6, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_3() throws Exception { | |
String[][] expectedProposals = new String[][] { { | |
"global_AssignmentOnly_DeffinedInOneFile3_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile3_1 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile3_2 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 8, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_4() throws Exception { | |
String[][] expectedProposals = new String[][] { { "global_AssignmentOnly_DeffinedInOneFile4_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 10, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_5() throws Exception { | |
String[][] expectedProposals = new String[][] { { | |
"global_AssignmentOnly_DeffinedInOneFile5_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile5_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 12, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_6() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 14, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_7() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile7_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 16, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_8() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile8_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 18, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_9() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile9_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile9_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 20, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_10() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 22, 42, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_11() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile11_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 24, 42, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_12() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile12_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 26, 42, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_BeforeOpen_13() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile13_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile13_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 28, 42, | |
expectedProposals, false, true); | |
} | |
} | |
public static class GlobalVariable_DefinedInOneFile_SameFile_Tests extends TestCase { | |
public GlobalVariable_DefinedInOneFile_SameFile_Tests(String name) { | |
super(name); | |
} | |
public void testFindGlobalVariables_DefinedInOneFile_SameFile_0() throws Exception { | |
String[][] expectedProposals = new String[][] { { "global_AssignmentOnly_DeffinedInOneFile0 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile1 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile2 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile3 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile4 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile5 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile6 : String - Global", | |
"global_AssignmentOnly_DeffinedInOneFile7 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile8 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile9 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile10 : String - Global", | |
"global_AssignmentOnly_DeffinedInOneFile11 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile12 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile13 : {} - Global" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 90, 33, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_SameFile_0() throws Exception { | |
String[][] expectedProposals = new String[][] { { "global_AssignmentOnly_DeffinedInOneFile0_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 92, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_SameFile_1() throws Exception { | |
String[][] expectedProposals = new String[][] { { | |
"global_AssignmentOnly_DeffinedInOneFile1_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile1_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 94, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_SameFile_2() throws Exception { | |
String[][] expectedProposals = new String[][] { { | |
"global_AssignmentOnly_DeffinedInOneFile2_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile2_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 96, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_SameFile_3() throws Exception { | |
String[][] expectedProposals = new String[][] { { | |
"global_AssignmentOnly_DeffinedInOneFile3_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile3_1 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile3_2 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 98, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_SameFile_4() throws Exception { | |
String[][] expectedProposals = new String[][] { { "global_AssignmentOnly_DeffinedInOneFile4_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 100, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_SameFile_5() throws Exception { | |
String[][] expectedProposals = new String[][] { { | |
"global_AssignmentOnly_DeffinedInOneFile5_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile5_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 102, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_SameFile_6() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 104, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_SameFile_7() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile7_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 106, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_SameFile_8() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile8_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 108, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_SameFile_9() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile9_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile9_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 110, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_SameFile_10() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 112, 42, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_SameFile_11() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile11_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 114, 42, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_SameFile_12() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile12_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 116, 42, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_SameFile_13() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile13_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile13_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_0.js", 118, 42, | |
expectedProposals, false, true); | |
} | |
} | |
public static class GlobalVariable_DefinedInOneFile_OtherFile_AfterOpen_Tests extends TestCase { | |
public GlobalVariable_DefinedInOneFile_OtherFile_AfterOpen_Tests(String name) { | |
super(name); | |
} | |
public void testFindGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_0() throws Exception { | |
String[][] expectedProposals = new String[][] { { "global_AssignmentOnly_DeffinedInOneFile0 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile1 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile2 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile3 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile4 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile5 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile6 : String - Global", | |
"global_AssignmentOnly_DeffinedInOneFile7 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile8 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile9 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile10 : String - Global", | |
"global_AssignmentOnly_DeffinedInOneFile11 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile12 : {} - Global", | |
"global_AssignmentOnly_DeffinedInOneFile13 : {} - Global" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 0, 33, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_0() throws Exception { | |
String[][] expectedProposals = new String[][] { { "global_AssignmentOnly_DeffinedInOneFile0_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 2, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_1() throws Exception { | |
String[][] expectedProposals = new String[][] { { | |
"global_AssignmentOnly_DeffinedInOneFile1_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile1_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 4, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_2() throws Exception { | |
String[][] expectedProposals = new String[][] { { | |
"global_AssignmentOnly_DeffinedInOneFile2_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile2_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 6, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_3() throws Exception { | |
String[][] expectedProposals = new String[][] { { | |
"global_AssignmentOnly_DeffinedInOneFile3_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile3_1 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile3_2 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 8, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_4() throws Exception { | |
String[][] expectedProposals = new String[][] { { "global_AssignmentOnly_DeffinedInOneFile4_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 10, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_5() throws Exception { | |
String[][] expectedProposals = new String[][] { { | |
"global_AssignmentOnly_DeffinedInOneFile5_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile5_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 12, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_6() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 14, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_7() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile7_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 16, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_8() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile8_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 18, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_9() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile9_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile9_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 20, 41, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_10() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 22, 42, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_11() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile11_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 24, 42, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_12() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile12_0 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 26, 42, | |
expectedProposals, false, true); | |
} | |
public void testFindFieldsOnGlobalVariables_DefinedInOneFile_OtherFile_AfterOpen_13() throws Exception { | |
String[][] expectedProposals = new String[][] { { "charAt(Number position) : String - String", | |
"global_AssignmentOnly_DeffinedInOneFile13_0 : Number - {}", | |
"global_AssignmentOnly_DeffinedInOneFile13_1 : Number - {}" } }; | |
ContentAssistTestUtilities.runProposalTest(fTestProjectSetup, "TestGlobals_AssignmentOnly_DeffinedInOneFile_1.js", 28, 42, | |
expectedProposals, false, true); | |
} | |
} | |
} |