Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak Azad2012-04-28 10:28:54 +0000
committerDeepak Azad2012-04-28 12:50:20 +0000
commitd77b869a7d4dfbe10b70b1c20be1d83e586434af (patch)
tree07c43dbd8073d7e7e9f92ef658b13d61a075ecbe /org.eclipse.jface.text.tests
parent9558f5a5e14eaec888fafeb1bde73d2af5fb2aea (diff)
downloadeclipse.platform.text-d77b869a7d4dfbe10b70b1c20be1d83e586434af.tar.gz
eclipse.platform.text-d77b869a7d4dfbe10b70b1c20be1d83e586434af.tar.xz
eclipse.platform.text-d77b869a7d4dfbe10b70b1c20be1d83e586434af.zip
Additional tests for bug 373978 and bug 377417v20120428-1250
Diffstat (limited to 'org.eclipse.jface.text.tests')
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java
index e3f84cd6f..95abf6811 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java
@@ -185,12 +185,15 @@ public abstract class AbstractPairMatcherTest extends TestCase {
performMatch(matcher, "|c #( c| ) ( |c % )# c|");
performMatch(matcher, "#( % |a ) a| |b ) b| |c ) c| )#");
+ performMatch(matcher, "#( |a % a| )#");
+ performMatch(matcher, "( |a #( a| ( |a % a| ) |a )# a| )");
+
performMatch(matcher, "#( % % |a a| )#");
performMatch(matcher, "|b #( % % )# b|");
performMatch(matcher, "|c #( % % c| ) ( |c )# c|");
performMatch(matcher, "|c #( c| ) ( |c % % )# c|");
performMatch(matcher, "#( % % |a ) a| |b ) b| |c ) c| )#");
-// performMatch(matcher, " #( |c ( c| % % |c ) c| )#");
+ performMatch(matcher, " #( |c ( c| % % |c ) c| )#");
matcher.dispose();
}
@@ -272,6 +275,14 @@ public abstract class AbstractPairMatcherTest extends TestCase {
matcher.dispose();
}
+ public void testBug377417() {
+ final ICharacterPairMatcher matcher= createMatcher("()[]{}");
+ performMatch(matcher, "#( % )%#");
+ performMatch(matcher, "#[ % ]%#");
+ performMatch(matcher, "#{ % }%#");
+ matcher.dispose();
+ }
+
/* --- U t i l i t i e s --- */
/**

Back to the top