[[nbpython-commits]] [hg] main/contrib: Fix Python Go To Test

  • From: Tor Norbye < >
  • To:
  • Subject: [[nbpython-commits]] [hg] main/contrib: Fix Python Go To Test
  • Date: Thu, 21 Oct 2010 08:34:28 -0700

changeset c41234133d65 in main/contrib
details: http://hg.netbeans.org/main/contrib?cmd=changeset;node=c41234133d65
description:
        Fix Python Go To Test

diffstat:

 python.project/src/org/netbeans/modules/python/project/Bundle.properties |  
1 +
 python.project/src/org/netbeans/modules/python/project/GotoTest.java     |  
3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diffs (21 lines):

diff --git 
a/python.project/src/org/netbeans/modules/python/project/Bundle.properties 
b/python.project/src/org/netbeans/modules/python/project/Bundle.properties
--- a/python.project/src/org/netbeans/modules/python/project/Bundle.properties
+++ b/python.project/src/org/netbeans/modules/python/project/Bundle.properties
@@ -15,3 +15,4 @@
 LBL_RunAction_Name=Run
 LBL_DebugAction_Name=Debug
 LBL_TestAction_Name=Test
+OppositeNotFound=Opposite file not found
diff --git 
a/python.project/src/org/netbeans/modules/python/project/GotoTest.java 
b/python.project/src/org/netbeans/modules/python/project/GotoTest.java
--- a/python.project/src/org/netbeans/modules/python/project/GotoTest.java
+++ b/python.project/src/org/netbeans/modules/python/project/GotoTest.java
@@ -79,6 +79,9 @@
             // In the same directory as module.py.
             "/" + FILE + "\\." + EXT, "/" + FILE + "_test\\." + EXT, // 
NOI18N
             "/" + FILE + "\\." + EXT, "/test_" + FILE + "\\." + EXT, // 
NOI18N
+            // Same as above, but no underscore
+            "/" + FILE + "\\." + EXT, "/" + FILE + "test\\." + EXT, // NOI18N
+            "/" + FILE + "\\." + EXT, "/test" + FILE + "\\." + EXT, // NOI18N
         };
 
     public GotoTest() {

[[nbpython-commits]] [hg] main/contrib: Fix Python Go To Test

Tor Norbye 10/21/2010

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close