diff options
author | Dani Megert | 2012-08-07 15:16:28 +0000 |
---|---|---|
committer | Dani Megert | 2012-08-07 15:16:28 +0000 |
commit | a68f0663f7fb088475c19b08c09c7907db4f7a7c (patch) | |
tree | 818fa6421b10cacd456ea21cbc2001fc1f6cd1ab /org.eclipse.text.tests | |
parent | 06533d5a5344695e3851a1c885300efbf1cd2e11 (diff) | |
download | eclipse.platform.text-a68f0663f7fb088475c19b08c09c7907db4f7a7c.tar.gz eclipse.platform.text-a68f0663f7fb088475c19b08c09c7907db4f7a7c.tar.xz eclipse.platform.text-a68f0663f7fb088475c19b08c09c7907db4f7a7c.zip |
Fixed bug 386751: FindReplaceDoucmentAdapter find() treats '.' asv20120807-151628I20120814-0800I20120812-1736I20120810-1300I20120808-2000I20120808-0800I20120807-2000
special char for non-regex search
Diffstat (limited to 'org.eclipse.text.tests')
-rw-r--r-- | org.eclipse.text.tests/src/org/eclipse/text/tests/FindReplaceDocumentAdapterTest.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/org.eclipse.text.tests/src/org/eclipse/text/tests/FindReplaceDocumentAdapterTest.java b/org.eclipse.text.tests/src/org/eclipse/text/tests/FindReplaceDocumentAdapterTest.java index f0585cb50ec..8fad3f51e8e 100644 --- a/org.eclipse.text.tests/src/org/eclipse/text/tests/FindReplaceDocumentAdapterTest.java +++ b/org.eclipse.text.tests/src/org/eclipse/text/tests/FindReplaceDocumentAdapterTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. + * Copyright (c) 2000, 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 @@ -150,6 +150,19 @@ public class FindReplaceDocumentAdapterTest extends TestCase { } } + /** + * Test case for: https://bugs.eclipse.org/386751 + */ + public void testBug386751() { + FindReplaceDocumentAdapter adapter= new FindReplaceDocumentAdapter(fDocument); + try { + IRegion result= adapter.find(0, ".", true, false, true, false); + assertNull(result); + } catch (BadLocationException e) { + Assert.assertTrue(false); + } + } + public void testUTF8Pattern() { FindReplaceDocumentAdapter findReplaceDocumentAdapter= new FindReplaceDocumentAdapter(fDocument); try { |