Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-02-23 18:38:21 -0500
committerspingel2009-02-23 18:38:21 -0500
commit15117e4785deb7c8e95daf376e99db796dd3521a (patch)
tree652f356dcbb7f4fe469309f8e2a8b817e77e673a /org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/ui
parentbf9a4cd19062df778fc32b2cebdcd8648643ed94 (diff)
downloadorg.eclipse.mylyn.tasks-15117e4785deb7c8e95daf376e99db796dd3521a.tar.gz
org.eclipse.mylyn.tasks-15117e4785deb7c8e95daf376e99db796dd3521a.tar.xz
org.eclipse.mylyn.tasks-15117e4785deb7c8e95daf376e99db796dd3521a.zip
NEW - bug 265682: RichTextAttributeEditor installs a hyperlink presenter with hyperlink detectors that don't correspond to those installed on the AbstractTaskEditorExtension
https://bugs.eclipse.org/bugs/show_bug.cgi?id=265682
Diffstat (limited to 'org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/ui')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/ui/TracHyperlinkUtilTest.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/ui/TracHyperlinkUtilTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/ui/TracHyperlinkUtilTest.java
index 9b456a952..87c0db555 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/ui/TracHyperlinkUtilTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/ui/TracHyperlinkUtilTest.java
@@ -91,6 +91,16 @@ public class TracHyperlinkUtilTest extends TestCase {
assertEquals(1, links.length);
assertEquals(new Region(0, 5), links[0].getHyperlinkRegion());
assertEquals("http://localhost/report/123", ((WebHyperlink) links[0]).getURLString());
+
+ links = findTracHyperlinks(repository, "{{123}}", -1, 0);
+ assertEquals(1, links.length);
+ assertEquals(new Region(1, 5), links[0].getHyperlinkRegion());
+
+ links = findTracHyperlinks(repository, "{abc}", -1, 0);
+ assertNull(links);
+
+ links = findTracHyperlinks(repository, "{{abc}}", -1, 0);
+ assertNull(links);
}
public void testFindHyperlinksChangeset() {
@@ -99,6 +109,9 @@ public class TracHyperlinkUtilTest extends TestCase {
assertEquals(new Region(0, 4), links[0].getHyperlinkRegion());
assertEquals("http://localhost/changeset/123", ((WebHyperlink) links[0]).getURLString());
+ links = findTracHyperlinks(repository, "alr123", 0, 0);
+ assertNull(links);
+
links = findTracHyperlinks(repository, "[123]", 0, 0);
assertEquals(1, links.length);
assertEquals(new Region(0, 5), links[0].getHyperlinkRegion());

Back to the top