Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 78178 Details for
Bug 202095
Linked resources are not found when device id of location is lower case
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Extra tests
202095.txt (text/plain), 1.96 KB, created by
Szymon Brandys
on 2007-09-12 09:38:45 EDT
(
hide
)
Description:
Extra tests
Filename:
MIME Type:
Creator:
Szymon Brandys
Created:
2007-09-12 09:38:45 EDT
Size:
1.96 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.core.tests.resources >Index: src/org/eclipse/core/tests/resources/IPathVariableTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/IPathVariableTest.java,v >retrieving revision 1.20 >diff -u -r1.20 IPathVariableTest.java >--- src/org/eclipse/core/tests/resources/IPathVariableTest.java 11 Sep 2007 17:17:17 -0000 1.20 >+++ src/org/eclipse/core/tests/resources/IPathVariableTest.java 12 Sep 2007 13:38:08 -0000 >@@ -13,6 +13,7 @@ > import java.util.*; > import junit.framework.Test; > import junit.framework.TestSuite; >+import org.eclipse.core.internal.utils.FileUtil; > import org.eclipse.core.resources.*; > import org.eclipse.core.runtime.*; > >@@ -308,12 +309,14 @@ > */ > public void testResolvePath() { > final boolean WINDOWS = java.io.File.separatorChar == '\\'; >- IPath pathOne = WINDOWS ? new Path("C:/temp/foo") : new Path("/temp/foo"); >+ IPath pathOne = WINDOWS ? new Path("c:/temp/foo") : new Path("/temp/foo"); > IPath pathTwo = new Path("/tmp/backup"); > //add device if necessary > pathTwo = new Path(pathTwo.toFile().getAbsolutePath()); > > try { >+ // for WINDOWS - the device id for windows will be changed to upper case >+ // in the variable stored in the manager > manager.setValue("one", pathOne); > } catch (CoreException e) { > fail("0.1", e); >@@ -362,6 +365,15 @@ > expected = path; > actual = manager.resolvePath(path); > assertEquals("6.0", expected, actual); >+ >+ // just resolving, check if the variable stored in the manager is canonicalized >+ if (WINDOWS) { >+ path = new Path("one"); >+ expected = FileUtil.canonicalPath(pathOne); >+ actual = manager.resolvePath(path); >+ // the path stored in the manager is canonicalized, so the device id of actual will be upper case >+ assertEquals("7.0", expected, actual); >+ } > > // null > path = null;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202095
:
78058
|
78081
| 78178